glamor: fix missing include of dix-config.h

This header needs to be included first, otherwise things can easily get really
messed up. The current code only works by accident, because some other header
already including it early enough - but a subtle change in include order
can easy break it.

Thus, always make sure the header is really included first.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-04-22 20:16:36 +02:00
parent f763f0ec44
commit 8d95320217
16 changed files with 16 additions and 5 deletions

View File

@ -25,6 +25,7 @@
* Zhigang Gong <zhigang.gong@gmail.com>
*
*/
#include <dix-config.h>
#include "glamor_priv.h"

View File

@ -26,6 +26,7 @@
* original author is Chris Wilson at sna.
*
*/
#include <dix-config.h>
#include "glamor_priv.h"
#include "mipict.h"

View File

@ -26,8 +26,7 @@
* Zhigang Gong <zhigang.gong@linux.intel.com>
*
*/
#include "dix-config.h"
#include <dix-config.h>
#define GLAMOR_FOR_XORG
#include <unistd.h>

View File

@ -26,8 +26,7 @@
* Authors:
* Zhigang Gong <zhigang.gong@gmail.com>
*/
#include "dix-config.h"
#include <dix-config.h>
#include <xf86.h>
#define GLAMOR_FOR_XORG

View File

@ -29,6 +29,7 @@
*
* Gradient acceleration implementation
*/
#include <dix-config.h>
#include "glamor_priv.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"
#include "glamor_transfer.h"

View File

@ -26,6 +26,7 @@
* Zhigang Gong <zhigang.gong@linux.intel.com>
*
*/
#include <dix-config.h>
#include <stdlib.h>

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"
#include "glamor_transform.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"
#include "glamor_program.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"
#include "glamor_transform.h"

View File

@ -19,7 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"
#include "misyncshm.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"
#include "glamor_transform.h"

View File

@ -29,6 +29,7 @@
*
* Trapezoid acceleration implementation
*/
#include <dix-config.h>
#include "glamor_priv.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"

View File

@ -26,6 +26,7 @@
*
* Helpers for managing streamed vertex buffers used in glamor.
*/
#include <dix-config.h>
#include "glamor_priv.h"

View File

@ -20,6 +20,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "glamor_priv.h"