mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
gpu: share pipelines when color and alpha blend equations match
This commit is contained in:
1 parent
f7bd0b436a
commit
96011cc5c9
3 files changed
+31
-11
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user