mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 06:20:25 +01:00
st/pbo: set nir_tex_instr::is_array field
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 <marek.olsak@amd.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12096>
This commit is contained in:
parent
ff7e339f1f
commit
d2845cfcc4
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue