Mesa (master): anv: retain the is_array state in create_plane_tex_instr_implicit

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 5 10:40:24 UTC 2019


Module: Mesa
Branch: master
Commit: 33bf3d510c98a22706eb25815f1214d2e1a0e868
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=33bf3d510c98a22706eb25815f1214d2e1a0e868

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Wed Feb 20 09:18:39 2019 +0200

anv: retain the is_array state in create_plane_tex_instr_implicit

This does not seem to fix anything ATM but is the right thing todo.

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Fixes: f3e91e78a33775 ("anv: add nir lowering pass for ycbcr textures")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/vulkan/anv_nir_lower_ycbcr_textures.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/vulkan/anv_nir_lower_ycbcr_textures.c b/src/intel/vulkan/anv_nir_lower_ycbcr_textures.c
index 104c58dc5e2..0567a1be939 100644
--- a/src/intel/vulkan/anv_nir_lower_ycbcr_textures.c
+++ b/src/intel/vulkan/anv_nir_lower_ycbcr_textures.c
@@ -269,6 +269,7 @@ create_plane_tex_instr_implicit(struct ycbcr_state *state,
    tex->texture_index = old_tex->texture_index;
    tex->texture_array_size = old_tex->texture_array_size;
    tex->sampler_index = old_tex->sampler_index;
+   tex->is_array = old_tex->is_array;
 
    nir_ssa_dest_init(&tex->instr, &tex->dest,
                      old_tex->dest.ssa.num_components,




More information about the mesa-commit mailing list