Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
|
Linux check of the exact head
AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the inspected code implements single-sample RGBA4 blending through the ordered pixel-interlock merge and adds state and execution coverage. The draft covers head cf8530434eaab290f2c1aab93ba640f2ed49f0c3; no checks were run independently, and console blend precision remains unmeasured.
What I ran
Read the prepared description, commits, manifest, diff, and all ten changed files at the pinned head through repo_read.py. The full text of core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was read through the reader because it was too large for the review folder. No build or tests were run independently.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Ten changed files read |
| Build and tests | not run | Author-reported results only |
| Console precision | not run | Unmeasured in the PR description |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The PR reports Windows 11 execution on an NVIDIA GeForce RTX 3080 Laptop GPU with driver 621.14, including five Vulkan cases and an offline build. Those results were not independently verified. Console blend precision is unmeasured. No changed files were excluded from review; Graphics.cpp was read through repo_read.py.
To get this to a good state
Nothing is required.
|
@lgqdaxia thank you for this, it is the next abort our boots hit (Windows, RTX 4090, PPSA38500). Two related pieces from our side, in case they're useful here:
Would you like them on a branch on top of this PR, so you can test them, as we did for #28102? Or would you rather fold them into your PRs, or have them as separate PRs later? Whichever fits your plans. AI-assisted: yes. |
|
Thanks for tracing both stops on the RTX 4090, @zeezey. With DCC enabled, the decoder rejects the RGBA4 target before it reaches the blend code in #28197. Yes, please put the changes on a branch in your fork based on For upstream, I'd keep these as follow-up PRs from your fork. If the clear works on #27966 alone, it can go up first, and the compressed-blend change can follow #28197. |
|
Windows/AMD at this head ( This adds the Windows side to the Linux/RADV check above, on an AMD driver as well. Setup:
The added test lines have no platform guard. AI-assisted: yes. |
|
@lgqdaxia the branch is up:
Windows / RTX 4090 with the validation layer: the full With these, our boots get past both stops (the DCC target, then the blend) and later stop on a different refusal in AI-assisted: yes. |
|
Thanks, @zeezey. We tested the two commits on Windows 11 with an RTX 3080 Laptop (driver 621.14).
Both Vulkan tests passed at each commit with zero skips or validation errors. The split makes sense to me. The fast-clear change can follow #27966, and the descriptor change can follow the fast-clear change and #28197. |
|
@lgqdaxia thanks for testing both on your 3080. Agreed on the order: the fast clear after #27966, then the descriptor change after it and #28197. As a first-time contributor I can only have one pull request open until #28121 is merged, so these follow a short queue; I'll link them here when they're up. About the next stop I mentioned: it is AI-assisted: yes. |
|
Yes, @zeezey, please link the branch when it’s ready. A separate commit on On that base, |
|
@lgqdaxia the occlusion branch is up: The test is CTest
Interval 6 is your case: ordinary draws on both sides of a MAX blend (ONE/ONE/MAX on both equations) that kills 8,192 of 16,384, each counted once. Its texels are checked as the per-field maximum ( The counted cases write depth with an always-passing, depth-writing draw at z 1.0 instead of a CPU fill. The driver doesn't read CPU writes into these depth planes, so a CPU fill only looks right because a new surface starts at its clear depth (the existing Results, RTX 4090 with the validation layer:
One thing you may run into: with GPU-assisted validation's shader instrumentation on, every pixel-interlocked merge writes no color, identically on
AI-assisted: yes. |
|
Confirmed on our RTX 3080 Laptop (Windows 11, driver 621.14) at We also tried the PPSA38500 target settings ( The counts and pixels look right for this case on the 3080. This makes sense as a separate follow-up to the two DCC changes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Tested
GPU: 16 GPU tests (AGC, shader recompiler) passed twice on a GTX 1650 SUPER (Windows 11, Vulkan required, validation layer on, shader cache off), with this pull request merged into main AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
Thanks for running this, @ycbuzi. In the Server 2022 artifacts, only the two fullscreen tests failed on both The blend path has real-GPU results on this head ( |
|
Tested PR #28197 ( Static & Unit Checks (
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The inspected implementation adds single-sample packed RGBA4 blending with separate color and alpha equations, and I found no concrete defect in the source reviewed.
What I ran
Reviewed head 1ad6f125a114a92c2a85e44317337054a464f34e. No merged-preview check or executable checks were run; the review interface provides repository reads only.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | Inspected all changed implementation files and targeted test additions |
| Executable tests | not run | No command execution available |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Executable tests and runtime behavior were not independently verified. core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was excluded from the prepared bundle because of its size; I read the relevant added section through the pinned reader. All other changed files listed in the manifest were read, including the excluded large file's relevant section. No other files were excluded.
To get this to a good state
Nothing is required.
|
Windows at this head ( Setup:
The added test lines are not inside a platform guard. AI-assisted: yes. |
|
A PPSA38500 (01.002.001) run with and without this, on an RTX 4080: the title asks for this blend in its opening scene, and without the PR that is fatal. Windows 11 26200, RTX 4080 16 GB, NVIDIA 621.40. Stack as in discussioncomment-20041921 (
One boot each way. I have not compared the picture with and without. AI-assisted: yes. Claude Code ran the boots and counted the lines. |
|
Linux recheck at new head
AI-assisted: yes |
Plyxen
left a comment
There was a problem hiding this comment.
I read the diff at 1ad6f125a1. Windows 11, GCC 15.2, merged into main at cf556db18c3 together with other open PRs (so not an isolated build), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).
agc_driver_packed_unorm4444_color_target,agc_driver_packed_unorm4444_partial_writeand the 60 tests ofagc_driver_graphics_tests: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has aVUID-orSYNC-HAZARDline.- Control (same tree and tests, the changed files of those PRs put back to
main's): the first two fail on both GPUs: "unsupported color format 19 number type 0 component swap 1".
The tree also had #28311 and #28350, which build on this.
Not checked: PPSA38500 itself.
AI-assisted: yes (Claude Code)
ligmaSec
left a comment
There was a problem hiding this comment.
The new pixel test assigns the encoded equations directly to color.mergeBlend, and the decoder checks use a separate fixture. Could one pixel case take the decoded PM4 color state through the existing draw path without overriding mergeBlend? The reversed-order partial blend with a separate alpha equation would exercise both register selection and the shader merge in one run.
Source review at 1ad6f125a1. Paired Vulkan execution is pending.
AI-assisted: yes.
|
The reversed-order red/alpha case now takes the PM4 target mask and separate blend equations through
|
|
Linux recheck at head Setup: Linux 7.3.6, RX 6650 XT (RADV, Mesa 26.3.1), Release build of the PR merged onto current AI-assisted: yes |
ligmaSec
left a comment
There was a problem hiding this comment.
The revised fixture now feeds the reversed RGBA4 PM4 registers through DecodeState and passes the decoded packed blend into the draw. Its readback checks the independently subtracted alpha and the untouched components. That closes my previous coverage request.
Source review at cd3c503075. The revision trial-merges onto 6ef4f2f73b. Paired Linux Vulkan checks are queued.
AI-assisted: yes.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The packed RGBA4 blend path and its component mapping handling are consistent with the code inspected; I found no verified blocking defects.
What I ran
Reviewed head cd3c503075d82166ec9e9c202fb1ff1148af8add using repo_read.py and the prepared diff. I did not run tests or builds.
repo_read.py search PackedWriteMask core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp 2080 2205
repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp 2300 2405
repo_read.py cat core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp 625 755
repo_read.py cat core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp 175 205
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | Reviewed all changed paths in the manifest |
| Tests at this head | not run | Author-reported GPU runs used earlier revisions |
| Build | not run | No build invoked |
Negative control
Not run; no tests were executed.
Findings
Blocking
None.
Non-blocking
None.
Sources
- Packed RGBA4 blend state decoding
- Packed RGBA4 blend and merge emission
- Packed blend input validation
Not verified
No tests or builds were run, and behavior on physical consoles was not confirmed. The prepared diff and targeted source context covered all 11 changed paths listed as reviewed in files.json; that file lists no excluded paths. The large Graphics.cpp source was read at lines 12610–12710 and 12980–13010; its remaining contents were not read. Author-reported GPU results in the description concern earlier revisions and were not independently verified.
To get this to a good state
Nothing is required.
Plyxen
left a comment
There was a problem hiding this comment.
Re-checked cd3c503, the commit added since my approval at 1ad6f12. It is test-only and draws a decoded reversed RGBA4 blend; it was applied to main 484b036. Windows 11, GCC 15.2, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LOADER_DEBUG=layer (layer 1.4.363), run once with the RTX 5080 (621.24) and once with the AMD iGPU (26.11.2) loader selected. No VUID- errors in any log, and no was not found but was requested.
agc_driver_graphicsandagc_driver_packed_unorm4444_{color_target,partial_write,multisample_partial_write}: 4 of 4 pass with each loader.
AI-assisted: yes (Claude Code)
With the 4_4_4_4 blend of boykopovar#28197, a blend into a DCC 4_4_4_4 target (CB_COLOR_INFO 0x1000884c in PPSA38500: SWAP_ALT, BLEND_CLAMP, DCC_ENABLE, 2560x1440, one sample) threw in ExportTargetMerges: "only single-level multisampled surfaces and surfaces without metadata have a texture descriptor encoding". EncodeTextureResource, which builds the T# the pixel-interlock merge binds as a storage image, refused any surface with DCC keys. It now encodes a single-sample surface's DCC keys the way DecodeTextureResource reads them: META_DATA_ADDRESS in word 6 bits 24-31 and word 7, COMPRESSION_EN (word 6 bit 21), ALPHA_IS_ON_MSB (bit 22) and META_PIPE_ALIGNED (bit 19). The merge then binds the target's resident DCC surface, the one the draw refreshes and materializes clear codes in, with the same keys, so the shader reads the clear values and the keys end uncompressed. The same holds for an unclamped normalized blend into a DCC target, which threw the same way. A multisampled surface with DCC keys still has no encoding, and the message says so. A merge into a 2D array target with DCC keys now throws in TargetMergeSurface: its merge surface starts at the array while the keys start at the viewed slice. The DCC 4_4_4_4 execution test draws 24 blends (SRC_ALPHA / ONE_MINUS_SRC_ALPHA or ONE / ONE for color, ONE / ONE for alpha, a source with a clamped 1.25 channel) under each key state (uncompressed, 0000, 0001, 1110, 1111, register clear) and each component swap, and compares every guest texel with a CPU reference rounded to 4 bits, inside and outside the scissor, then checks the keys are 0xff. Under APS5_NO_RESIDENT_TARGETS it checks that the blend is refused ("merged into its resident image"), as every merge into a non-resident target is; the debt fragment records that and the other limits. agc_driver_graphics checks the merge descriptor of a blended DCC 4_4_4_4 target under each swap and an encode/decode round trip with DCC keys. Tested with the next commit's tests on boykopovar#28197's head merged with boykopovar#28311's head, with the Khronos validation layer, on an NVIDIA GeForce RTX 4090 (Windows 11) and on lavapipe (Linux); the pull request has the results. Not measured on a console. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NAAUzVZz5igZcosJFfZ3kV
What
PPSA38500’s first scene on Windows requests blending on a packed RGBA4 target that #27966 can decode but cannot blend. The ordered pixel-interlock path now blends RGB and alpha independently and preserves unwritten channels. For MIN/MAX it multiplies the source and destination by their selected factors before comparing them. AMD PAL · zeezey’s review
This covers single-sample, DCC-disabled targets with BLEND_CLAMP and supported factors. Constant and dual-source factors on written channels are rejected. FP32 packs to nearest even. #23258 handles truncation. Console blend precision is unmeasured.
Tested
On Windows 11 with an RTX 3080 Laptop (621.14),
agc_driver_graphicsandagc_driver_packed_unorm4444_partial_writefailed oncf8530434eaaand passed on1ad6f125a114. With scaled RGB MAX and alpha MIN, the same starting pixel (0xc369) read back as0x6fc9before the fix and the expected0x2669after it. Both runs had zero skips, Vulkan validation errors and synchronization errors.Earlier PPSA38500, NVIDIA and AMD checks
Windows 11, NVIDIA GeForce RTX 3080 Laptop GPU, driver 621.14.
e2e97886eeand passes with the follow-up at4d135930e3.4d135930e3, including pixel readback for a full alternate-order blend and a partial reversed-order blend. No skips or Vulkan validation or synchronization errors.At
cf8530434eaa, all nine packed-RGBA4 and graphics tests passed on an RX 6650 XT (Arch Linux, RADV Mesa 26.3.1), with zero skips or Vulkan validation errors. On an RX 6700 XT (Windows 11, AMD 32.0.21045.29003), all 62 selected tests passed in each of three runs with zero skips. Linux results · Windows resultsChecklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit