From 53cbb81576671d6d39e6a353e79ebda2c512d735 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 12 May 2010 20:11:37 +0100 Subject: 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. --- src/gallium/drivers/rbug/rbug_public.h | 3 +++ src/gallium/drivers/rbug/rbug_screen.c | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'src/gallium/drivers/rbug') diff --git a/src/gallium/drivers/rbug/rbug_public.h b/src/gallium/drivers/rbug/rbug_public.h index f3cb19a340..b66740b49c 100644 --- a/src/gallium/drivers/rbug/rbug_public.h +++ b/src/gallium/drivers/rbug/rbug_public.h @@ -34,4 +34,7 @@ struct pipe_context; struct pipe_screen * rbug_screen_create(struct pipe_screen *screen); +boolean +rbug_enabled(void); + #endif /* RBUG_PUBLIC_H */ 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) { -- cgit v1.2.3