summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin K <[email protected]>2014-05-02 23:59:22 +0200
committerEmil Velikov <[email protected]>2014-05-02 23:20:34 +0100
commit0b307afd57082f0d4a0e8ba19093d313c9fb46ad (patch)
treef1a94301ac1b526015291159780500be0fb5e863
parent7f8f6790e4ccf455427e7a2977d90a411fd6cc37 (diff)
glx: Conditionally compile GLX_MESA_query_renderer DRI3 support
Missed out with commit 625bdd64e5ea3327d4459b1ccccff8dab89129d0. Cc: "10.1" <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r--src/glx/dri2_query_renderer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_renderer.c
index c96e1f94a42..c1e87723913 100644
--- a/src/glx/dri2_query_renderer.c
+++ b/src/glx/dri2_query_renderer.c
@@ -28,7 +28,9 @@
#include "dri2.h"
#include "dri_interface.h"
#include "dri2_priv.h"
+#if defined(HAVE_DRI3)
#include "dri3_priv.h"
+#endif
static int
dri2_convert_glx_query_renderer_attribs(int attribute)
@@ -99,6 +101,7 @@ dri2_query_renderer_string(struct glx_screen *base, int attribute,
return psc->rendererQuery->queryString(psc->driScreen, dri_attribute, value);
}
+#if defined(HAVE_DRI3)
_X_HIDDEN int
dri3_query_renderer_integer(struct glx_screen *base, int attribute,
unsigned int *value)
@@ -136,5 +139,6 @@ dri3_query_renderer_string(struct glx_screen *base, int attribute,
return psc->rendererQuery->queryString(psc->driScreen, dri_attribute, value);
}
+#endif /* HAVE_DRI3 */
#endif /* GLX_DIRECT_RENDERING */