Mesa (master): glhd: Use an environment variable (GALAHAD) to enable. Off by default.

Corbin Simpson csimpson at kemper.freedesktop.org
Wed Jun 23 11:28:16 PDT 2010


Module: Mesa
Branch: master
Commit: 95263058349060fcba9f59a866eb30b4656c33a5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=95263058349060fcba9f59a866eb30b4656c33a5

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Wed Jun 23 11:06:42 2010 -0700

glhd: Use an environment variable (GALAHAD) to enable. Off by default.

---

 src/gallium/drivers/galahad/glhd_drm.c     |    3 +++
 src/gallium/winsys/radeon/drm/radeon_drm.c |    3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/galahad/glhd_drm.c b/src/gallium/drivers/galahad/glhd_drm.c
index 78e290c..d62f6f4 100644
--- a/src/gallium/drivers/galahad/glhd_drm.c
+++ b/src/gallium/drivers/galahad/glhd_drm.c
@@ -75,6 +75,9 @@ galahad_drm_create(struct drm_api *api)
    if (!api)
       goto error;
 
+   if (!debug_get_option("GALAHAD", FALSE))
+      goto error;
+
    glhd_api = CALLOC_STRUCT(galahad_drm_api);
 
    if (!glhd_api)
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm.c b/src/gallium/winsys/radeon/drm/radeon_drm.c
index 590b1d0..a9ae09c 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm.c
@@ -190,6 +190,5 @@ static struct drm_api radeon_drm_api_hooks = {
 
 struct drm_api* drm_api_create()
 {
-    //return galahad_drm_create(trace_drm_create(&radeon_drm_api_hooks));
-    return trace_drm_create(&radeon_drm_api_hooks);
+    return galahad_drm_create(trace_drm_create(&radeon_drm_api_hooks));
 }



More information about the mesa-commit mailing list