Mesa (main): st/pbo: set nir_tex_instr::is_array field
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 6 07:53:27 UTC 2021
Module: Mesa
Branch: main
Commit: d2845cfcc4d3c2163e4ac35a144d994ded0bf300
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2845cfcc4d3c2163e4ac35a144d994ded0bf300
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Fri Jul 23 18:20:47 2021 +0200
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 at amd.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12096>
---
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;
More information about the mesa-commit
mailing list