anv: retain the is_array state in create_plane_tex_instr_implicit
authorTapani Pälli <tapani.palli@intel.com>
Wed, 20 Feb 2019 07:18:39 +0000 (09:18 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 5 Mar 2019 10:38:31 +0000 (10:38 +0000)
This does not seem to fix anything ATM but is the right thing todo.

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

index 104c58dc5e2da395c245d2caa0da11235b938183..0567a1be939644eb84e23db8ecedfcef11bb80b5 100644 (file)
@@ -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,