mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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:
parent
ec8cbd79ac
commit
9af9e12bc5
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue