r300g: Readd trace driver support
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 2 Jul 2009 13:05:51 +0000 (15:05 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 2 Jul 2009 13:07:53 +0000 (15:07 +0200)
src/gallium/winsys/drm/radeon/core/radeon_drm.c

index 556d3f54fe8feec5d337af589d196332d9dfbf5c..4cad96041f3b04a2cf55c78a84ee1b13aecda706 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include "radeon_drm.h"
+#include "trace/tr_drm.h"
 
 /* Create a pipe_screen. */
 struct pipe_screen* radeon_create_screen(struct drm_api* api,
@@ -130,5 +131,9 @@ struct drm_api drm_api_hooks = {
 
 struct drm_api* drm_api_create()
 {
+#ifdef DEBUG
+    return trace_drm_create(&drm_api_hooks);
+#else
     return &drm_api_hooks;
+#endif
 }