renderer: decode R8, R8G8 and R16_UINT color register clears #1893
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1893
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1893/head"
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?
@ghost on GitHub · 2026-10-25 07:04 UTC · original
pr/narrow-clears→main· +46 −1 · 2 files · 1 commits · merged 2026-10-25 17:47 UTCDecodePackedColorClear had no case for R8_UNORM/UINT, R8G8_UNORM/UINT and R16_UINT, so a CMASK fast clear of such a render target was dropped and the target kept its old contents.
UFC 6 (PPSA23566) fast-clears a 3200x1800 R8_UINT region map through CMASK every frame and then writes only part of it. A RenderDoc capture showed the map never cleared, so it kept the regions of earlier frames; with the decode the clear is applied every frame (checked in the log). We saw blue/white streaks over the crowd during the game's "flow state" effect that read this map; a picture check in a real fight is still open on our side.
new cases in DecodePackedColorClear (channels in the low bits of the first clear word)
DecodeColorDwordFill accepts these formats only when every pixel in the word holds the same value
tests: packed R8/RG8 unorm and R8/RG8/R16 uint clears, uniform vs. non-uniform R8/RG8 DWORD fills (shader_recompiler_compute_tests: all cases passed)
🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-10-25 07:06 UTC · original
No actionable comments were generated in the recent review.
501ad512-650c-45f8-a1a0-17aa83fb9c43Reviewing files that changed from the base of the PR and between
83f8bfd3c9and1a93e08b2c.src/graphics/host_gpu/renderer/image/imageInfo.htests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Walkthrough
DecodePackedColorClearnow decodes packed values for R8 and R8G8 normalized and unsigned formats, and R16 unsigned values.DecodeColorDwordFillnow checks repeated byte values for R8 formats and repeated half-word values for R8G8 formats. Tests verify decoded channels and DWORD fill acceptance.Suggested reviewers:
thecruzPriority:
Normal
Change: Bug fix
Merge Risk:
Minimal · up to
1a93eThe reported clear and fill behavior has no identified merge-blocking issue. The in-game picture check remains open.
Pre-merge checks:
5
Full details: Docstring Coverage
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 too large.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.