anv/apply_pipeline_layout: Stomp texture array size to 1

This commit is contained in:
Jason Ekstrand 2016-01-14 18:58:25 -08:00
parent 6483d3f8fe
commit 47af950df5
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ lower_tex(nir_tex_instr *tex, struct apply_pipeline_layout_state *state)
lower_tex_deref(tex, tex->sampler, &tex->sampler_index,
nir_tex_src_sampler_offset, 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;
if (tex->texture)
cleanup_tex_deref(tex, tex->texture);
cleanup_tex_deref(tex, tex->sampler);