Repository navigation
fix(shader): include instruction details in VOP2 decode errors - #22529
Conversation
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the review evidence supports merging.
What I ran
Reviewed head 65cea7bfe7768d67839082a1f19d145f7383ce2f. No commands or tests were run in this review session; the PR description reports focused test results.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed code | passed | Both changed files read |
| Tests in this session | not run | Results in description are author reported |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Runtime behavior and the author-reported Windows tests were not independently verified. Read core/libs/prx/libSceAgcDriver/tests/Vop2EncodingDecode.cpp and core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp; no changed files were excluded according to the manifest.
To get this to a good state
Nothing is required.
|
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.
|
What
Report the rejected VOP2 opcode, program counter, and raw instruction word in the existing decode error. PRAGMATA (PPSA02530) stopped at an unsupported VOP2 encoding during a Windows bring-up run, but the diagnostic had no instruction details to tell a missing opcode from invalid shader data.
This changes error reporting only. Unsupported encodings still raise the same exception type and supported instructions decode as before.
Tested
Windows 11 Pro 26200, Radeon RX 7900 XT, AMD Vulkan driver 26.10.1, WinLibs MinGW GCC 15.2. The expanded VOP2 test fails against the original decoder and passes with the change, checking six rejected encodings after a leading instruction so the PC is nonzero. The same four focused tests passed on main and the change: agc_vop2_encoding_decode, agc_tiled_resolve, agc_changed_copy, and agc_bound_changed_copy. The three Vulkan tests loaded Khronos validation with synchronization validation enabled on both runs and logged no VUIDs or synchronization hazards. The VOP2 unit test exercises the decoder without opening a Vulkan device. No game was run for this standalone change.
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)