diff options
author | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-04-20 23:31:25 +0100 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-04-20 23:53:59 +0100 |
commit | 997969b067fa85cbef2c743810658b88ac43a75a (patch) | |
tree | 97e0f2a74f56b0d2bd0b5d025a74a0141bcfc205 | |
parent | 1d98ce511dc81f717edb5f0f5251463b9941ec99 (diff) | |
download | external_mesa3d-997969b067fa85cbef2c743810658b88ac43a75a.zip external_mesa3d-997969b067fa85cbef2c743810658b88ac43a75a.tar.gz external_mesa3d-997969b067fa85cbef2c743810658b88ac43a75a.tar.bz2 |
radeong: Minor clean up of winsys
Also try to wrap trace around driver on non-debug builds, its free.
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm.c b/src/gallium/winsys/radeon/drm/radeon_drm.c index 2809b57..667ca73 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm.c @@ -181,23 +181,14 @@ fail: return NULL; } -static void radeon_drm_api_destroy(struct drm_api *api) -{ - return; -} - -struct drm_api drm_api_hooks = { +static struct drm_api radeon_drm_api_hooks = { .name = "radeon", .driver_name = "radeon", .create_screen = radeon_create_screen, - .destroy = radeon_drm_api_destroy, + .destroy = NULL; }; struct drm_api* drm_api_create() { -#ifdef DEBUG - return trace_drm_create(&drm_api_hooks); -#else - return &drm_api_hooks; -#endif + return trace_drm_create(&radeon_drm_api_hooks); } |