Mesa (master): svga: make svga_surface_needs_propagation() surface const
Brian Paul
brianp at kemper.freedesktop.org
Thu Jun 14 14:32:50 UTC 2012
Module: Mesa
Branch: master
Commit: 5234b8902c8865e6547cd24145732a1f2f4760b6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5234b8902c8865e6547cd24145732a1f2f4760b6
Author: Brian Paul <brianp at vmware.com>
Date: Wed Jun 13 11:41:32 2012 -0600
svga: make svga_surface_needs_propagation() surface const
---
src/gallium/drivers/svga/svga_surface.c | 4 ++--
src/gallium/drivers/svga/svga_surface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_surface.c b/src/gallium/drivers/svga/svga_surface.c
index 2f9379b..44c1892 100644
--- a/src/gallium/drivers/svga/svga_surface.c
+++ b/src/gallium/drivers/svga/svga_surface.c
@@ -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;
diff --git a/src/gallium/drivers/svga/svga_surface.h b/src/gallium/drivers/svga/svga_surface.h
index 7fb060c..7b8f6f0 100644
--- a/src/gallium/drivers/svga/svga_surface.h
+++ b/src/gallium/drivers/svga/svga_surface.h
@@ -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,
More information about the mesa-commit
mailing list