#include "rbug/rbug_public.h"
#endif
+#ifdef GALLIUM_GALAHAD
+#include "galahad/glhd_public.h"
+#endif
+
static INLINE struct pipe_screen *
debug_screen_wrap(struct pipe_screen *screen)
{
screen = trace_screen_create(screen);
#endif
+#if defined(GALLIUM_GALAHAD)
+ screen = galahad_screen_create(screen);
+#endif
+
return screen;
}
#include "glhd_context.h"
#include "glhd_objects.h"
+DEBUG_GET_ONCE_BOOL_OPTION(galahad, "GALLIUM_GALAHAD", FALSE)
static void
galahad_screen_destroy(struct pipe_screen *_screen)
{
struct galahad_screen *glhd_screen;
+ if (!debug_get_option_galahad())
+ return screen;
+
glhd_screen = CALLOC_STRUCT(galahad_screen);
if (!glhd_screen) {
- return NULL;
+ return screen;
}
glhd_screen->base.winsys = NULL;