panfrost: split asserts in pandecode
[mesa.git] / src / gallium / state_trackers / wgl / stw_winsys.h
index 270fad56a19dd28fd5f87853815a630b60f35f5a..281b201bc22b2aa6c9977dba686ad5e1fdaee552 100644 (file)
@@ -34,7 +34,7 @@
 
 struct pipe_screen;
 struct pipe_context;
-struct pipe_surface;
+struct pipe_resource;
 
 struct stw_shared_surface;
 
@@ -43,12 +43,13 @@ struct stw_winsys
    struct pipe_screen *
    (*create_screen)( void );
 
+   /* XXX is it actually possible to have non-zero level/layer ??? */
    /**
     * Present the color buffer to the window associated with the device context.
     */
    void
    (*present)( struct pipe_screen *screen,
-               struct pipe_surface *surf,
+               struct pipe_resource *res,
                HDC hDC );
 
    /**
@@ -77,7 +78,7 @@ struct stw_winsys
                            struct stw_shared_surface *surface);
 
    /**
-    * Compose into a shared (optional).
+    * Compose into a shared surface (optional).
     *
     * Blit the color buffer into a shared surface.
     *
@@ -85,7 +86,7 @@ struct stw_winsys
     */
    void
    (*compose)( struct pipe_screen *screen,
-               struct pipe_surface *src,
+               struct pipe_resource *res,
                struct stw_shared_surface *dest,
                LPCRECT pRect,
                ULONGLONG PresentHistoryToken );