Mesa (master): svga: add const qualifiers on svga_check_sampler_view_resource_collision()

Brian Paul brianp at kemper.freedesktop.org
Wed Apr 26 17:40:28 UTC 2017


Module: Mesa
Branch: master
Commit: 1ee181b3548a93b19474de5a13cfade208056996
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ee181b3548a93b19474de5a13cfade208056996

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Apr 10 15:02:05 2017 -0600

svga: add const qualifiers on svga_check_sampler_view_resource_collision()

We don't change any of the argument objects.

Reviewed-by: Charmaine Lee <charmainel at vmware.com>

---

 src/gallium/drivers/svga/svga_sampler_view.h  | 4 ++--
 src/gallium/drivers/svga/svga_state_sampler.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_sampler_view.h b/src/gallium/drivers/svga/svga_sampler_view.h
index 7521a82bac..b6f548992e 100644
--- a/src/gallium/drivers/svga/svga_sampler_view.h
+++ b/src/gallium/drivers/svga/svga_sampler_view.h
@@ -100,8 +100,8 @@ svga_sampler_view_reference(struct svga_sampler_view **ptr, struct svga_sampler_
 }
 
 boolean
-svga_check_sampler_view_resource_collision(struct svga_context *svga,
-                                           struct svga_winsys_surface *res,
+svga_check_sampler_view_resource_collision(const struct svga_context *svga,
+                                           const struct svga_winsys_surface *res,
                                            enum pipe_shader_type shader);
 
 boolean
diff --git a/src/gallium/drivers/svga/svga_state_sampler.c b/src/gallium/drivers/svga/svga_state_sampler.c
index 445afcc8d2..482449ecc6 100644
--- a/src/gallium/drivers/svga/svga_state_sampler.c
+++ b/src/gallium/drivers/svga/svga_state_sampler.c
@@ -64,8 +64,8 @@ svga_resource_handle(struct pipe_resource *res)
  * any of the resources bound to any of the currently bound sampler views.
  */
 boolean
-svga_check_sampler_view_resource_collision(struct svga_context *svga,
-                                           struct svga_winsys_surface *res,
+svga_check_sampler_view_resource_collision(const struct svga_context *svga,
+                                           const struct svga_winsys_surface *res,
                                            enum pipe_shader_type shader)
 {
    struct pipe_screen *screen = svga->pipe.screen;




More information about the mesa-commit mailing list