diff options
author | Keith Whitwell <[email protected]> | 2010-03-04 16:09:33 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-03-04 16:09:33 +0000 |
commit | 94ce4eb3c27706d992226d847d123c46b14b1c4f (patch) | |
tree | 051157b0c0a2717484e2c0e41551c1e75f0cb289 /src/gallium/drivers/softpipe/sp_screen.h | |
parent | c7f7a309af54c76eccb451aa0c4f007656ebe7e1 (diff) |
softpipe: rework to use the llvmpipe winsys
Promote the llvmpipe winsys more or less unchanged to
state_trackers/sw_winsys.h.
Some minor breakages:
- softpipe::texture_blanket is broken, but scheduled for removal anyway.
- haven't fixed up g3vdl yet.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.h b/src/gallium/drivers/softpipe/sp_screen.h index 3d4bfd3e840..4d7d8bada2c 100644 --- a/src/gallium/drivers/softpipe/sp_screen.h +++ b/src/gallium/drivers/softpipe/sp_screen.h @@ -35,10 +35,13 @@ #include "pipe/p_defines.h" +struct sw_winsys; struct softpipe_screen { struct pipe_screen base; + struct sw_winsys *winsys; + /* Increments whenever textures are modified. Contexts can track * this. */ @@ -55,4 +58,13 @@ softpipe_screen( struct pipe_screen *pipe ) } + +/** + * Create a softpipe screen that uses the + * given winsys for allocating buffers. + */ +struct pipe_screen *softpipe_create_screen( struct sw_winsys * ); + + + #endif /* SP_SCREEN_H */ |