From 93af00502ebc32061c63927815d0d2255fe66a98 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 12 Jun 2019 18:53:59 +0200 Subject: [PATCH] zink: use uvec for undefs Acked-by: Jordan Justen --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 20c72fd2147..c465a866d24 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -1063,7 +1063,7 @@ emit_intrinsic(struct ntv_context *ctx, nir_intrinsic_instr *intr) static void emit_undef(struct ntv_context *ctx, nir_ssa_undef_instr *undef) { - SpvId type = get_fvec_type(ctx, undef->def.bit_size, + SpvId type = get_uvec_type(ctx, undef->def.bit_size, undef->def.num_components); store_ssa_def_uint(ctx, &undef->def, -- 2.30.2