Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5564 serge 1
 
2
#define INLINE_DEBUG_HELPER_H
3
4
 
5
#include "util/u_debug.h"
6
#include "util/u_tests.h"
7
8
 
9
 
10
 * one or more debug driver: rbug, trace.
11
 */
12
13
 
14
#include "trace/tr_public.h"
15
#endif
16
17
 
18
#include "rbug/rbug_public.h"
19
#endif
20
21
 
22
#include "noop/noop_public.h"
23
#endif
24
25
 
26
 * TODO: Audit the following *screen_create() - all of
27
 * them should return the original screen on failuire.
28
 */
29
static INLINE struct pipe_screen *
30
debug_screen_wrap(struct pipe_screen *screen)
31
{
32
#if defined(GALLIUM_RBUG)
33
   screen = rbug_screen_create(screen);
34
#endif
35
36
 
37
   screen = trace_screen_create(screen);
38
#endif
39
40
 
41
   screen = noop_screen_create(screen);
42
#endif
43
44
 
45
      util_run_tests(screen);
46
47
 
48
}
49
50
 
51