softpipe: rework to use the llvmpipe winsys
[mesa.git] / src / gallium / drivers / softpipe / sp_screen.h
index 3d4bfd3e840b9c2909bfa01ca4c3ecde5f318bde..4d7d8bada2cdbf9461162c7eb6474441e8b56667 100644 (file)
 #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 */