summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_drm.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-05-12 20:11:37 +0100
committerJakob Bornecrantz <[email protected]>2010-05-12 20:15:23 +0100
commit53cbb81576671d6d39e6a353e79ebda2c512d735 (patch)
tree86affe2ce5b536a34b471a44daaf2a6c1059fb0c /src/gallium/drivers/trace/tr_drm.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/trace/tr_drm.c')
-rw-r--r--src/gallium/drivers/trace/tr_drm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/trace/tr_drm.c b/src/gallium/drivers/trace/tr_drm.c
index 0dc8cca2648..43a4b296de2 100644
--- a/src/gallium/drivers/trace/tr_drm.c
+++ b/src/gallium/drivers/trace/tr_drm.c
@@ -28,6 +28,8 @@
#include "state_tracker/drm_api.h"
#include "util/u_memory.h"
+#include "rbug/rbug_public.h"
+#include "tr_screen.h"
#include "tr_drm.h"
#include "tr_screen.h"
#include "tr_public.h"
@@ -61,7 +63,7 @@ trace_drm_create_screen(struct drm_api *_api, int fd,
screen = api->create_screen(api, fd, arg);
- return trace_screen_create(screen);
+ return trace_screen_create(rbug_screen_create(screen));
}
static void
@@ -84,7 +86,7 @@ trace_drm_create(struct drm_api *api)
if (!api)
goto error;
- if (!trace_enabled())
+ if (!trace_enabled() && !rbug_enabled())
goto error;
tr_api = CALLOC_STRUCT(trace_drm_api);