From 6c723c0517dba0d463adace0918d080a217f6e55 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 24 Jan 2022 00:05:00 -0800 Subject: [PATCH] softjit: Fix src blend factor handling. This was causing us to skip a shift, oops. --- GPU/Software/DrawPixel.cpp | 2 +- pspautotests | 2 +- test.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/Software/DrawPixel.cpp b/GPU/Software/DrawPixel.cpp index 1c99c24046..6349c40994 100644 --- a/GPU/Software/DrawPixel.cpp +++ b/GPU/Software/DrawPixel.cpp @@ -660,7 +660,7 @@ void ComputePixelBlendState(PixelBlendState &state, const PixelFuncID &id) { case PixelBlendFactor::OTHERCOLOR: case PixelBlendFactor::INVOTHERCOLOR: - state.dstColorAsFactor = true; + state.srcColorAsFactor = true; break; case PixelBlendFactor::SRCALPHA: diff --git a/pspautotests b/pspautotests index 455fb613ed..8d7eac4f5a 160000 --- a/pspautotests +++ b/pspautotests @@ -1 +1 @@ -Subproject commit 455fb613edc884d9ae54a95b5393ee35b964902f +Subproject commit 8d7eac4f5a5e38f6fe43cfe7c49dd961a9f32244 diff --git a/test.py b/test.py index 52c863b715..183e0c5c91 100755 --- a/test.py +++ b/test.py @@ -134,6 +134,7 @@ tests_good = [ "gpu/clut/offset", "gpu/clut/shifts", "gpu/commands/basic", + "gpu/commands/blend", "gpu/commands/blocktransfer", "gpu/commands/material", "gpu/dither/dither", @@ -374,7 +375,6 @@ tests_next = [ "font/shadowglyphimageclip", "font/shadowinfo", "gpu/clipping/guardband", - "gpu/commands/blend", "gpu/commands/blend565", "gpu/commands/cull", "gpu/commands/light",