Merge branch 'gallium-polygon-stipple'
[mesa.git] / src / gallium / auxiliary / target-helpers / inline_debug_helper.h
1
2 #ifndef INLINE_DEBUG_HELPER_H
3 #define INLINE_DEBUG_HELPER_H
4
5 #include "pipe/p_compiler.h"
6 #include "util/u_debug.h"
7
8
9 /* Helper function to wrap a screen with
10 * one or more debug driver: rbug, trace.
11 */
12
13 #ifdef GALLIUM_TRACE
14 #include "trace/tr_public.h"
15 #endif
16
17 #ifdef GALLIUM_RBUG
18 #include "rbug/rbug_public.h"
19 #endif
20
21 #ifdef GALLIUM_GALAHAD
22 #include "galahad/glhd_public.h"
23 #endif
24
25 #ifdef GALLIUM_NOOP
26 #include "noop/noop_public.h"
27 #endif
28
29 static INLINE struct pipe_screen *
30 debug_screen_wrap(struct pipe_screen *screen)
31 {
32
33 #if defined(GALLIUM_RBUG)
34 screen = rbug_screen_create(screen);
35 #endif
36
37 #if defined(GALLIUM_TRACE)
38 screen = trace_screen_create(screen);
39 #endif
40
41 #if defined(GALLIUM_GALAHAD)
42 screen = galahad_screen_create(screen);
43 #endif
44
45 #if defined(GALLIUM_NOOP)
46 screen = noop_screen_create(screen);
47 #endif
48
49 return screen;
50 }
51
52 #endif