diff options
Diffstat (limited to 'src/gallium/drivers')
-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); |