zink: simplify front-face type
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 3 Jan 2020 11:19:10 +0000 (12:19 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 3 Jan 2020 22:20:12 +0000 (22:20 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index 09312dae406c2eb67a4135d91c7d737929713b20..d7cfac147fff481bd83fde68f603becaacdf3959 100644 (file)
@@ -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,