target-helpers: If neither softpipe or llvmpipe is used just return the screen

So the targets can drop the sw_wrapper winsys when no sw driver is being used.

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by Brian Paul <brianp@vmware.com>
This commit is contained in:
Jakob Bornecrantz 2012-01-09 13:36:20 +01:00
parent ec8cbd79ac
commit 9af9e12bc5

View file

@ -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;
}