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.
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
#include "target-helpers/wrap_screen.h"
|
#include "target-helpers/wrap_screen.h"
|
||||||
#include "trace/tr_public.h"
|
#include "trace/tr_public.h"
|
||||||
|
#include "rbug/rbug_public.h"
|
||||||
#include "identity/id_public.h"
|
#include "identity/id_public.h"
|
||||||
#include "util/u_debug.h"
|
#include "util/u_debug.h"
|
||||||
|
|
||||||
@@ -56,6 +57,9 @@ gallium_wrap_screen( struct pipe_screen *screen )
|
|||||||
/* Trace does its own checking if it should run */
|
/* Trace does its own checking if it should run */
|
||||||
screen = trace_screen_create(screen);
|
screen = trace_screen_create(screen);
|
||||||
|
|
||||||
|
/* Rbug does its own checking if it should run */
|
||||||
|
screen = rbug_screen_create(screen);
|
||||||
|
|
||||||
return screen;
|
return screen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -34,4 +34,7 @@ struct pipe_context;
|
|||||||
struct pipe_screen *
|
struct pipe_screen *
|
||||||
rbug_screen_create(struct pipe_screen *screen);
|
rbug_screen_create(struct pipe_screen *screen);
|
||||||
|
|
||||||
|
boolean
|
||||||
|
rbug_enabled(void);
|
||||||
|
|
||||||
#endif /* RBUG_PUBLIC_H */
|
#endif /* RBUG_PUBLIC_H */
|
||||||
|
@@ -285,6 +285,12 @@ rbug_screen_fence_finish(struct pipe_screen *_screen,
|
|||||||
flags);
|
flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean
|
||||||
|
rbug_enabled()
|
||||||
|
{
|
||||||
|
return debug_get_option_rbug();
|
||||||
|
}
|
||||||
|
|
||||||
struct pipe_screen *
|
struct pipe_screen *
|
||||||
rbug_screen_create(struct pipe_screen *screen)
|
rbug_screen_create(struct pipe_screen *screen)
|
||||||
{
|
{
|
||||||
|
@@ -28,6 +28,8 @@
|
|||||||
#include "state_tracker/drm_api.h"
|
#include "state_tracker/drm_api.h"
|
||||||
|
|
||||||
#include "util/u_memory.h"
|
#include "util/u_memory.h"
|
||||||
|
#include "rbug/rbug_public.h"
|
||||||
|
#include "tr_screen.h"
|
||||||
#include "tr_drm.h"
|
#include "tr_drm.h"
|
||||||
#include "tr_screen.h"
|
#include "tr_screen.h"
|
||||||
#include "tr_public.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);
|
screen = api->create_screen(api, fd, arg);
|
||||||
|
|
||||||
|
|
||||||
return trace_screen_create(screen);
|
return trace_screen_create(rbug_screen_create(screen));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -84,7 +86,7 @@ trace_drm_create(struct drm_api *api)
|
|||||||
if (!api)
|
if (!api)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!trace_enabled())
|
if (!trace_enabled() && !rbug_enabled())
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
tr_api = CALLOC_STRUCT(trace_drm_api);
|
tr_api = CALLOC_STRUCT(trace_drm_api);
|
||||||
|
@@ -38,6 +38,9 @@ struct pipe_context;
|
|||||||
struct pipe_screen *
|
struct pipe_screen *
|
||||||
trace_screen_create(struct pipe_screen *screen);
|
trace_screen_create(struct pipe_screen *screen);
|
||||||
|
|
||||||
|
boolean
|
||||||
|
trace_enabled(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -64,9 +64,6 @@ struct trace_screen
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
boolean
|
|
||||||
trace_enabled(void);
|
|
||||||
|
|
||||||
struct trace_screen *
|
struct trace_screen *
|
||||||
trace_screen(struct pipe_screen *screen);
|
trace_screen(struct pipe_screen *screen);
|
||||||
|
|
||||||
|
@@ -19,7 +19,8 @@ x11_ST = $(TOP)/src/gallium/state_trackers/egl/libeglx11.a \
|
|||||||
$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \
|
$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a
|
||||||
|
|
||||||
x11_LIBS = $(common_LIBS) -lX11 -lXext -lXfixes
|
x11_LIBS = $(common_LIBS) -lX11 -lXext -lXfixes
|
||||||
|
|
||||||
|
@@ -7,6 +7,7 @@ PIPE_DRIVERS = \
|
|||||||
$(TOP)/src/gallium/state_trackers/dri/drm/libdridrm.a \
|
$(TOP)/src/gallium/state_trackers/dri/drm/libdridrm.a \
|
||||||
$(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
|
$(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
||||||
$(TOP)/src/gallium/drivers/i915/libi915.a
|
$(TOP)/src/gallium/drivers/i915/libi915.a
|
||||||
|
@@ -13,6 +13,7 @@ env.Prepend(LIBS = [
|
|||||||
i915drm,
|
i915drm,
|
||||||
i915,
|
i915,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
mesa,
|
mesa,
|
||||||
glsl,
|
glsl,
|
||||||
gallium,
|
gallium,
|
||||||
|
@@ -7,6 +7,7 @@ PIPE_DRIVERS = \
|
|||||||
$(TOP)/src/gallium/state_trackers/dri/drm/libdridrm.a \
|
$(TOP)/src/gallium/state_trackers/dri/drm/libdridrm.a \
|
||||||
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
|
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/winsys/sw/drm/libswdrm.a \
|
$(TOP)/src/gallium/winsys/sw/drm/libswdrm.a \
|
||||||
$(TOP)/src/gallium/winsys/sw/wrapper/libwsw.a \
|
$(TOP)/src/gallium/winsys/sw/wrapper/libwsw.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
|
@@ -15,6 +15,7 @@ env.Prepend(LIBS = [
|
|||||||
ws_wrapper,
|
ws_wrapper,
|
||||||
i965,
|
i965,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
mesa,
|
mesa,
|
||||||
glsl,
|
glsl,
|
||||||
gallium,
|
gallium,
|
||||||
|
@@ -8,6 +8,7 @@ PIPE_DRIVERS = \
|
|||||||
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
|
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/r300/libr300.a
|
$(TOP)/src/gallium/drivers/r300/libr300.a
|
||||||
|
|
||||||
C_SOURCES = \
|
C_SOURCES = \
|
||||||
|
@@ -13,6 +13,7 @@ env.Prepend(LIBS = [
|
|||||||
radeonwinsys,
|
radeonwinsys,
|
||||||
r300,
|
r300,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
mesa,
|
mesa,
|
||||||
glsl,
|
glsl,
|
||||||
gallium,
|
gallium,
|
||||||
|
@@ -9,7 +9,8 @@ PIPE_DRIVERS = \
|
|||||||
$(TOP)/src/gallium/state_trackers/dri/sw/libdrisw.a \
|
$(TOP)/src/gallium/state_trackers/dri/sw/libdrisw.a \
|
||||||
$(TOP)/src/gallium/winsys/sw/dri/libswdri.a \
|
$(TOP)/src/gallium/winsys/sw/dri/libswdri.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a
|
||||||
|
|
||||||
SWRAST_COMMON_GALLIUM_SOURCES = \
|
SWRAST_COMMON_GALLIUM_SOURCES = \
|
||||||
$(TOP)/src/mesa/drivers/dri/common/utils.c \
|
$(TOP)/src/mesa/drivers/dri/common/utils.c \
|
||||||
|
@@ -10,6 +10,7 @@ env.Prepend(LIBS = [
|
|||||||
st_drisw,
|
st_drisw,
|
||||||
ws_dri,
|
ws_dri,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
mesa,
|
mesa,
|
||||||
glsl,
|
glsl,
|
||||||
gallium,
|
gallium,
|
||||||
|
@@ -7,6 +7,7 @@ PIPE_DRIVERS = \
|
|||||||
$(TOP)/src/gallium/state_trackers/dri/drm/libdridrm.a \
|
$(TOP)/src/gallium/state_trackers/dri/drm/libdridrm.a \
|
||||||
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
|
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/svga/libsvga.a
|
$(TOP)/src/gallium/drivers/svga/libsvga.a
|
||||||
|
|
||||||
C_SOURCES = \
|
C_SOURCES = \
|
||||||
|
@@ -11,6 +11,7 @@ env.Prepend(LIBS = [
|
|||||||
svgadrm,
|
svgadrm,
|
||||||
svga,
|
svga,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
mesa,
|
mesa,
|
||||||
glsl,
|
glsl,
|
||||||
gallium,
|
gallium,
|
||||||
|
@@ -8,6 +8,7 @@ EGL_DRIVER_LIBS = -ldrm_intel
|
|||||||
EGL_DRIVER_PIPES = \
|
EGL_DRIVER_PIPES = \
|
||||||
$(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
|
$(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/i915/libi915.a
|
$(TOP)/src/gallium/drivers/i915/libi915.a
|
||||||
|
|
||||||
include ../Makefile.egl
|
include ../Makefile.egl
|
||||||
|
@@ -8,6 +8,7 @@ EGL_DRIVER_LIBS = -ldrm_intel
|
|||||||
EGL_DRIVER_PIPES = \
|
EGL_DRIVER_PIPES = \
|
||||||
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
|
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/i965/libi965.a \
|
$(TOP)/src/gallium/drivers/i965/libi965.a \
|
||||||
$(TOP)/src/gallium/winsys/sw/drm/libswdrm.a \
|
$(TOP)/src/gallium/winsys/sw/drm/libswdrm.a \
|
||||||
$(TOP)/src/gallium/winsys/sw/wrapper/libwsw.a \
|
$(TOP)/src/gallium/winsys/sw/wrapper/libwsw.a \
|
||||||
|
@@ -8,6 +8,7 @@ EGL_DRIVER_LIBS = -ldrm_radeon
|
|||||||
EGL_DRIVER_PIPES = \
|
EGL_DRIVER_PIPES = \
|
||||||
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
|
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/r300/libr300.a
|
$(TOP)/src/gallium/drivers/r300/libr300.a
|
||||||
|
|
||||||
include ../Makefile.egl
|
include ../Makefile.egl
|
||||||
|
@@ -8,6 +8,7 @@ EGL_DRIVER_LIBS =
|
|||||||
EGL_DRIVER_PIPES = \
|
EGL_DRIVER_PIPES = \
|
||||||
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
|
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/svga/libsvga.a
|
$(TOP)/src/gallium/drivers/svga/libsvga.a
|
||||||
|
|
||||||
include ../Makefile.egl
|
include ../Makefile.egl
|
||||||
|
@@ -8,6 +8,7 @@ env = env.Clone()
|
|||||||
env.Prepend(LIBS = [
|
env.Prepend(LIBS = [
|
||||||
ws_null,
|
ws_null,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
identity,
|
identity,
|
||||||
# gallium,
|
# gallium,
|
||||||
])
|
])
|
||||||
|
@@ -13,6 +13,7 @@ env.Tool('x11')
|
|||||||
env.Prepend(LIBS = [
|
env.Prepend(LIBS = [
|
||||||
ws_xlib,
|
ws_xlib,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
identity,
|
identity,
|
||||||
# gallium,
|
# gallium,
|
||||||
])
|
])
|
||||||
|
@@ -35,7 +35,7 @@ if env['platform'] == 'windows':
|
|||||||
else:
|
else:
|
||||||
sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
|
sources += ['#src/gallium/state_trackers/wgl/opengl32.def']
|
||||||
|
|
||||||
drivers += [trace]
|
drivers += [trace, rbug]
|
||||||
|
|
||||||
env['no_import_lib'] = 1
|
env['no_import_lib'] = 1
|
||||||
|
|
||||||
|
@@ -42,6 +42,7 @@ LIBS = \
|
|||||||
$(TOP)/src/gallium/state_trackers/glx/xlib/libxlib.a \
|
$(TOP)/src/gallium/state_trackers/glx/xlib/libxlib.a \
|
||||||
$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \
|
$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
||||||
$(TOP)/src/mapi/glapi/libglapi.a \
|
$(TOP)/src/mapi/glapi/libglapi.a \
|
||||||
$(TOP)/src/mesa/libmesagallium.a \
|
$(TOP)/src/mesa/libmesagallium.a \
|
||||||
|
@@ -29,6 +29,7 @@ env.Prepend(LIBS = [
|
|||||||
st_xlib,
|
st_xlib,
|
||||||
ws_xlib,
|
ws_xlib,
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
identity,
|
identity,
|
||||||
glapi,
|
glapi,
|
||||||
mesa,
|
mesa,
|
||||||
|
@@ -20,6 +20,7 @@ LIBS = \
|
|||||||
$(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
|
$(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
|
||||||
$(TOP)/src/gallium/drivers/i915/libi915.a \
|
$(TOP)/src/gallium/drivers/i915/libi915.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
$(GALLIUM_AUXILIARIES)
|
$(GALLIUM_AUXILIARIES)
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@ LIBS = \
|
|||||||
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
|
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
|
||||||
$(TOP)/src/gallium/drivers/i965/libi965.a \
|
$(TOP)/src/gallium/drivers/i965/libi965.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
$(GALLIUM_AUXILIARIES)
|
$(GALLIUM_AUXILIARIES)
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@ LIBS = \
|
|||||||
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
|
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
|
||||||
$(TOP)/src/gallium/drivers/r300/libr300.a \
|
$(TOP)/src/gallium/drivers/r300/libr300.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
$(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
|
||||||
$(GALLIUM_AUXILIARIES)
|
$(GALLIUM_AUXILIARIES)
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@ LIBS = \
|
|||||||
$(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
|
$(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
|
||||||
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
|
$(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
|
||||||
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
$(TOP)/src/gallium/drivers/trace/libtrace.a \
|
||||||
|
$(TOP)/src/gallium/drivers/rbug/librbug.a \
|
||||||
$(TOP)/src/gallium/drivers/svga/libsvga.a \
|
$(TOP)/src/gallium/drivers/svga/libsvga.a \
|
||||||
$(GALLIUM_AUXILIARIES)
|
$(GALLIUM_AUXILIARIES)
|
||||||
|
|
||||||
|
@@ -39,6 +39,7 @@ if env['platform'] == 'linux':
|
|||||||
|
|
||||||
env.Prepend(LIBS = [
|
env.Prepend(LIBS = [
|
||||||
trace,
|
trace,
|
||||||
|
rbug,
|
||||||
st_xorg,
|
st_xorg,
|
||||||
svgadrm,
|
svgadrm,
|
||||||
svga,
|
svga,
|
||||||
|
Reference in New Issue
Block a user