summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/rbug/rbug_screen.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-05-12 20:11:37 +0100
committerJakob Bornecrantz <jakob@vmware.com>2010-05-12 20:15:23 +0100
commit53cbb81576671d6d39e6a353e79ebda2c512d735 (patch)
tree86affe2ce5b536a34b471a44daaf2a6c1059fb0c /src/gallium/drivers/rbug/rbug_screen.c
parent5494332128da0b2826e85df5eeaa878bb5c30a4e (diff)
rbug: Add to all targets that link against trace
Also added calls to the create function in target helpers and in tr_drm.c the latter being a hack and should be replaced with the wrap screen target helper. But at least this way we don't regress.
Diffstat (limited to 'src/gallium/drivers/rbug/rbug_screen.c')
-rw-r--r--src/gallium/drivers/rbug/rbug_screen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/rbug/rbug_screen.c b/src/gallium/drivers/rbug/rbug_screen.c
index acdb1f6dc0..7d7b9247c3 100644
--- a/src/gallium/drivers/rbug/rbug_screen.c
+++ b/src/gallium/drivers/rbug/rbug_screen.c
@@ -285,6 +285,12 @@ rbug_screen_fence_finish(struct pipe_screen *_screen,
flags);
}
+boolean
+rbug_enabled()
+{
+ return debug_get_option_rbug();
+}
+
struct pipe_screen *
rbug_screen_create(struct pipe_screen *screen)
{