From d2845cfcc4d3c2163e4ac35a144d994ded0bf300 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 23 Jul 2021 18:20:47 +0200 Subject: [PATCH] st/pbo: set nir_tex_instr::is_array field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise the layer argument won't be used. Fixes: a01ad311 ("st/mesa: Add NIR versions of the PBO upload/download shaders. ") Reviewed-by: Marek Olšák Reviewed-By: Mike Blumenkrantz Part-of: --- src/mesa/state_tracker/st_pbo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_pbo.c b/src/mesa/state_tracker/st_pbo.c index e185aa8ec5a..f6d1f34f699 100644 --- a/src/mesa/state_tracker/st_pbo.c +++ b/src/mesa/state_tracker/st_pbo.c @@ -530,6 +530,7 @@ create_fs(struct st_context *st, bool download, tex->sampler_dim = glsl_get_sampler_dim(tex_var->type); tex->coord_components = glsl_get_sampler_coordinate_components(tex_var->type); + tex->is_array = target >= PIPE_TEXTURE_1D_ARRAY; tex->dest_type = nir_get_nir_type_for_glsl_base_type(glsl_get_sampler_result_type(tex_var->type)); tex->src[0].src_type = nir_tex_src_texture_deref;