mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #1851] [MERGED] Clear color attachment if FCE was invoked before any draws #2342
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#2342
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/1851
Author: @roamic
Created: 12/22/2024
Status: ✅ Merged
Merged: 12/22/2024
Merged by: @psucien
Base:
main← Head:fix-fast-clear-before-draw📝 Commits (2)
1bf277fClear RT if FCE was invoked before any drawsed23f7baddress review comments📊 Changes
2 files changed (+31 additions, -1 deletions)
View changed files
📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+30 -1)📝
src/video_core/renderer_vulkan/vk_rasterizer.h(+1 -0)📄 Description
Some games (for example Yakuza 0) clear color attachments by setting CMASK and then immediately calling
eliminateFastClear. This color attachment can immediately be used as texture input on the next draw call. Before this PR this attachment was not properly cleared which resulted in rendering artifacts.The proposed solution is to handle Fast Clear Elimination draws and clear the attachment if and only if the CMASK is set.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.