Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  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. #if defined(GALLIUM_RBUG)
  33.    screen = rbug_screen_create(screen);
  34. #endif
  35.  
  36. #if defined(GALLIUM_TRACE)
  37.    screen = trace_screen_create(screen);
  38. #endif
  39.  
  40. #if defined(GALLIUM_GALAHAD)
  41.    screen = galahad_screen_create(screen);
  42. #endif
  43.  
  44. #if defined(GALLIUM_NOOP)
  45.    screen = noop_screen_create(screen);
  46. #endif
  47.  
  48.    return screen;
  49. }
  50.  
  51. #endif
  52.