[Mesa-dev] [PATCH] glx/dri2: Respect --enable/disable-driglx-direct

Daniel Martin consume.noise at gmail.com
Thu Feb 13 02:11:39 PST 2014


Encapsulate the code in src/glx/dri2_query_renderer.c within a

    #ifdef GLX_DIRECT_RENDERING

as done in src/glx/dri2*.c.

Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
... compile it, when enabled only.

Cheers,
    Daniel

 src/glx/dri2_query_renderer.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_renderer.c
index b50a202..3bc90c7 100644
--- a/src/glx/dri2_query_renderer.c
+++ b/src/glx/dri2_query_renderer.c
@@ -20,6 +20,9 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  */
+
+#ifdef GLX_DIRECT_RENDERING
+
 #include "glxclient.h"
 #include "glx_error.h"
 #include "xf86drm.h"
@@ -95,3 +98,5 @@ dri2_query_renderer_string(struct glx_screen *base, int attribute,
 
    return psc->rendererQuery->queryString(psc->driScreen, dri_attribute, value);
 }
+
+#endif /* GLX_DIRECT_RENDERING */
-- 
1.7.2.5



More information about the mesa-dev mailing list