zink: don't double-deref bindless texture arrays in shaders
these are already dereferenced
Fixes: b2fcb34e97 ("zink: rework sampler emission")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19377>
This commit is contained in:
committed by
Marge Bot
parent
a5f335f97a
commit
e97edac66d
@@ -3703,7 +3703,7 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
|
||||
|
||||
unsigned texture_index = tex->texture_index;
|
||||
nir_variable *var = bindless_var ? bindless_var : ctx->sampler_var[tex->texture_index];
|
||||
if (!tex_offset || !var) {
|
||||
if (!bindless_var && (!tex_offset || !var)) {
|
||||
if (ctx->sampler_var[texture_index]) {
|
||||
if (glsl_type_is_array(ctx->sampler_var[texture_index]->type))
|
||||
tex_offset = emit_uint_const(ctx, 32, 0);
|
||||
|
||||
Reference in New Issue
Block a user