From ce1ea6e9c23ee5a9640a95457ef8cb0283586d4c Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 3 Jan 2020 12:19:10 +0100 Subject: [PATCH] zink: simplify front-face type Reviewed-by: Alyssa Rosenzweig --- 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 09312dae406..d7cfac147ff 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 @@ -1248,7 +1248,7 @@ emit_store_deref(struct ntv_context *ctx, nir_intrinsic_instr *intr) static void emit_load_front_face(struct ntv_context *ctx, nir_intrinsic_instr *intr) { - SpvId var_type = get_glsl_type(ctx, glsl_bool_type()); + SpvId var_type = spirv_builder_type_bool(&ctx->builder); if (!ctx->front_face_var) { SpvId pointer_type = spirv_builder_type_pointer(&ctx->builder, SpvStorageClassInput, -- 2.30.2