[Mesa-dev] [PATCH 01/12] target-helpers: If neither softpipe or llvmpipe is used just return the screen
Jakob Bornecrantz
jakob at vmware.com
Mon Jan 9 14:53:06 PST 2012
Signed-off-by: Jakob Bornecrantz <jakob at vmware.com>
---
.../target-helpers/inline_wrapper_sw_helper.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h b/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
index e4effa7..0a2e215 100644
--- a/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
@@ -12,6 +12,7 @@
static INLINE struct pipe_screen *
sw_screen_wrap(struct pipe_screen *screen)
{
+#if defined(GALLIUM_SOFTPIPE) || defined(GALLIUM_LLVMPIPE)
struct sw_winsys *sws;
struct pipe_screen *sw_screen = NULL;
const char *driver;
@@ -34,6 +35,7 @@ sw_screen_wrap(struct pipe_screen *screen)
err_winsys:
return wrapper_sw_winsys_dewrap_pipe_screen(sws);
err:
+#endif
return screen;
}
--
1.7.5.4
More information about the mesa-dev
mailing list