From f7cbaae13d67c55abe81ac230de37f564365099f Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 30 Jun 2009 11:57:29 +0200 Subject: identity: Create a drm_api wrapper --- src/gallium/winsys/drm/intel/gem/intel_be_api.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/winsys/drm/intel/gem') diff --git a/src/gallium/winsys/drm/intel/gem/intel_be_api.c b/src/gallium/winsys/drm/intel/gem/intel_be_api.c index 4a1768a599a..d22d11e7237 100644 --- a/src/gallium/winsys/drm/intel/gem/intel_be_api.c +++ b/src/gallium/winsys/drm/intel/gem/intel_be_api.c @@ -1,6 +1,7 @@ #include "intel_be_api.h" #include "i915simple/i915_winsys.h" +#include "identity/id_drm.h" static void destroy(struct drm_api *api) { @@ -23,5 +24,9 @@ struct drm_api intel_be_drm_api = struct drm_api * drm_api_create() { +#ifdef DEBUG + return identity_drm_create(&intel_be_drm_api); +#else return &intel_be_drm_api; +#endif } -- cgit v1.2.3