glx: Fix build since 679c2ef "glx/drisw: add support for DRI2rendererQueryExtension...
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sun, 17 Aug 2014 16:22:22 +0000 (17:22 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 21 Aug 2014 15:59:48 +0000 (16:59 +0100)
v2:
- Move dri*_query_renderer_* into their respective dri*_priv.h headers
- Drop then unnneeded include of dri2.h from dri2_query_renderer.c
- Rename dri2_query_renderer.c as dri_common_query_renderer.c, as it's contents
now are used for more than dri[23]

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/glx/Makefile.am
src/glx/dri2.h
src/glx/dri2_priv.h
src/glx/dri3_priv.h
src/glx/dri_common_query_renderer.c [moved from src/glx/dri2_query_renderer.c with 99% similarity]

index cdd898e..4515312 100644 (file)
@@ -96,7 +96,8 @@ endif
 if HAVE_DRICOMMON
 libglx_la_SOURCES += \
          xfont.c \
-         dri_common.c
+         dri_common.c \
+         dri_common_query_renderer.c
 endif
 
 if HAVE_DRI2
@@ -104,8 +105,7 @@ libglx_la_SOURCES += \
          dri_glx.c \
          XF86dri.c \
          dri2_glx.c \
-         dri2.c \
-         dri2_query_renderer.c
+         dri2.c
 endif
 
 if HAVE_DRI3
index d07b296..4be5bf8 100644 (file)
@@ -88,20 +88,4 @@ DRI2CopyRegion(Display * dpy, XID drawable,
                XserverRegion region,
                CARD32 dest, CARD32 src);
 
-_X_HIDDEN int
-dri2_query_renderer_integer(struct glx_screen *base, int attribute,
-                            unsigned int *value);
-
-_X_HIDDEN int
-dri2_query_renderer_string(struct glx_screen *base, int attribute,
-                           const char **value);
-
-_X_HIDDEN int
-dri3_query_renderer_integer(struct glx_screen *base, int attribute,
-                            unsigned int *value);
-
-_X_HIDDEN int
-dri3_query_renderer_string(struct glx_screen *base, int attribute,
-                           const char **value);
-
 #endif
index c21eee5..b93d158 100644 (file)
@@ -50,3 +50,11 @@ struct dri2_screen {
 
    int show_fps_interval;
 };
+
+_X_HIDDEN int
+dri2_query_renderer_integer(struct glx_screen *base, int attribute,
+                            unsigned int *value);
+
+_X_HIDDEN int
+dri2_query_renderer_string(struct glx_screen *base, int attribute,
+                           const char **value);
index c0e35ee..248fa28 100644 (file)
@@ -195,3 +195,12 @@ struct dri3_drawable {
    xcb_gcontext_t gc;
    xcb_special_event_t *special_event;
 };
+
+
+_X_HIDDEN int
+dri3_query_renderer_integer(struct glx_screen *base, int attribute,
+                            unsigned int *value);
+
+_X_HIDDEN int
+dri3_query_renderer_string(struct glx_screen *base, int attribute,
+                           const char **value);
similarity index 99%
rename from src/glx/dri2_query_renderer.c
rename to src/glx/dri_common_query_renderer.c
index 247ec1c..d598b12 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "glxclient.h"
 #include "glx_error.h"
-#include "dri2.h"
 #include "dri_interface.h"
 #include "dri2_priv.h"
 #if defined(HAVE_DRI3)