summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/galahad
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/galahad')
-rw-r--r--src/gallium/drivers/galahad/glhd_screen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/galahad/glhd_screen.c b/src/gallium/drivers/galahad/glhd_screen.c
index bcc37cb633a..4117485702e 100644
--- a/src/gallium/drivers/galahad/glhd_screen.c
+++ b/src/gallium/drivers/galahad/glhd_screen.c
@@ -36,6 +36,7 @@
#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)
@@ -298,9 +299,12 @@ galahad_screen_create(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;