瀏覽代碼

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 13 年之前
父節點
當前提交
9af9e12bc5
共有 1 個檔案被更改,包括 2 行新增0 行删除
  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 查看文件

@@ -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…
取消
儲存