From 91e81d6c42802e61f1114ecc2ca73ce9bf08461f Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 14 Feb 2022 15:31:49 +0100 Subject: [PATCH] shader: Emit indirect generic outputs in GS and TES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the NTT code path in the guest we might end up with the generic array outputs also with GS and TES. Signed-off-by: Gert Wollny Reviewed-by: Corentin Noël --- src/vrend_shader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 5a2139e..fb95bf0 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -6837,6 +6837,8 @@ static void emit_ios_geom(const struct dump_ctx *ctx, } } + emit_ios_indirect_generics_output(ctx, glsl_strbufs, ""); + emit_ios_generic_outputs(ctx, glsl_strbufs, generic_ios, front_back_color_emitted_flags, force_color_two_side, num_interps, can_emit_generic_geom); @@ -6952,6 +6954,8 @@ static void emit_ios_tes(const struct dump_ctx *ctx, ctx->tes_vertex_order ? "cw" : "ccw", ctx->tes_point_mode ? ", point_mode" : ""); + emit_ios_indirect_generics_output(ctx, glsl_strbufs, ""); + emit_ios_generic_outputs(ctx, glsl_strbufs, generic_ios, front_back_color_emitted_flags, force_color_two_side, num_interps, can_emit_generic_default);