Commit Graph

3 Commits

Author SHA1 Message Date
c26d78af85 rdna2spirv: a pixel lane off at the last color export is not written; without vm, EXEC at the color export decides (#3988)
Squash-merged after review of PR #3988 - rdna2spirv: a pixel lane off at the last color export is not written; without vm, EXEC at the color export decides (measured on RDNA2)
2026-11-23 08:12:32 -06:00
cfdc3bab0d fix(shader): preserve channels across partial color exports
An EXP component mask can write different channels of the same MRT across multiple instructions. Retain disabled components from that target so a later export does not erase color that an earlier instruction wrote.
2026-11-22 17:45:32 +01:00
5f50d57f47 Translator: a PS discards by EXEC at its last vm export
The epilogue killed by EXEC at the end of the program, so an EXEC write
after the `exp ... vm` changed which pixels survive. Keep EXEC at that
export, only where a path can write EXEC afterwards: other programs
translate to the same text as before.

The rule is from the RDNA2 ISA reference guide (30-November-2020),
11.1 and 11.2.1. Not measured on hardware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:43:03 +00:00