radv: Set is_array in lowered ycbcr tex instructions.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 29 Apr 2019 20:26:36 +0000 (22:26 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 2 May 2019 00:29:51 +0000 (02:29 +0200)
Fixes array tests.

Fixes: 91702374d5d "radv: Add ycbcr lowering pass."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_lower_ycbcr_textures.c

index e37cc10a8a034548e3b1747f57a7c20ee6405e46..77f2e6ac66e483b257f7a181c24df6a59efa1c3f 100644 (file)
@@ -174,6 +174,7 @@ create_plane_tex_instr_implicit(struct ycbcr_state *state,
 
        tex->sampler_dim = old_tex->sampler_dim;
        tex->dest_type = old_tex->dest_type;
+       tex->is_array = old_tex->is_array;
 
        tex->op = old_tex->op;
        tex->coord_components = old_tex->coord_components;