[GH-ISSUE #2650] [GAME BUG]: Color issue with B8G8R8A8Srgb #867

Closed
opened 2026-02-27 21:08:35 +03:00 by kerem · 11 comments
Owner

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)

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.
  • I have re-dumped the game and performed a clean install without mods and the issue is still present.
  • I have disabled all patches and cheats and the issue is still present.
  • I have all the required system modules installed.

Describe the Bug

On Farming Simulator 17 (and probably other games...), a color bug inverts the colors. After investigation, it's the B8G8R8A8Srgb format that's causing the problem. I tried to fix it by inverting the colors of B8G8R8A8Srgb in the 8_8_8_8 format, 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:
Image
Image

With my fix:
Image
Image

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.

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) - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. - [x] I have re-dumped the game and performed a clean install without mods and the issue is still present. - [x] I have disabled all patches and cheats and the issue is still present. - [x] I have all the required [system modules](https://github.com/shadps4-emu/shadps4-game-compatibility?tab=readme-ov-file#informations) installed. ### Describe the Bug On Farming Simulator 17 (and probably other games...), a color bug inverts the colors. After investigation, it's the `B8G8R8A8Srgb` format that's causing the problem. I tried to fix it by inverting the colors of `B8G8R8A8Srgb` in the `8_8_8_8` format, except that it also inverts the other format colors. [**On my fork**](https://github.com/Xphalnos/shadPS4/commit/0896259d10365c51b83a8870a03e98c146e4f6c3) you can see the changes made. Feel free to use them as inspiration for a fix. Master: ![Image](https://github.com/user-attachments/assets/0c983396-1f70-4c86-aed4-4f8cd1320a92) ![Image](https://github.com/user-attachments/assets/48cea731-b8b7-47a1-a59a-ab3918f6ab45) With my fix: ![Image](https://github.com/user-attachments/assets/316182fd-af9f-47d4-b99a-acc3582ce9c9) ![Image](https://github.com/user-attachments/assets/6dd9810a-cf11-4512-9d34-ac8cef971b7a) ### 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.
kerem closed this issue 2026-02-27 21:08:36 +03:00
Author
Owner

@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

<!-- gh-comment-id:2727106039 --> @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
Author
Owner

@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.

<!-- gh-comment-id:2727107421 --> @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.
Author
Owner

@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

<!-- gh-comment-id:2794132320 --> @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](https://github.com/user-attachments/files/19687216/0001-PR-1869-fix.patch)
Author
Owner

@Randomuser8219 commented on GitHub (Apr 27, 2025):

Knack also appears to have this bug.

<!-- gh-comment-id:2833566269 --> @Randomuser8219 commented on GitHub (Apr 27, 2025): Knack also appears to have this bug.
Author
Owner

@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.

<!-- gh-comment-id:2845687980 --> @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.
Author
Owner

@StevenMiller123 commented on GitHub (May 1, 2025):

Image
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

<!-- gh-comment-id:2845703763 --> @StevenMiller123 commented on GitHub (May 1, 2025): ![Image](https://github.com/user-attachments/assets/e6d6e052-a2b0-4e61-b920-e7fd13b932e4) 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](https://github.com/user-attachments/files/20004562/shad_log.txt)
Author
Owner

@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

<!-- gh-comment-id:2845740714 --> @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
Author
Owner

@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

<!-- gh-comment-id:2845920022 --> @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
Author
Owner

@Randomuser8219 commented on GitHub (May 2, 2025):

Image
Image

<!-- gh-comment-id:2846087669 --> @Randomuser8219 commented on GitHub (May 2, 2025): ![Image](https://github.com/user-attachments/assets/497c2fae-8209-4836-95b8-3f86588963c9) Image
Author
Owner

@squidbus commented on GitHub (May 2, 2025):

Anything other than Knack, please check with this: https://github.com/shadps4-emu/shadPS4/pull/2871

<!-- gh-comment-id:2846150858 --> @squidbus commented on GitHub (May 2, 2025): Anything other than Knack, please check with this: https://github.com/shadps4-emu/shadPS4/pull/2871
Author
Owner

@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

<!-- gh-comment-id:2846219254 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#867
No description provided.