zink: use uvec for undefs
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 12 Jun 2019 16:53:59 +0000 (18:53 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:44 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index 20c72fd214734d01fbeefa3eae5e3803ef4713df..c465a866d249e05f756709862f0211b91c4e75e2 100644 (file)
@@ -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,