diff options
author | Brian Paul <[email protected]> | 2017-07-13 22:18:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-07-17 10:06:01 -0600 |
commit | 6f4923bd380e4e2e791ee404ca8e01c553731ded (patch) | |
tree | e3940c8c261c21fb4fd3d9ad53d5b4021679cdab /src/gallium | |
parent | 589f546256daad68a6f48458f461bc5d7f7dd76d (diff) |
svga: add some const qualifiers
Trivial.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/svga/svga_state_constants.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_state_constants.c b/src/gallium/drivers/svga/svga_state_constants.c index 2e4620c4ce4..2a61e8e3d02 100644 --- a/src/gallium/drivers/svga/svga_state_constants.c +++ b/src/gallium/drivers/svga/svga_state_constants.c @@ -72,9 +72,9 @@ svga_get_extra_constants_common(struct svga_context *svga, unsigned count = 0; for (i = 0; i < variant->key.num_textures; i++) { - struct pipe_sampler_view *sv = svga->curr.sampler_views[shader][i]; + const struct pipe_sampler_view *sv = svga->curr.sampler_views[shader][i]; if (sv) { - struct pipe_resource *tex = sv->texture; + const struct pipe_resource *tex = sv->texture; /* Scaling factors needed for handling unnormalized texture coordinates * for texture rectangles. */ @@ -150,7 +150,7 @@ svga_get_prescale_constants(struct svga_context *svga, float **dest) static unsigned svga_get_pt_sprite_constants(struct svga_context *svga, float **dest) { - struct svga_screen *screen = svga_screen(svga->pipe.screen); + const struct svga_screen *screen = svga_screen(svga->pipe.screen); float *dst = *dest; dst[0] = 1.0 / (svga->curr.viewport.scale[0] * 2); |