mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #3495] [MERGED] shader_recompiler: Relax dual source blending assert to allow up to two targets. #3516
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#3516
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/3495
Author: @squidbus
Created: 8/31/2025
Status: ✅ Merged
Merged: 9/1/2025
Merged by: @squidbus
Base:
main← Head:dsb📝 Commits (1)
2bfdb6ashader_recompiler: Relax dual source blending assert to allow up to two targets.📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp(+4 -2)📄 Description
Dual source blending only supports 1 output render target, and thus only allows exports to 2 different target indices, 1 for each source. It is technically allowed, however, to have 0 or 1 export target(s) while dual source blending is enabled.
In the 0 targets case, both sources are undefined. In this case the game may just be rendering a pass writing depth and not color.
I am not sure if any games will hit the 1 target case, however this is technically allowed. In this case the second source is an undefined value for blending.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.