mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #2236] [MERGED] shader_recompiler: Fix image write swizzles. #2586
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#2586
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?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2236
Author: @squidbus
Created: 1/24/2025
Status: ✅ Merged
Merged: 1/24/2025
Merged by: @squidbus
Base:
main← Head:fix-swiz📝 Commits (1)
e4df903shader_recompiler: Fix image write swizzles.📊 Changes
2 files changed (+29 additions, -6 deletions)
View changed files
📝
src/shader_recompiler/ir/passes/resource_tracking_pass.cpp(+2 -2)📝
src/video_core/amdgpu/types.h(+27 -4)📄 Description
Component mapping for swizzle needs to be inverted for image writes. For example, if the swizzle is [000R], it means that alpha should be written to red, not that red should be written to alpha.
Fixes videos in CUSA01047 intro. I believe this fixes baldness in CUSA00900 as well (https://github.com/shadps4-emu/shadPS4/issues/1858).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.