summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-07-02 15:05:51 +0200
committerJakob Bornecrantz <[email protected]>2009-07-02 15:07:53 +0200
commitd1c8a0a30860ab6cd4a50582972fb185766595bd (patch)
treebe259616afebf4286072c60b038df6e9b362ce2c /src
parent59abfa8e42599a8c6c11db841ec527826cdcb717 (diff)
r300g: Readd trace driver support
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_drm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_drm.c b/src/gallium/winsys/drm/radeon/core/radeon_drm.c
index 556d3f54fe8..4cad96041f3 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_drm.c
+++ b/src/gallium/winsys/drm/radeon/core/radeon_drm.c
@@ -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
}