Merge pull request #3228 from GustavoGamarra95/feat/agc-alpha-to-coverage

feat(agc): emulate undithered alpha-to-coverage
This commit is contained in:
Adrià authored and GitHub committed 2026-10-11 09:22:23 +02:00
commit be8a67db1c
18 files changed
+411 -8

No files matched your search

@@ -324,6 +324,7 @@ void writePixelInfo(Writer& writer, const ShaderPixelStageInfo& info) {
writer.WriteU8(static_cast<std::uint8_t>(value));
}
writer.WriteBool(info.dualSourceBlend);
writer.WriteBool(info.alphaToCoverage);
}
ShaderPixelStageInfo readPixelInfo(Reader& reader, std::uint32_t version) {
@@ -371,6 +372,7 @@ ShaderPixelStageInfo readPixelInfo(Reader& reader, std::uint32_t version) {
}
}
if (version >= 15u) info.dualSourceBlend = reader.ReadBool();
if (version >= 16u) info.alphaToCoverage = reader.ReadBool();
if (version < 5u) {
const auto input = [](PixelInput value, bool present) { return present ? PixelInputBit(value) : 0u; };
info.inputAddr = input(PixelInput::PerspectiveSample, info.hasPerspectiveCenterVgpr && inputAddrOrCenterVgpr == 2u) | input(PixelInput::PerspectiveCenter, info.hasPerspectiveCenterVgpr) |