vc4: Remove dead dirty_samplers field.
authorEric Anholt <eric@anholt.net>
Fri, 15 Jul 2016 00:31:33 +0000 (17:31 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 15 Jul 2016 20:54:00 +0000 (13:54 -0700)
We use a big VC4_DIRTY_FRAGTEX/VC4_DIRTY_VERTEX on the stage, instead.

src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_state.c

index c271a957717458333dbb07c3246b9616640960d8..a7c25a8bb0dc97cdec8db0bf4ad7b0964d327e29 100644 (file)
@@ -87,7 +87,6 @@ struct vc4_texture_stateobj {
         unsigned num_textures;
         struct pipe_sampler_state *samplers[PIPE_MAX_SAMPLERS];
         unsigned num_samplers;
-        unsigned dirty_samplers;
 };
 
 struct vc4_shader_uniform_info {
index 7aa39319084925bacbe3b524879ce6ea07fba976..0912ca5b8d7a162dfb1c6a2ea414b6b9baef684c 100644 (file)
@@ -575,12 +575,10 @@ vc4_sampler_states_bind(struct pipe_context *pctx,
                 if (hwcso[i])
                         new_nr = i + 1;
                 stage_tex->samplers[i] = hwcso[i];
-                stage_tex->dirty_samplers |= (1 << i);
         }
 
         for (; i < stage_tex->num_samplers; i++) {
                 stage_tex->samplers[i] = NULL;
-                stage_tex->dirty_samplers |= (1 << i);
         }
 
         stage_tex->num_samplers = new_nr;
@@ -676,12 +674,10 @@ vc4_set_sampler_views(struct pipe_context *pctx, unsigned shader,
                 if (views[i])
                         new_nr = i + 1;
                 pipe_sampler_view_reference(&stage_tex->textures[i], views[i]);
-                stage_tex->dirty_samplers |= (1 << i);
         }
 
         for (; i < stage_tex->num_textures; i++) {
                 pipe_sampler_view_reference(&stage_tex->textures[i], NULL);
-                stage_tex->dirty_samplers |= (1 << i);
         }
 
         stage_tex->num_textures = new_nr;