i915g: Readd trace driver support
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 2 Jul 2009 13:05:17 +0000 (15:05 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 2 Jul 2009 13:05:17 +0000 (15:05 +0200)
src/gallium/winsys/drm/intel/gem/intel_be_api.c

index 09d4ba472907e845c5689d5903429768bd729964..dd5f814da3c765b3945bfa4f7e704dc86413fa9a 100644 (file)
@@ -2,6 +2,7 @@
 #include "intel_be_api.h"
 #include "i915simple/i915_winsys.h"
 #include "identity/id_drm.h"
+#include "trace/tr_drm.h"
 
 static void destroy(struct drm_api *api)
 {
@@ -25,7 +26,11 @@ struct drm_api *
 drm_api_create()
 {
 #ifdef DEBUG
+#if 0
        return identity_drm_create(&intel_be_drm_api);
+#else
+       return trace_drm_create(&intel_be_drm_api);
+#endif
 #else
        return &intel_be_drm_api;
 #endif