gallium: Add texture usage information to surface_buffer_create
[mesa.git] / src / gallium / include / pipe / internal / p_winsys_screen.h
index ee835578b23dce8b9ebae3da00d054a7abed9764..a1542dada707e3940ffd06ff4992b5ff524ffbc2 100644 (file)
@@ -67,6 +67,11 @@ struct pipe_winsys
    /** Returns name of this winsys interface */
    const char *(*get_name)( struct pipe_winsys *ws );
 
+   /**
+    * Do any special operations to ensure buffer size is correct
+    */
+   void (*update_buffer)( struct pipe_winsys *ws,
+                          void *context_private );
    /**
     * Do any special operations to ensure frontbuffer contents are
     * displayed, eg copy fake frontbuffer.
@@ -135,6 +140,7 @@ struct pipe_winsys
                                                unsigned width, unsigned height,
                                                enum pipe_format format,
                                                unsigned usage,
+                                               unsigned tex_usage,
                                                unsigned *stride);
 
 
@@ -149,8 +155,7 @@ struct pipe_winsys
    void (*buffer_unmap)( struct pipe_winsys *ws, 
                         struct pipe_buffer *buf );
 
-   void (*buffer_destroy)( struct pipe_winsys *ws,
-                          struct pipe_buffer *buf );
+   void (*buffer_destroy)( struct pipe_buffer *buf );
 
 
    /** Set ptr = fence, with reference counting */