Repository navigation
Conversation
|
Independent Windows run of PR head
Test selection: AI-assisted: yes |
24b6c25 to
4636f21
Compare
|
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.
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The inspected implementation supports truncating 4_4_4_4 UNORM exports and partial writes when ROUND_MODE is set; no blocking defect was verified at head 4636f218a153a2d470ae2c5dc8fd7edbbb6b1b5d.
What I ran
No commands or tests were run. I read the prepared diff and manifest, then inspected targeted source ranges through repo_read.py at the pinned head.
Results
| Check | Result | Note |
|---|---|---|
| Diff and manifest review | passed | Prepared review inputs read |
| Targeted code inspection | passed | Packing, state decode, merge, and serializer paths |
| Tests | not run | Execution results in the description are author-reported |
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
I read all changed files marked included: true in the manifest. core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was excluded from review/files/ because it was too large for the review folder; I inspected its changed lines at the pinned head. Its full text was not read. Tests were not run; the reported GPU and ctest results were not independently verified. Graphics behavior on gfx1013, Windows, NVIDIA, and PS4 hardware was not verified.
To get this to a good state
Nothing is required.
|
Ran it on NVIDIA and Windows, which the description lists as not tested: head
AI-assisted: yes (Claude Code) |
|
Ran the six tests from the Tested section with the Khronos validation layer on Linux and an NVIDIA GPU, which the description lists as not tested. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
All five execution tests select the 4090 ( Negative control: this PR's tests with No new AI-assisted: yes (Claude Code) |
…rgets Measured on RDNA2 (gfx1036 under RADV, COLOR_11_11_10, RB+ off, 32_ABGR exports), the CB truncates an 11_11_10 float export toward zero whether CB_COLOR_INFO.ROUND_MODE is set or clear, and writes 0x3f0 or 0x7e0 for every NaN whatever its payload. ROUND_MODE 0 targets are no longer refused, and the packed export writes those NaN fields instead of the payload's top bits.
…E set Measured on RDNA2 (gfx1036 under RADV, RB+ off, 32_ABGR exports), the CB truncates an export into a 4_4_4_4 UNORM target with CB_COLOR_INFO.ROUND_MODE set to floor(clamp(v, 0, 1) * 15), NaN to 0, and rounds to nearest with the bit clear. Such a target now decodes with the Unorm4_4_4_4Truncated packing, whose exports and partial-write merges pack without the rounding step, instead of being refused.
4636f21 to
ba9b824
Compare
|
Rebased onto At the new heads, on the RX 7900 XT and the 7800X3D iGPU:
AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The changed packing path and its serialization and merge handling look consistent in the inspected code; hardware test results are author-reported and were not run in this review.
What I ran
Reviewed head ba9b82437dff18c5720b2e624d3e970858a142b1 using the prepared diff and repo_read.py at the pinned head. No commands or tests were run.
Read: description.md, commits.md, manifest.json, diff.patch; changed repository files State.cpp, Graphics.cpp (lines 12500–12600), PackedFloatColorTarget.cpp, PackedUnorm4444ColorTarget.cpp, PackedUnorm4444PartialWrite.cpp, RequestSerializer.cpp, FragmentOutputSpecialization.hpp, Recompiler.hpp, SpirvEmitterHelpers.hpp, SpirvFormatConvert.cpp, SpirvModuleEmitter.cpp, ShaderInputInfoBuilder.cpp, and both added debt notes. The full Graphics.cpp was excluded from the review folder; I read only the relevant region through the reader. No other changed files were excluded.
Results
| Check | Result | Note |
|---|---|---|
| Change inspection | passed | Relevant changed paths inspected |
| Tests | not run | No local checks performed |
| Hardware claims | not run | Reported runs not independently verified |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported GPU test runs and their environments were not independently verified. The full Graphics.cpp was not read; only the modified target test region was inspected. The implementation was not built or tested here, and behavior on gfx1013, Windows, and NVIDIA was not confirmed.
To get this to a good state
Nothing is required.
ligmaSec
left a comment
There was a problem hiding this comment.
The current head conflicts with main 63db72fb61 in the graphics tests and shader-format declarations and serializer. Please preserve both the full-write and masked merge routes to 4_4_4_4 truncation when reconciling #23206. The paired cases should keep ties-to-even as the clear ROUND_MODE control, since the partial-write path can otherwise mask a regression in the packing choice.
AI-assisted: yes.
What
A 4_4_4_4 UNORM color target with
CB_COLOR_INFO.ROUND_MODEset is drawn with truncated exports instead of refused (truncating (ROUND_MODE) 4_4_4_4 unorm color targets are unsupported).State.cppgives such a target the new packingUnorm4_4_4_4Truncated. Its exports and partial-write merges pack each component asfloor(clamp(v, 0, 1) * 15), with NaN to 0. That isNormStoreBitswithout its rounding step. WithoutROUND_MODE, packing still rounds to nearest even, as before.Measured on a 7800X3D iGPU (gfx1036) with a local Mesa 26.0.6 RADV patched for RB+ off (gfx1013 has none) and 32_ABGR exports, into
VK_FORMAT_R4G4B4A4_UNORM_PACK16:ROUND_MODE0ROUND_MODE10x3d888888/0x3d888889(either side of 1/15)0x3f7fffff(0.99999994)The same runs on 11_11_10 float show the bit has no effect there (#23206).
Tested
Linux 7.3.4, GCC 16.2.1 Release, Mesa 26.2.6 RADV,
main67d3465feb. The branch carries #23206's commit first, since both changePackExport.agc_driver_packed_unorm4444_color_targetruns its goldens again on a target withROUND_MODEset, plus a case of0x3d888888,0x3d888889,0x3f088888and0x3f088889(0x1188rounded,0x0178truncated).agc_driver_packed_unorm4444_partial_writereplays its nine merges on a truncating target.agc_graphics_profile_drawdecodes the target asUnorm4_4_4_4Truncated, and its invalid-packing check now uses the value after the last one.main'sState.cpp, emitter and converter, both new passes fail on both GPUs withtruncating (ROUND_MODE) 4_4_4_4 unorm color targets are unsupported. With only the truncation step removed, they fail withholds 0xf804, expected 0xf703(export) andholds 0x3f84, expected 0x3f73(partial write).agc_driver_packed_unorm4444_*tests,agc_driver_packed_float_color_target,agc_driver_packed_float_blendandagc_graphics_profile_draw, run withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layerandctest -V: 6/6 on both GPUs, layer 1.4.363.1 inserted, 0VUID-lines.ctest -R '^agc'(1936 tests): the failures matchmain's on each GPU.Not tested: gfx1013, Windows, NVIDIA. PS4 (GCN) targets don't read
ROUND_MODE, which the debt entry records.Overlap: #22609 also appends
ColorExportPackingvalues, so whichever merges second renumbers the range checks.Checklist
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)