diff options
author | Jason Ekstrand <[email protected]> | 2016-01-14 18:58:25 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-14 18:58:25 -0800 |
commit | 47af950df5782c520f47e23192acfa6b324b98fd (patch) | |
tree | 24f1c5f119e583d7206b66ed6992b20d0f605bde /src | |
parent | 6483d3f8fe4301544550cf7665c26ec1d8616728 (diff) |
anv/apply_pipeline_layout: Stomp texture array size to 1
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/anv_nir_apply_pipeline_layout.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vulkan/anv_nir_apply_pipeline_layout.c b/src/vulkan/anv_nir_apply_pipeline_layout.c index 7410bd8363f..b7b8bd18ef9 100644 --- a/src/vulkan/anv_nir_apply_pipeline_layout.c +++ b/src/vulkan/anv_nir_apply_pipeline_layout.c @@ -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); |