zink/spirv: do not reinvent store_dest
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 7 Feb 2020 22:52:08 +0000 (23:52 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Feb 2020 12:46:54 +0000 (12:46 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3763>

src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index b53a25feba5b5fb540db94a0d2fd4075aae0597b..4dc923285266e115a5248472914ac9b4e2f2fb01 100644 (file)
@@ -1353,8 +1353,7 @@ emit_load_front_face(struct ntv_context *ctx, nir_intrinsic_instr *intr)
    SpvId result = spirv_builder_emit_load(&ctx->builder, var_type,
                                           ctx->front_face_var);
    assert(1 == nir_dest_num_components(intr->dest));
-   result = bvec_to_uvec(ctx, result, 1);
-   store_dest_uint(ctx, &intr->dest, result);
+   store_dest(ctx, &intr->dest, result, nir_type_bool);
 }
 
 static void