svga: add const qualifiers on svga_check_sampler_view_resource_collision()
authorBrian Paul <brianp@vmware.com>
Mon, 10 Apr 2017 21:02:05 +0000 (15:02 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Apr 2017 17:37:59 +0000 (11:37 -0600)
We don't change any of the argument objects.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_sampler_view.h
src/gallium/drivers/svga/svga_state_sampler.c

index 7521a82bac3cfce0833af12536f6fd14377cf533..b6f548992e18bd6f6d602715d65c840b17028bbc 100644 (file)
@@ -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
index 445afcc8d2838abcf06100c510d8941dc9bd818c..482449ecc663ce0195a4a10e22eebbecd25eb11b 100644 (file)
@@ -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;