From: Erik Faye-Lund Date: Fri, 3 Jan 2020 11:19:10 +0000 (+0100) Subject: zink: simplify front-face type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce1ea6e9c23ee5a9640a95457ef8cb0283586d4c;p=mesa.git zink: simplify front-face type Reviewed-by: Alyssa Rosenzweig --- 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,