From f1de38b851d274b16e8b58669a110b0124e0f40b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 3 Sep 2010 16:33:17 -0600 Subject: libgl-xlib: enable galahad support If the GALLIUM_GALAHAD env var is 1 we'll wrap the regular driver with the galahad validation driver. --- src/gallium/targets/libgl-xlib/xlib.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gallium/targets/libgl-xlib/xlib.c') diff --git a/src/gallium/targets/libgl-xlib/xlib.c b/src/gallium/targets/libgl-xlib/xlib.c index 5a9c80c8566..5914f63352a 100644 --- a/src/gallium/targets/libgl-xlib/xlib.c +++ b/src/gallium/targets/libgl-xlib/xlib.c @@ -78,6 +78,10 @@ st_api_create_OpenGL() #include "cell/ppu/cell_public.h" #endif +#ifdef GALLIUM_GALAHAD +#include "galahad/glhd_public.h" +#endif + static struct pipe_screen * swrast_create_screen(struct sw_winsys *winsys) { @@ -112,6 +116,14 @@ swrast_create_screen(struct sw_winsys *winsys) screen = softpipe_create_screen( winsys ); #endif +#if defined(GALLIUM_GALAHAD) + if (screen) { + struct pipe_screen *galahad_screen = galahad_screen_create(screen); + if (galahad_screen) + screen = galahad_screen; + } +#endif + return screen; } -- cgit v1.2.3