OSDN Git Service

svga: make svga_surface_needs_propagation() surface const
authorBrian Paul <brianp@vmware.com>
Wed, 13 Jun 2012 17:41:32 +0000 (11:41 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 14 Jun 2012 14:20:40 +0000 (08:20 -0600)
src/gallium/drivers/svga/svga_surface.c
src/gallium/drivers/svga/svga_surface.h

index 2f9379b..44c1892 100644 (file)
@@ -384,9 +384,9 @@ svga_propagate_surface(struct svga_context *svga, struct pipe_surface *surf)
  * Check if we should call svga_propagate_surface on the surface.
  */
 boolean
-svga_surface_needs_propagation(struct pipe_surface *surf)
+svga_surface_needs_propagation(const struct pipe_surface *surf)
 {
-   struct svga_surface *s = svga_surface(surf);
+   const struct svga_surface *s = svga_surface_const(surf);
    struct svga_texture *tex = svga_texture(surf->texture);
 
    return s->dirty && s->handle != tex->handle;
index 7fb060c..7b8f6f0 100644 (file)
@@ -59,7 +59,7 @@ extern void
 svga_propagate_surface(struct svga_context *svga, struct pipe_surface *surf);
 
 extern boolean
-svga_surface_needs_propagation(struct pipe_surface *surf);
+svga_surface_needs_propagation(const struct pipe_surface *surf);
 
 struct svga_winsys_surface *
 svga_texture_view_surface(struct svga_context *svga,