shader: Always write the destination swizzle for (B)COLOR outputs

This fixes shader compilation with
STAR WARS™ Knights of the Old Republic™ II: The Sith Lords

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: John Bates <jbates@chromium.org>
macos/master
Gert Wollny 3 years ago
parent 05d4c8c892
commit 43ee4fea8b
  1. 2
      src/vrend_shader.c

@ -1413,6 +1413,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
} else } else
name_prefix = ctx->is_last_vertex_stage ? "ex" : get_stage_output_name_prefix(iter->processor.Processor); name_prefix = ctx->is_last_vertex_stage ? "ex" : get_stage_output_name_prefix(iter->processor.Processor);
} }
ctx->outputs[i].override_no_wm = false;
break; break;
/* fallthrough */ /* fallthrough */
case TGSI_SEMANTIC_BCOLOR: case TGSI_SEMANTIC_BCOLOR:
@ -1426,6 +1427,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
break; break;
} else } else
name_prefix = "ex"; name_prefix = "ex";
ctx->outputs[i].override_no_wm = false;
break; break;
} }
/* fallthrough */ /* fallthrough */

Loading…
Cancel
Save