gpu: share pipelines when color and alpha blend equations match

This commit is contained in:
nmzik committed 2026-10-05 02:24:51 +04:00
1 parent f7bd0b436a
commit 96011cc5c9
3 files changed
+31 -11

No files matched your search

+4
View File
@@ -12859,6 +12859,10 @@ void TestBlendMappingClassification() {
static_cast<uint8_t>(Factor::kOneMinusSrcAlpha);
Check(classify(Prospero::ColorMappingAbgr) == Support::SourceAlphaOne,
"separate alpha accumulation did not preserve its unit source factor");
blend.alpha_srcblend = blend.color_srcblend;
Check(classify(Prospero::ColorMappingAbgr) == Support::SourceAlpha,
"equal separate alpha equations did not reuse the broadcast alpha mode");
blend.alpha_srcblend = static_cast<uint8_t>(Factor::kOne);
const auto exact = blend;
for (uint32_t changed = 0; changed < 6; changed++) {
blend = exact;