iris: warning fixes
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 29 Jan 2018 23:06:08 +0000 (15:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 0e3544bf5bdc8dabc61e0b4cb49f982c51024e96..d6a7a88a37aa53d6e845a802f9faa3dbb638057f 100644 (file)
@@ -1445,10 +1445,10 @@ iris_populate_fs_key(const struct iris_context *ice,
    memset(key, 0, sizeof(*key));
 
    /* XXX: dirty flags? */
-   struct pipe_framebuffer_state *fb = &ice->state.framebuffer;
-   struct iris_depth_stencil_alpha_state *zsa = ice->state.cso_zsa;
-   struct iris_rasterizer_state *rast = ice->state.cso_rast;
-   struct iris_blend_state *blend = ice->state.cso_blend;
+   const struct pipe_framebuffer_state *fb = &ice->state.framebuffer;
+   const struct iris_depth_stencil_alpha_state *zsa = ice->state.cso_zsa;
+   const struct iris_rasterizer_state *rast = ice->state.cso_rast;
+   const struct iris_blend_state *blend = ice->state.cso_blend;
 
    key->nr_color_regions = fb->nr_cbufs;