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

This commit is contained in:
Corbin Simpson 2010-06-23 11:06:42 -07:00
parent 64682da8ab
commit 9526305834
2 changed files with 4 additions and 2 deletions

View 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)

View 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));
}