summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-06-30 11:57:29 +0200
committerJakob Bornecrantz <[email protected]>2009-06-30 12:24:47 +0200
commitf7cbaae13d67c55abe81ac230de37f564365099f (patch)
treefa026082e300ec2929062e9c8949c7c5fee3de3c /src/gallium/winsys
parent303cbb45b558a2b94e6922252cf57d115ba60b82 (diff)
identity: Create a drm_api wrapper
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/intel/dri/Makefile1
-rw-r--r--src/gallium/winsys/drm/intel/gem/intel_be_api.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/intel/dri/Makefile b/src/gallium/winsys/drm/intel/dri/Makefile
index de39e759d87..5e212b62a46 100644
--- a/src/gallium/winsys/drm/intel/dri/Makefile
+++ b/src/gallium/winsys/drm/intel/dri/Makefile
@@ -8,6 +8,7 @@ PIPE_DRIVERS = \
$(TOP)/src/gallium/winsys/drm/intel/gem/libinteldrm.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
+ $(TOP)/src/gallium/drivers/identity/libidentity.a \
$(TOP)/src/gallium/drivers/i915simple/libi915simple.a
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
}