nir: Drop nir_tex_instr::texture_array_size
[mesa.git] / src / intel / vulkan / anv_nir_apply_pipeline_layout.c
index 5be8cc22f99c7966f4e065e92846e2a564ce226b..aafa63ece50f041a13cd63256819f7f92c292e10 100644 (file)
@@ -1021,11 +1021,6 @@ lower_tex(nir_tex_instr *tex, struct apply_pipeline_layout_state *state)
 
    lower_tex_deref(tex, nir_tex_src_sampler_deref,
                    &tex->sampler_index, plane, state);
-
-   /* The backend only ever uses this to mark used surfaces.  We don't care
-    * about that little optimization so it just needs to be non-zero.
-    */
-   tex->texture_array_size = 1;
 }
 
 static void