From 43ee4fea8b9445b7bd123557ebba783e37253ec4 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 13 Oct 2021 19:40:42 +0200 Subject: [PATCH] shader: Always write the destination swizzle for (B)COLOR outputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes shader compilation with STAR WARS™ Knights of the Old Republic™ II: The Sith Lords Signed-off-by: Gert Wollny Reviewed-by: John Bates --- src/vrend_shader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index dd25628..865b0ce 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1413,6 +1413,7 @@ iter_declaration(struct tgsi_iterate_context *iter, } else name_prefix = ctx->is_last_vertex_stage ? "ex" : get_stage_output_name_prefix(iter->processor.Processor); } + ctx->outputs[i].override_no_wm = false; break; /* fallthrough */ case TGSI_SEMANTIC_BCOLOR: @@ -1426,6 +1427,7 @@ iter_declaration(struct tgsi_iterate_context *iter, break; } else name_prefix = "ex"; + ctx->outputs[i].override_no_wm = false; break; } /* fallthrough */