Browse Source

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>
tags/mesa-8.0-rc1
Jakob Bornecrantz 14 years ago
parent
commit
9af9e12bc5
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h

+ 2
- 0
src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h View File

static INLINE struct pipe_screen * static INLINE struct pipe_screen *
sw_screen_wrap(struct pipe_screen *screen) sw_screen_wrap(struct pipe_screen *screen)
{ {
#if defined(GALLIUM_SOFTPIPE) || defined(GALLIUM_LLVMPIPE)
struct sw_winsys *sws; struct sw_winsys *sws;
struct pipe_screen *sw_screen = NULL; struct pipe_screen *sw_screen = NULL;
const char *driver; const char *driver;
err_winsys: err_winsys:
return wrapper_sw_winsys_dewrap_pipe_screen(sws); return wrapper_sw_winsys_dewrap_pipe_screen(sws);
err: err:
#endif
return screen; return screen;
} }



Loading…
Cancel
Save