From: Jakob Bornecrantz Date: Tue, 20 Apr 2010 22:31:25 +0000 (+0100) Subject: radeong: Minor clean up of winsys X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=997969b067fa85cbef2c743810658b88ac43a75a;p=mesa.git radeong: Minor clean up of winsys Also try to wrap trace around driver on non-debug builds, its free. --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm.c b/src/gallium/winsys/radeon/drm/radeon_drm.c index 2809b578626..667ca73a176 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); }