glx: cleanup unneeded headers
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 28 Feb 2014 17:56:01 +0000 (17:56 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 11 Mar 2014 12:50:43 +0000 (12:50 +0000)
 - xf86dri.h is the old dri1 header, not required by dri2 nor dri3
 - fold xf86drm.h inclusiong inside dri2.h
 - dri3_glx does not have any drm specific dependencies
 - glapi.h is not required by the dri2 and dri3 codepaths

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri2.c
src/glx/dri2.h
src/glx/dri2_glx.c
src/glx/dri2_query_renderer.c
src/glx/dri3_glx.c
src/glx/glxcmds.c
src/glx/tests/query_renderer_implementation_unittest.cpp

index 7e8fdeabf473368f563399429cfa7c0b68b58f1d..7cb9d2dba9c4fb7c474bc50a6ad19d101f0d266b 100644 (file)
@@ -38,7 +38,6 @@
 #include <X11/extensions/Xext.h>
 #include <X11/extensions/extutil.h>
 #include <X11/extensions/dri2proto.h>
-#include "xf86drm.h"
 #include "dri2.h"
 #include "glxclient.h"
 #include "GL/glxext.h"
index 90efde8bcc190c9ee44d5ef5a35208e80e712461..72a608c508cb164565cbd9bcc1926eed8a98929a 100644 (file)
@@ -33,6 +33,7 @@
 #ifndef _DRI2_H_
 #define _DRI2_H_
 
+#include <xf86drm.h>
 #include <X11/extensions/Xfixes.h>
 #include <X11/extensions/dri2tokens.h>
 
index deeffa494d4e9ce80b5db5bc8f8096849e7c359d..75fc9510bf47a1511b1f11d561fff4be791f3f78 100644 (file)
 #include <X11/Xlib-xcb.h>
 #include <xcb/xcb.h>
 #include <xcb/dri2.h>
-#include "glapi.h"
 #include "glxclient.h"
 #include <X11/extensions/dri2proto.h>
-#include "xf86dri.h"
 #include <dlfcn.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <sys/time.h>
-#include "xf86drm.h"
 #include "dri2.h"
 #include "dri_common.h"
 #include "dri2_priv.h"
index 95560cb4a6bc1aa1286385b90154ecc0b842a874..a28ced6ae6a1dc85122a4d218a7a840620043eed 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "glxclient.h"
 #include "glx_error.h"
-#include "xf86drm.h"
 #include "dri2.h"
 #include "dri_interface.h"
 #include "dri2_priv.h"
index 8fbf125a7a283fd31ba271239e7f9c70fc534b9e..f27a773981fcfeb4338424ef18a8a682f39aa012 100644 (file)
@@ -65,9 +65,7 @@
 #include <xcb/dri3.h>
 #include <xcb/present.h>
 #include <GL/gl.h>
-#include "glapi.h"
 #include "glxclient.h"
-#include "xf86dri.h"
 #include <dlfcn.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -75,7 +73,6 @@
 #include <sys/mman.h>
 #include <sys/time.h>
 
-#include "xf86drm.h"
 #include "dri_common.h"
 #include "dri3_priv.h"
 #include "loader.h"
index 837d8a269cfd4e9dc1f5d040632f4ffa12424be8..4b17d7cecb7287c255b6f5ec39fb25b7ea2bad3d 100644 (file)
@@ -48,9 +48,7 @@
 #ifdef XF86VIDMODE
 #include <X11/extensions/xf86vmode.h>
 #endif
-#include "xf86dri.h"
 #endif
-#else
 #endif
 
 #include <X11/Xlib-xcb.h>
index 2bf88430263ee4574d9a41b4011fe292e063322f..35b3972d57f58018d46ee7f2181d33e66a5940ef 100644 (file)
@@ -29,7 +29,6 @@
 extern "C" {
 #include "glxclient.h"
 #include "glx_error.h"
-#include "xf86drm.h"
 #include "dri2.h"
 #include "dri_interface.h"
 #include "dri2_priv.h"