mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[GH-ISSUE #2650] [GAME BUG]: Color issue with B8G8R8A8Srgb #867
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#867
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xphalnos on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2650
Checklist (we expect you to perform these steps before opening the issue)
Describe the Bug
On Farming Simulator 17 (and probably other games...), a color bug inverts the colors. After investigation, it's the
B8G8R8A8Srgbformat that's causing the problem. I tried to fix it by inverting the colors ofB8G8R8A8Srgbin the8_8_8_8format, except that it also inverts the other format colors. On my fork you can see the changes made. Feel free to use them as inspiration for a fix.Master:


With my fix:


Reproduction Steps
.
Specify OS Version
Windows 11 23H2
CPU
Intel Core Pentium Gold 8505
GPU
Intel UHD Graphics
Amount of RAM in GB
16GB
Amount of VRAM in GB
2GB
Log File
Nothing in the log is related to this color bug.
@DanielSvoboda commented on GitHub (Mar 16, 2025):
Other games have this same 'problem' where the Format8_8_8_8 colors are inverted, such as CUSA08253 and CUSA03455.
Inverting them is not correct because in other games they are correct.
Maybe some shader is causing this
@squidbus commented on GitHub (Mar 16, 2025):
It's most likely related to output swizzle, but there are complications relating to how swizzle interacts with blending that are standing in the way of properly fixing this.
@Xcedf commented on GitHub (Apr 10, 2025):
On my end I faced this issue in GoW3 after #1869 broke text in menu, but your fork will invert all 8_8_8_8 formats not only Srgb, made a little adddition to your fork code, seems to have fine colors in GoW3 and other games too
0001-PR-1869-fix.patch
@Randomuser8219 commented on GitHub (Apr 27, 2025):
Knack also appears to have this bug.
@squidbus commented on GitHub (May 1, 2025):
Can someone with this issue check with this build: https://github.com/squidbus/shadPS4/actions/runs/14770906700
Not sure about Knack but I think this would help with the other games assuming it doesn’t add any other issues.
@StevenMiller123 commented on GitHub (May 1, 2025):
Doesn't seem to improve colors in Digimon World: Next Order, though I'm also not sure if the color issues in this game are related to B8G8R8A8Srgb.
shad_log.txt
@squidbus commented on GitHub (May 1, 2025):
The patch provided here actually confuses me a bit, you’re reversing both the format and swizzle to BGRA which should just cancel out
@Randomuser8219 commented on GitHub (May 1, 2025):
The new build by squidbus didn't fix Knack
Check #development in shadPS4 server, GitHub image uploading is currently broken
@Randomuser8219 commented on GitHub (May 2, 2025):
Image
@squidbus commented on GitHub (May 2, 2025):
Anything other than Knack, please check with this: https://github.com/shadps4-emu/shadPS4/pull/2871
@squidbus commented on GitHub (May 2, 2025):
Seems to be fixed by above from testing, we can track Knack issue here: https://github.com/shadps4-emu/shadPS4/issues/2843