glhd: Use an environment variable (GALAHAD) to enable. Off by default.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 23 Jun 2010 18:06:42 +0000 (11:06 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 23 Jun 2010 18:06:42 +0000 (11:06 -0700)
src/gallium/drivers/galahad/glhd_drm.c
src/gallium/winsys/radeon/drm/radeon_drm.c

index 78e290c9a846ef66cc9ac75c17db8bab8b670e4f..d62f6f4f7bc42a6db704827df127c423616e1f91 100644 (file)
@@ -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)
index 590b1d047bef26a79212dd8082c0b1e4900ba2ec..a9ae09cb60eec9f38539c1fda3467fcf2adef501 100644 (file)
@@ -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));
 }