zink: fix typing on bindless io lowering

with lowered io this should always be an ivec2

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24950>
This commit is contained in:
Mike Blumenkrantz 2023-08-29 09:47:46 -04:00 committed by Marge Bot
parent a3ce422a99
commit 7fdc74b078

View file

@ -4204,9 +4204,8 @@ lower_bindless_io_instr(nir_builder *b, nir_intrinsic_instr *instr,
if (!glsl_type_is_image(var->type) && !glsl_type_is_sampler(var->type))
return false;
var->type = glsl_int64_t_type();
var->type = glsl_vector_type(GLSL_TYPE_INT, 2);
var->data.bindless = 1;
nir_intrinsic_set_dest_type(instr, nir_type_int64);
return true;
}