feat(shader): decode DPP8 on the relative vector instructions #14692

Merged
edubox merged 5 commits from upstream-pr/14692 into main 2026-11-08 10:53:39 +00:00
edubox commented 2026-11-01 17:04:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by edubox on 2026-11-01T17:04:47Z.


What

The progress page counted three VOP1 DPP8 forms as not decoded: V_MOVRELS_B32, V_MOVRELSD_B32 and V_MOVRELSD_2_B32 (V_MOVRELD_B32 was already accepted). acceptsDpp8 returned false for exactly those three while hasDppForm accepted their DPP16 encodings. This makes DPP8 acceptance follow DPP16 (acceptsDpp8 now delegates to hasDppForm), so the three encodings decode. This reverses the DPP8 exclusion added in 391eb6ffe8; that commit records no reason, and the ISA sections below do not support excluding these four forms.

No translator change was needed: readRelativeVector and the normal source read apply applyBitSourceModifiers, which runs DppMoveU32 for the source operand, including the DPP8 flags and fi. AMD's RDNA 2 ISA defines the DPP8/DPP16 forms (section 6.9) and does not list these four in the instructions that cannot use DPP (section 12.19.1); the relative read is D.u = VGPR[src0 + M0].u (section 12.8), so the per-lane value it fetches is the source DPP permutes, and the row/bank masks, fetch-inactive and bound controls go through the same path as the other VOP1 sources.

tools/shader_scan.py now reports 202 of 202 DPP forms decoded (previously 199 of 202).

Tested

New execution test agc_driver_relative_dpp (tests/execution/RelativeDpp.cpp), wave32 with 32 threads and wave64 with 64 threads, runs:

  • v_movrels_b32_dpp, v_movreld_b32_dpp, v_movrelsd_b32_dpp and v_movrelsd_2_b32_dpp with dpp8:[0,1,2,3,4,5,6,7].
  • v_movrels_b32_dpp with a DPP16 quad_perm:[0,1,2,3] as a regression control.
  • v_movrels_b32_dpp with a non-identity DPP8 selector, once with fi=0 and once with fi=1 (MaskedNoFiCode/MaskedFiCode), checking the active and fetch-inactive lanes.

Each case checks the value read through the relative window and the value written through the relative destination.

Per the shader-recompiler rules, the focused tests were run with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (earlier run; the re-verification below uses the Flatpak layer):

Run Result New VUID- lines Missing VK_INSTANCE_LAYERS warning
main: agc_driver_relative_indexing passed 0 absent
change: agc_driver_relative_indexing passed 0 absent
change: agc_driver_relative_dpp passed 0 absent
  • GPU: NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0, Linux (CachyOS, x86-64).
  • Re-verified at aad159ece2 (224e5f8f52 and the pushed head share the code and tests) with the Flatpak Khronos validation layer 1.3.290 (the host has no system layer): agc_driver_relative_indexing passed on main and on the change, and agc_driver_relative_dpp passed on the change. The main indexing log and the change indexing log each contain exactly one VUID-VkDeviceCreateInfo-pNext-pNext (the driver passes an unknown VkStructureType in pNext); the change adds no new VUID-, and the VK_INSTANCE_LAYERS warning is absent from both logs.
  • tools/check_conventions.py --base origin/main and git diff --check are clean; tools/pr_overlap.py --branch feat/shader-movrel-dpp8 reports no overlap with open pull requests.

Negative controls: with main's decoder the new test exits 1 with DPP8 modifier is not supported for opcode; with applyBitSourceModifiers removed from readRelativeVector it exits 1 with relative dpp masked: wave32 lane 0 is 0x00000020, expected 0x00000000. Both controls exercise the decode gate and the lane permutation, not only the decode path.

The lane selection of these four DPP forms is not measured on a console; the debt note records the ISA sections above and the test coverage (non-identity selector, both fi values and full masks).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0, Linux (CachyOS, x86-64)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5109592841 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14692). Originally posted by [edubox](https://github.com/edubox) on 2026-11-01T17:04:47Z. --- ### What The progress page counted three VOP1 DPP8 forms as not decoded: `V_MOVRELS_B32`, `V_MOVRELSD_B32` and `V_MOVRELSD_2_B32` (`V_MOVRELD_B32` was already accepted). `acceptsDpp8` returned false for exactly those three while `hasDppForm` accepted their DPP16 encodings. This makes DPP8 acceptance follow DPP16 (`acceptsDpp8` now delegates to `hasDppForm`), so the three encodings decode. This reverses the DPP8 exclusion added in `391eb6ffe8`; that commit records no reason, and the ISA sections below do not support excluding these four forms. No translator change was needed: `readRelativeVector` and the normal source read apply `applyBitSourceModifiers`, which runs `DppMoveU32` for the source operand, including the DPP8 flags and `fi`. AMD's [RDNA 2 ISA](https://gpuopen.com/download/rdna2-shader-instruction-set-architecture.pdf) defines the DPP8/DPP16 forms (section 6.9) and does not list these four in the instructions that cannot use DPP (section 12.19.1); the relative read is `D.u = VGPR[src0 + M0].u` (section 12.8), so the per-lane value it fetches is the source DPP permutes, and the row/bank masks, fetch-inactive and bound controls go through the same path as the other VOP1 sources. `tools/shader_scan.py` now reports 202 of 202 DPP forms decoded (previously 199 of 202). ### Tested New execution test `agc_driver_relative_dpp` (`tests/execution/RelativeDpp.cpp`), wave32 with 32 threads and wave64 with 64 threads, runs: - `v_movrels_b32_dpp`, `v_movreld_b32_dpp`, `v_movrelsd_b32_dpp` and `v_movrelsd_2_b32_dpp` with `dpp8:[0,1,2,3,4,5,6,7]`. - `v_movrels_b32_dpp` with a DPP16 `quad_perm:[0,1,2,3]` as a regression control. - `v_movrels_b32_dpp` with a non-identity DPP8 selector, once with `fi=0` and once with `fi=1` (`MaskedNoFiCode`/`MaskedFiCode`), checking the active and fetch-inactive lanes. Each case checks the value read through the relative window and the value written through the relative destination. Per the shader-recompiler rules, the focused tests were run with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (earlier run; the re-verification below uses the Flatpak layer): | Run | Result | New `VUID-` lines | Missing `VK_INSTANCE_LAYERS` warning | |---|---|---|---| | `main`: `agc_driver_relative_indexing` | passed | 0 | absent | | change: `agc_driver_relative_indexing` | passed | 0 | absent | | change: `agc_driver_relative_dpp` | passed | 0 | absent | - GPU: NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0, Linux (CachyOS, x86-64). - Re-verified at `aad159ece2` (`224e5f8f52` and the pushed head share the code and tests) with the Flatpak Khronos validation layer 1.3.290 (the host has no system layer): `agc_driver_relative_indexing` passed on main and on the change, and `agc_driver_relative_dpp` passed on the change. The main indexing log and the change indexing log each contain exactly one `VUID-VkDeviceCreateInfo-pNext-pNext` (the driver passes an unknown `VkStructureType` in `pNext`); the change adds no new `VUID-`, and the `VK_INSTANCE_LAYERS` warning is absent from both logs. - `tools/check_conventions.py --base origin/main` and `git diff --check` are clean; `tools/pr_overlap.py --branch feat/shader-movrel-dpp8` reports no overlap with open pull requests. Negative controls: with `main`'s decoder the new test exits 1 with `DPP8 modifier is not supported for opcode`; with `applyBitSourceModifiers` removed from `readRelativeVector` it exits 1 with `relative dpp masked: wave32 lane 0 is 0x00000020, expected 0x00000000`. Both controls exercise the decode gate and the lane permutation, not only the decode path. The lane selection of these four DPP forms is not measured on a console; the debt note records the ISA sections above and the test coverage (non-identity selector, both `fi` values and full masks). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4080 SUPER, driver 615.78.8.0, Linux (CachyOS, x86-64) - [x] AI-assisted: yes
CnRJay commented 2026-11-01 19:49:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:49:13Z.

Review: COMMENTED


Correction (2026-11-01): the title-ID/log demand below is not a CONTRIBUTING requirement; Unblocks: none is allowed. The technical points below are unaffected.

  1. No title reaches this. The motivation is the progress page count (199 to 202 of 202 DPP forms), not a title. There is no title ID and no log line showing a shader on main hitting the rejected V_MOVREL* DPP8 encoding. Accepting encodings to move a coverage number is the case the throw rule is for: if nothing needs them, they should keep throwing.

  2. The semantics are asserted, not measured. The body says the DPP source swizzle goes through applyBitSourceModifiers/DppMoveU32 on the relative-read value. For a relative read the register being permuted is the VGPR picked by src0 + M0, and the lanes' value there is what DPP8 would shuffle. What does hardware do when the DPP source is the base register and the data actually read is the indexed one? The test expectations in RelativeDpp.cpp come from the same translator model, so they cannot disagree with it. Which of them was checked against RDNA hardware or the ISA text, and for which section? If it is unknown, acceptsDpp8 should keep refusing these three and the gap should be in docs/dev/debt/shader.md.

  3. A negative control for the new test. Please show the test failing on main for the three newly accepted forms (it should throw there), and failing with the DPP flags dropped from the relative read, so it is clear it exercises the lane permutation and not just the decode path.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729921460 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14692#pullrequestreview-5729921460). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:49:13Z. **Review:** COMMENTED --- **Correction (2026-11-01):** the title-ID/log demand below is not a CONTRIBUTING requirement; `Unblocks: none` is allowed. The technical points below are unaffected. 1. **No title reaches this.** The motivation is the progress page count (199 to 202 of 202 DPP forms), not a title. There is no title ID and no log line showing a shader on main hitting the rejected `V_MOVREL*` DPP8 encoding. Accepting encodings to move a coverage number is the case the throw rule is for: if nothing needs them, they should keep throwing. 2. **The semantics are asserted, not measured.** The body says the DPP source swizzle goes through `applyBitSourceModifiers`/`DppMoveU32` on the relative-read value. For a relative read the register being permuted is the VGPR picked by `src0 + M0`, and the lanes' value there is what DPP8 would shuffle. What does hardware do when the DPP source is the base register and the data actually read is the indexed one? The test expectations in `RelativeDpp.cpp` come from the same translator model, so they cannot disagree with it. Which of them was checked against RDNA hardware or the ISA text, and for which section? If it is unknown, `acceptsDpp8` should keep refusing these three and the gap should be in `docs/dev/debt/shader.md`. 3. **A negative control for the new test.** Please show the test failing on main for the three newly accepted forms (it should throw there), and failing with the DPP flags dropped from the relative read, so it is clear it exercises the lane permutation and not just the decode path.
MarcZX10 commented 2026-11-01 20:47:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T20:47:52Z.

Review: COMMENTED


Reviewed — no blocking findings

The change lets DPP8 decode on the four relative vector moves that the base decoder refused. The RDNA 2 ISA does not list those instructions among the ones that cannot use DPP, and the existing relative read and write lowering already applies the DPP move. Two things are not verified here: the hand-computed expected values in the new GPU test, and the behaviour on hardware. The hosted Windows job ran no CTest for this head, so the test did not run. Approval waits for the macOS relinker jobs, which were queued at review time.

What I ran

  • Head aad159ece29ee0da2067dbfbbf07b2e9106e14f4; base f2d874c1fdccf781c0fa5d86619bb5dd8894b958. 3 files, +134/-7: RdnaVectorOpDecoder.cpp (the acceptsDpp8 exclusion removed), tests/execution/RelativeDpp.cpp (new, 132 lines) and docs/dev/debt/shader.md (+1).
  • Read the full decoder diff and the new test file, including its code array and its Run and RunMasked helpers.
  • Checked the ISA: the RDNA 2 ISA PDF (gpuopen.com, 291 pages) section 12.19.1 lists the instructions that cannot use DPP. The list covers V_FMAMK, V_FMAAK, V_READFIRSTLANE, the F64 conversions and other F64 operations. V_MOVRELS, V_MOVRELD, V_MOVRELSD and V_MOVRELSD_2 are not on it. Section 12.8 defines the relative operands as VGPR[S0+M0] and VGPR[D+M0], so the source is a DPP-capable VOP1 operand.
  • Lowering: readRelativeVector calls applyBitSourceModifiers, which applies DppMoveU32 with dppFlags (which adds the DPP8 lane mode) when operand.dpp is set. writeRelativeVector applies DppUpdateU32 for a DPP destination. The relative paths therefore already handle DPP8 selectors once the decoder accepts them.
  • History: the base exclusion came in with commit 391eb6ffe8 ("decode DPP8 on VOP1 and VOP2"), whose message gives no reason for it.
  • Precheck: diff check, conventions and PR template, and the live stack check passed. The ABI audit and test-quality rows failed on missing helpers; by hand the ABI audit is not applicable (no APS5 export changed).
  • Hosted: the windows job completed with success, but its log has no CTest run. Relinkers (ubuntu g++, windows g++, asan) passed; the macOS relinkers were queued; linux, register-context and write-watch were skipped.
  • No MarcZX10 review at this head.

Results

Check Result Note
Diff check passed
Conventions and PR template passed precheck and hosted conventions passed
Mergeability and dependencies passed depends on none; the live stack check passed
ISA exclusion list (section 12.19.1) passed the four relative moves are not listed
Relative read and write lowering passed applyBitSourceModifiers and writeRelativeVector apply the DPP moves, including DPP8
Reversal of the base exclusion noted the base exclusion (391eb6ffe8) has no recorded reason; the PR should say why it is reversed (non-blocking)
Expected values in RelativeDpp.cpp not verified the hard-coded Expected values were not computed by hand
GPU execution test (RelativeDpp) not run no CTest ran for this head; the test needs Vulkan
ABI audit (manual run) not applicable no APS5 export changed
Build and runtime tests not run no build here
Negative controls not run no build here
Hosted CI not complete windows built but ran no CTest; relinkers passed; macOS relinkers queued; linux, register-context and write-watch skipped
Commands and unedited precheck output

Commands:

  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14692 --output-dir <scratch>/precheck/14692p (report.md in that directory).
  • Head fetched by URL (objects only): git fetch https://github.com/boykopovar/AnyPS5.git pull/14692/head.
  • ISA check: curl -fsSL https://gpuopen.com/download/rdna2-shader-instruction-set-architecture.pdf and pdftotext -layout on it; sections 12.19.1 and 12.8.
  • History: git log -S 'VMovrelsB32' f2d874c1fd -- core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp.
  • Hosted checks: gh api repos/boykopovar/AnyPS5/commits/aad159ece29ee0da2067dbfbbf07b2e9106e14f4/check-runs.

Precheck table (unedited):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...aad159ece29ee0da2067dbfbbf07b2e9106e14f4
conventions_and_pr_template passed /marc/DeusMachina_0x1914/.venv/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head aad159ece29ee0da2067dbfbbf07b2e9106e14f4 --title feat(shader): decode DPP8 on the relative vector instructions --body /dev/shm/reviewer-run/precheck/14692p/pr-body.md
changed_export_abi_audit failed /marc/DeusMachina_0x1914/.venv/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head aad159ece29ee0da2067dbfbbf07b2e9106e14f4 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /marc/DeusMachina_0x1914/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14692 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14692p/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /marc/DeusMachina_0x1914/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14692p/head-aad159ece29e-d889c6d2/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14692p/head-aad159ece29e-d889c6d2 --json core/libs/prx/libSceAgcDriver/tests/execution/RelativeDpp.cpp core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp docs/dev/debt/shader.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Negative control

Not run here. The execution test needs Vulkan and a build.

Findings

Blocking

None.

Non-blocking

  • The base excluded v_movrels_b32, v_movrelsd_b32 and v_movrelsd_2_b32 from DPP8 in commit 391eb6ffe8, and nothing records why. The PR reverses that exclusion on ISA grounds, which the RDNA 2 section 12.19.1 list supports. Please state in the PR body that this reverses an earlier exclusion, and why.
  • The Expected values in RelativeDpp.cpp ({0x20, 0x10, 0x20, 0x20, 0x20}) and the masked cases depend on the DPP8 selector in the code array. I did not compute them by hand. A GPU run output for this head would settle them.
  • The new test is registered through the glob at core/libs/prx/libSceAgcDriver/CMakeLists.txt line 556, so it gets a CTest entry, but no hosted run of it appears for this head.

Sources

Not verified

  • No build or run here. The GPU test was not run, and the Expected values were not computed by hand.
  • The behaviour on hardware is not measured; the decoder change follows the ISA text.
  • The macOS relinker jobs had not finished at review time.

To get this to a good state

  • Nothing blocking. Approval waits for the macOS relinker jobs on this head.
  • Optional: the reason for reversing the earlier exclusion in the PR body, and a GPU run output for RelativeDpp.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5730197285 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14692#pullrequestreview-5730197285). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T20:47:52Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The change lets DPP8 decode on the four relative vector moves that the base decoder refused. The RDNA 2 ISA does not list those instructions among the ones that cannot use DPP, and the existing relative read and write lowering already applies the DPP move. Two things are not verified here: the hand-computed expected values in the new GPU test, and the behaviour on hardware. The hosted Windows job ran no CTest for this head, so the test did not run. Approval waits for the macOS relinker jobs, which were queued at review time. ## What I ran - Head `aad159ece29ee0da2067dbfbbf07b2e9106e14f4`; base `f2d874c1fdccf781c0fa5d86619bb5dd8894b958`. 3 files, +134/-7: `RdnaVectorOpDecoder.cpp` (the `acceptsDpp8` exclusion removed), `tests/execution/RelativeDpp.cpp` (new, 132 lines) and `docs/dev/debt/shader.md` (+1). - Read the full decoder diff and the new test file, including its code array and its `Run` and `RunMasked` helpers. - Checked the ISA: the RDNA 2 ISA PDF (`gpuopen.com`, 291 pages) section 12.19.1 lists the instructions that cannot use DPP. The list covers `V_FMAMK`, `V_FMAAK`, `V_READFIRSTLANE`, the F64 conversions and other F64 operations. `V_MOVRELS`, `V_MOVRELD`, `V_MOVRELSD` and `V_MOVRELSD_2` are not on it. Section 12.8 defines the relative operands as `VGPR[S0+M0]` and `VGPR[D+M0]`, so the source is a DPP-capable VOP1 operand. - Lowering: `readRelativeVector` calls `applyBitSourceModifiers`, which applies `DppMoveU32` with `dppFlags` (which adds the DPP8 lane mode) when `operand.dpp` is set. `writeRelativeVector` applies `DppUpdateU32` for a DPP destination. The relative paths therefore already handle DPP8 selectors once the decoder accepts them. - History: the base exclusion came in with commit `391eb6ffe8` ("decode DPP8 on VOP1 and VOP2"), whose message gives no reason for it. - Precheck: diff check, conventions and PR template, and the live stack check passed. The ABI audit and test-quality rows failed on missing helpers; by hand the ABI audit is not applicable (no APS5 export changed). - Hosted: the windows job completed with success, but its log has no CTest run. Relinkers (ubuntu g++, windows g++, asan) passed; the macOS relinkers were queued; linux, register-context and write-watch were skipped. - No MarcZX10 review at this head. ## Results | Check | Result | Note | | --- | --- | --- | | Diff check | passed | | | Conventions and PR template | passed | precheck and hosted conventions passed | | Mergeability and dependencies | passed | depends on none; the live stack check passed | | ISA exclusion list (section 12.19.1) | passed | the four relative moves are not listed | | Relative read and write lowering | passed | `applyBitSourceModifiers` and `writeRelativeVector` apply the DPP moves, including DPP8 | | Reversal of the base exclusion | noted | the base exclusion (`391eb6ffe8`) has no recorded reason; the PR should say why it is reversed (non-blocking) | | Expected values in `RelativeDpp.cpp` | not verified | the hard-coded `Expected` values were not computed by hand | | GPU execution test (`RelativeDpp`) | not run | no CTest ran for this head; the test needs Vulkan | | ABI audit (manual run) | not applicable | no APS5 export changed | | Build and runtime tests | not run | no build here | | Negative controls | not run | no build here | | Hosted CI | not complete | windows built but ran no CTest; relinkers passed; macOS relinkers queued; linux, register-context and write-watch skipped | <details><summary>Commands and unedited precheck output</summary> Commands: - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14692 --output-dir <scratch>/precheck/14692p` (report.md in that directory). - Head fetched by URL (objects only): `git fetch https://github.com/boykopovar/AnyPS5.git pull/14692/head`. - ISA check: `curl -fsSL https://gpuopen.com/download/rdna2-shader-instruction-set-architecture.pdf` and `pdftotext -layout` on it; sections 12.19.1 and 12.8. - History: `git log -S 'VMovrelsB32' f2d874c1fd -- core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp`. - Hosted checks: `gh api repos/boykopovar/AnyPS5/commits/aad159ece29ee0da2067dbfbbf07b2e9106e14f4/check-runs`. Precheck table (unedited): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...aad159ece29ee0da2067dbfbbf07b2e9106e14f4` | | conventions_and_pr_template | passed | `/marc/DeusMachina_0x1914/.venv/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head aad159ece29ee0da2067dbfbbf07b2e9106e14f4 --title feat(shader): decode DPP8 on the relative vector instructions --body /dev/shm/reviewer-run/precheck/14692p/pr-body.md` | | changed_export_abi_audit | failed | `/marc/DeusMachina_0x1914/.venv/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head aad159ece29ee0da2067dbfbbf07b2e9106e14f4 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/marc/DeusMachina_0x1914/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14692 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14692p/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/marc/DeusMachina_0x1914/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14692p/head-aad159ece29e-d889c6d2/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14692p/head-aad159ece29e-d889c6d2 --json core/libs/prx/libSceAgcDriver/tests/execution/RelativeDpp.cpp core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp docs/dev/debt/shader.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | </details> ## Negative control Not run here. The execution test needs Vulkan and a build. ## Findings **Blocking** None. **Non-blocking** - The base excluded `v_movrels_b32`, `v_movrelsd_b32` and `v_movrelsd_2_b32` from DPP8 in commit `391eb6ffe8`, and nothing records why. The PR reverses that exclusion on ISA grounds, which the RDNA 2 section 12.19.1 list supports. Please state in the PR body that this reverses an earlier exclusion, and why. - The `Expected` values in `RelativeDpp.cpp` (`{0x20, 0x10, 0x20, 0x20, 0x20}`) and the masked cases depend on the DPP8 selector in the code array. I did not compute them by hand. A GPU run output for this head would settle them. - The new test is registered through the glob at `core/libs/prx/libSceAgcDriver/CMakeLists.txt` line 556, so it gets a CTest entry, but no hosted run of it appears for this head. ## Sources - ISA section 12.19.1: RDNA 2 Instruction Set Architecture, section "Instruction Limitations" (https://gpuopen.com/download/rdna2-shader-instruction-set-architecture.pdf) - Decoder change: https://github.com/boykopovar/AnyPS5/blob/aad159ece29ee0da2067dbfbbf07b2e9106e14f4/core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp#L727-L731 - Relative read with DPP: https://github.com/boykopovar/AnyPS5/blob/aad159ece29ee0da2067dbfbbf07b2e9106e14f4/core/shader/recompiler/Translation/src/TranslationContext/OperandAccess.cpp#L307-L311 - New test: https://github.com/boykopovar/AnyPS5/blob/aad159ece29ee0da2067dbfbbf07b2e9106e14f4/core/libs/prx/libSceAgcDriver/tests/execution/RelativeDpp.cpp ## Not verified - No build or run here. The GPU test was not run, and the `Expected` values were not computed by hand. - The behaviour on hardware is not measured; the decoder change follows the ISA text. - The macOS relinker jobs had not finished at review time. ## To get this to a good state - Nothing blocking. Approval waits for the macOS relinker jobs on this head. - Optional: the reason for reversing the earlier exclusion in the PR body, and a GPU run output for `RelativeDpp`.
XairRrR commented 2026-11-03 09:31:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T09:31:22Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The one-line decoder change is consistent with the ISA sections the PR cites, and the negative control fails as it should. But the new test agc_driver_relative_dpp fails on lavapipe, which is what Linux CI runs. It runs wave32 and wave64 masked cases on an 8-lane host subgroup without the skip that the other DPP execution tests have.

What I ran

Head 7895c8ae5447049e1b83f37c2e79eb9dc978e1ce, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged with --no-ff into tree 968a7730dc06104e58747e4d98ee3028b787810f. Debian 13 VM (Xeon Gold 6136, AVX2/FMA), GCC 14.2.0, Release, Ninja. Vulkan through lavapipe (Mesa 26.1.6, LLVM 19, llvmpipe (LLVM 19.1.7, 256 bits), subgroup size 8).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...7895c8ae5447049e1b83f37c2e79eb9dc978e1ce
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_relative_(dpp|indexing)$' --output-on-failure
# diagnosis: temporary edits to RelativeDpp.cpp's masked code, then restored
ninja -C build -j32 -l32 agc_driver_relative_dpp_tests
./build/tests/agc_driver_relative_dpp_tests
# negative control: RdnaVectorOpDecoder.cpp restored from main, rebuilt, run, restored from the merged tree
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py all checks passed
Configure / build / libs passed (script)
agc_driver_relative_indexing passed
agc_driver_relative_dpp failed: new failure; the test does not exist on main. Reproduced on rerun
Other selected tests (2164 ran) no other new failures; 7 known failures from main
Validation layer comparison 770 of 771 tests loaded the layer. One test has VUID-vkCmdDispatch-groupCountX-00386: agc_driver_native_depth_uniform_planes, which did not run on the older baseline main (d1ae628bc2). This PR does not touch that test's path, so I do not count it against the PR
Negative control (main's decoder) fails as expected
agc_driver_relative_dpp on lavapipe
[src/VulkanDevice.cpp:1455 VulkanDevice] Selected GPU name=llvmpipe (LLVM 19.1.7, 256 bits) vendor=0x10005 device=0x0 subgroup=8
...
AGC graphics: relative dpp masked: wave32 lane 8 is 0x00000000, expected 0xdeadbeef

Negative control

I restored core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp from main and rebuilt agc_driver_relative_dpp_tests. The test exited 1 with DPP8 modifier is not supported for opcode. I then restored the merged file and rebuilt, and git status --porcelain was empty. On this machine, the unmasked Run cases (all four movrel forms with DPP8, plus the DPP16 control, in wave32 and wave64) pass with the PR's decoder. The failure comes later, in RunMasked.

Findings

Blocking

  • The new test fails on narrow host subgroups (lavapipe, i.e. the Linux CI). RelativeDpp.cpp:118-124 runs RunMasked for wave32 and wave64 with EXEC=0xf without checking the host subgroup size. On llvmpipe (subgroup 8), lane 8 is written although EXEC has only lanes 0–3 set.
    • I checked whether this is specific to movrels or to DPP. I temporarily replaced v_movrels_b32_dpp in MaskedNoFiCode with a plain v_mov_b32 v4, v9 (no DPP), and lane 8 still came back as 0x00000020 instead of 0xdeadbeef. So the problem is not this PR's decoder change. It is the known limit of running an exec-masked wave on a host subgroup narrower than the wave.
    • Other execution tests handle this by skipping. For example, Dpp16InactiveSource.cpp returns VulkanTestSkipped when subgroupSize < 32, and it passes device->ComputeTarget(32) instead of device.Target() (here at lines 72 and 100).
    • As it stands, the test fails on every lavapipe run, so the Linux CI would turn red after merge.
    • Suggested fix: follow the same pattern. Skip when the subgroup cannot hold the wave (< 32 for wave32; check what is needed for wave64), and use ComputeTarget(waveSize). If the narrow-subgroup lowering is supposed to support masked waves, that is a separate bug and needs its own PR.

Non-blocking

  • docs/dev/debt/shader.md:247 says the test covers "a non-identity DPP8 selector with both bound-control values". DPP8 has no bound_ctrl field. The two masked variants differ only in fi (src0 0xe9 vs 0xea). Please write "both fetch-inactive values".
  • The same entry spends most of its text on the implemented behaviour. CONTRIBUTING asks that an entry state the gap first: here, that the lane selection on these four forms is not measured on hardware. It could be cut down to that, plus the ISA sections.
  • On review comments: I confirm CnRJay's request for a negative control on the decode gate (above). MarcZX10's "Expected values not computed by hand": I decoded MaskedNoFiCode/MaskedFiCode by hand. They set v8=16, v9=32, M0=1, v4=0xdeadbeef, EXEC=0xf, then run v_movrels_b32 v4, v8 dpp8:[4,5,6,7,4,5,6,7]. So lanes 0–3 should read v9 of inactive lanes 4–7, giving 0 without fi and 0x20 with fi, and lanes 4 and up should keep 0xdeadbeef. That matches the test's expectations.

Not verified

  • Behaviour on AMD/NVIDIA hardware or a console. On a 32/64-lane subgroup the test would likely pass, as the author and the GPU CI comments report for earlier heads, but I could not run it here.
  • I did not run the validation-layer comparison for agc_driver_relative_dpp myself. The script's comparison reports no new VUID- for it.
  • Whether wave64 masked cases need a < 64 subgroup skip in addition to < 32.

To get this to a good state

  • Add the narrow-subgroup skip, and use ComputeTarget(waveSize) in RelativeDpp.cpp, as the other DPP execution tests do, so that the test either passes or reports a skip on lavapipe.
  • Fix the "bound-control" wording in the debt entry.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5749777183 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14692#pullrequestreview-5749777183). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T09:31:22Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The one-line decoder change is consistent with the ISA sections the PR cites, and the negative control fails as it should. But the new test `agc_driver_relative_dpp` fails on lavapipe, which is what Linux CI runs. It runs wave32 and wave64 masked cases on an 8-lane host subgroup without the skip that the other DPP execution tests have. ## What I ran Head `7895c8ae5447049e1b83f37c2e79eb9dc978e1ce`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged with `--no-ff` into tree `968a7730dc06104e58747e4d98ee3028b787810f`. Debian 13 VM (Xeon Gold 6136, AVX2/FMA), GCC 14.2.0, Release, Ninja. Vulkan through lavapipe (Mesa 26.1.6, LLVM 19, `llvmpipe (LLVM 19.1.7, 256 bits)`, subgroup size 8). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...7895c8ae5447049e1b83f37c2e79eb9dc978e1ce python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_relative_(dpp|indexing)$' --output-on-failure # diagnosis: temporary edits to RelativeDpp.cpp's masked code, then restored ninja -C build -j32 -l32 agc_driver_relative_dpp_tests ./build/tests/agc_driver_relative_dpp_tests # negative control: RdnaVectorOpDecoder.cpp restored from main, rebuilt, run, restored from the merged tree git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | all checks passed | | Configure / build / `libs` | passed (script) | | `agc_driver_relative_indexing` | passed | | `agc_driver_relative_dpp` | **failed**: new failure; the test does not exist on `main`. Reproduced on rerun | | Other selected tests (2164 ran) | no other new failures; 7 known failures from `main` | | Validation layer comparison | 770 of 771 tests loaded the layer. One test has `VUID-vkCmdDispatch-groupCountX-00386`: `agc_driver_native_depth_uniform_planes`, which did not run on the older baseline `main` (`d1ae628bc2`). This PR does not touch that test's path, so I do not count it against the PR | | Negative control (main's decoder) | fails as expected | <details><summary>agc_driver_relative_dpp on lavapipe</summary> ``` [src/VulkanDevice.cpp:1455 VulkanDevice] Selected GPU name=llvmpipe (LLVM 19.1.7, 256 bits) vendor=0x10005 device=0x0 subgroup=8 ... AGC graphics: relative dpp masked: wave32 lane 8 is 0x00000000, expected 0xdeadbeef ``` </details> ## Negative control I restored `core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp` from `main` and rebuilt `agc_driver_relative_dpp_tests`. The test exited 1 with `DPP8 modifier is not supported for opcode`. I then restored the merged file and rebuilt, and `git status --porcelain` was empty. On this machine, the unmasked `Run` cases (all four movrel forms with DPP8, plus the DPP16 control, in wave32 and wave64) pass with the PR's decoder. The failure comes later, in `RunMasked`. ## Findings ### Blocking - **The new test fails on narrow host subgroups (lavapipe, i.e. the Linux CI).** `RelativeDpp.cpp:118-124` runs `RunMasked` for wave32 and wave64 with `EXEC=0xf` without checking the host subgroup size. On llvmpipe (subgroup 8), lane 8 is written although EXEC has only lanes 0–3 set. - I checked whether this is specific to movrels or to DPP. I temporarily replaced `v_movrels_b32_dpp` in `MaskedNoFiCode` with a plain `v_mov_b32 v4, v9` (no DPP), and lane 8 still came back as `0x00000020` instead of `0xdeadbeef`. So the problem is not this PR's decoder change. It is the known limit of running an exec-masked wave on a host subgroup narrower than the wave. - Other execution tests handle this by skipping. For example, [`Dpp16InactiveSource.cpp`](https://github.com/boykopovar/AnyPS5/blob/4f41f4c375f5abb487dbd184fbc150f31994d762/core/libs/prx/libSceAgcDriver/tests/execution/Dpp16InactiveSource.cpp#L271-L274) returns `VulkanTestSkipped` when `subgroupSize < 32`, and it passes `device->ComputeTarget(32)` instead of `device.Target()` (here at lines 72 and 100). - As it stands, the test fails on every lavapipe run, so the Linux CI would turn red after merge. - Suggested fix: follow the same pattern. Skip when the subgroup cannot hold the wave (`< 32` for wave32; check what is needed for wave64), and use `ComputeTarget(waveSize)`. If the narrow-subgroup lowering is supposed to support masked waves, that is a separate bug and needs its own PR. ### Non-blocking - `docs/dev/debt/shader.md:247` says the test covers "a non-identity DPP8 selector with both bound-control values". DPP8 has no `bound_ctrl` field. The two masked variants differ only in `fi` (src0 `0xe9` vs `0xea`). Please write "both fetch-inactive values". - The same entry spends most of its text on the implemented behaviour. CONTRIBUTING asks that an entry state the gap first: here, that the lane selection on these four forms is not measured on hardware. It could be cut down to that, plus the ISA sections. - On review comments: I confirm CnRJay's request for a negative control on the decode gate (above). MarcZX10's "Expected values not computed by hand": I decoded `MaskedNoFiCode`/`MaskedFiCode` by hand. They set `v8=16`, `v9=32`, `M0=1`, `v4=0xdeadbeef`, `EXEC=0xf`, then run `v_movrels_b32 v4, v8 dpp8:[4,5,6,7,4,5,6,7]`. So lanes 0–3 should read `v9` of inactive lanes 4–7, giving 0 without `fi` and `0x20` with `fi`, and lanes 4 and up should keep `0xdeadbeef`. That matches the test's expectations. ## Not verified - Behaviour on AMD/NVIDIA hardware or a console. On a 32/64-lane subgroup the test would likely pass, as the author and the GPU CI comments report for earlier heads, but I could not run it here. - I did not run the validation-layer comparison for `agc_driver_relative_dpp` myself. The script's comparison reports no new `VUID-` for it. - Whether wave64 masked cases need a `< 64` subgroup skip in addition to `< 32`. ## To get this to a good state - Add the narrow-subgroup skip, and use `ComputeTarget(waveSize)` in `RelativeDpp.cpp`, as the other DPP execution tests do, so that the test either passes or reports a skip on lavapipe. - Fix the "bound-control" wording in the debt entry. <!-- anyps5-bots job=2203 head=7895c8ae5447049e1b83f37c2e79eb9dc978e1ce -->
XairRrR commented 2026-11-03 10:33:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T10:33:29Z.

Review: DISMISSED


Re-checked — changes still requested

Commit e31e6bb6f6 fixes the lavapipe failure I reported: the test now uses ComputeTarget(waveSize) and skips the masked cases on narrow subgroups. It also fixes the "bound-control" wording. But the skip message does not match the pattern that tools/check_skips.py accepts, so the Linux CI step check_skips.py build/ctest.xml now fails on this test.

What changed since my last review

  • One new commit, e31e6bb6f6 "test(shader): skip masked relative DPP cases on narrow subgroups". The three earlier commits are unchanged (range-diff =).
  • RelativeDpp.cpp:
    • every Run/RunMasked call now takes device->ComputeTarget(waveSize);
    • when subgroupSize < 32, the test prints a message and returns VulkanTestSkipped after the unmasked cases have run;
    • when subgroupSize < 64, the wave64 masked cases are left out and the test still returns 0.
  • docs/dev/debt/shader.md:247 now says "both fetch-inactive values".
  • The decoder is unchanged.
  • The author reports a pass on the RTX 4080 SUPER (subgroup 32): the wave32 masked cases ran and the wave64 masked cases were skipped. I accept this as author-reported. The author also says they could not exercise the < 32 path.

What I ran

Head e31e6bb6f62dd05ff1f7812b6ed8b24aa1e2d4cc, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree 17c28bc8f0a6ff18cf3d58083eb851ddc6b73175. Debian 13 VM, GCC 14.2.0, Release, lavapipe (llvmpipe (LLVM 19.1.7, 256 bits), subgroup 8).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...e31e6bb6f62dd05ff1f7812b6ed8b24aa1e2d4cc
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_relative_(dpp|indexing)$' --output-on-failure -V
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_relative_dpp$' --output-junit review-dpp.xml -V
python3 tools/check_skips.py build/review-dpp.xml
# negative control
git show 4f41f4c375f5abb487dbd184fbc150f31994d762:core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp > core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp
ninja -C build -j32 -l32 agc_driver_relative_dpp_tests
./build/tests/agc_driver_relative_dpp_tests
git show 17c28bc8f0a6ff18cf3d58083eb851ddc6b73175:core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp > core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp
ninja -C build -j32 -l32 agc_driver_relative_dpp_tests
./build/tests/agc_driver_relative_dpp_tests
git status --porcelain
Check Result
git diff --check clean
check_conventions.py all checks passed
Configure / build / libs passed (script)
agc_driver_relative_indexing passed
agc_driver_relative_dpp skipped (exit 77) after the unmasked wave32 and wave64 cases passed
check_skips.py (script run and my run) failed: error: agc_driver_relative_dpp skipped
Other selected tests (2164) no new failures or timeouts; 7 known failures from main
Validation comparison 770 of 771 tests loaded the layer. The only new VUID- is in agc_driver_native_depth_uniform_planes, which did not run on the baseline main d1ae628bc2 and is not on this PR's path, as at my last review
Skip output and check_skips
1444: skipped masked cases, subgroup size 8 cannot hold a wave32
1/1 Test #1444: agc_driver_relative_dpp ..........***Skipped   0.27 sec
error: agc_driver_relative_dpp skipped
1 test(s) skipped for a reason that is not expected: the job lost that coverage and ctest still reports every test as passed

Negative control: with main's RdnaVectorOpDecoder.cpp, the test exits 1 with ShaderRecompiler::Recompile: DPP8 modifier is not supported for opcode. The unmasked cases run before the skip, so the decode gate is still exercised on lavapipe. After I restored the merged file and rebuilt, the test returned 77 again, and git status --porcelain was empty.

Previous findings

  • Blocking: the test failed on narrow host subgroups. Resolved. The masked cases are now gated on subgroupSize, and ComputeTarget(waveSize) is used (RelativeDpp.cpp:121-133). On lavapipe the test no longer fails. The new skip creates a new problem, described below.
  • Non-blocking: "bound-control" wording. Resolved. docs/dev/debt/shader.md:247 now says "both fetch-inactive values".
  • Non-blocking: the debt entry should state the gap first. Still open. The entry still opens with "decode the DPP8 encodings now" and describes the implemented path before saying "The lane selection is not measured on a console."

New findings

Blocking

  • The skip message is not recognised by tools/check_skips.py, so the Linux CI job fails.
    • Where: RelativeDpp.cpp:124 prints skipped masked cases, subgroup size %u cannot hold a wave32.
    • Why it fails: check_skips.py accepts a device-limitation skip only when the output matches skipped,.*(subgroup|...), i.e. the comma has to come right after "skipped". Here "skipped" is followed by " masked cases,", so the skip counts as unexpected. .github/workflows/build.yml:553 runs python3 tools/check_skips.py build/ctest.xml on Linux, where lavapipe has subgroup 8, so this test would fail that step on every run. I reproduced this locally with a JUnit file from ctest --output-junit.
    • Suggested fix: use the same wording as the neighbouring tests, for example RelativeIndexingKnownBits.cpp:110: std::printf("relative dpp masked cases skipped, subgroup size %u cannot hold a wave32\n", ...).

Non-blocking

  • The skip hides passing coverage. On a narrow subgroup, all five unmasked cases (the decode gate for the three newly accepted forms) pass, and then the whole test is reported as skipped. CI therefore cannot tell "decode works, masked lanes unsupported" from "nothing ran". Possible fixes:
    • register the masked cases as their own ctest entry (or a mode of the same executable), so the unmasked part reports a pass on lavapipe;
    • or return 0 when only the masked part is skipped, as the wave64 masked branch already does at RelativeDpp.cpp:129-131.

Not verified

  • I could not run the wave32 or wave64 masked cases here, because lavapipe's subgroup is 8. Their results are author-reported (RTX 4080 SUPER, wave32 masked only).
  • Hardware or console behaviour of DPP8 on these four forms.
  • I did not run a validation-layer comparison of agc_driver_relative_dpp against main myself. The test does not exist on main, and the script's comparison found no new VUID- for it.

To get this to a good state

  • Reword the skip message so it starts with <what> skipped, subgroup size ..., and check that python3 tools/check_skips.py accepts it on a subgroup-8 device.
  • Optionally, report the unmasked cases separately so they count as a pass on lavapipe, and cut the debt entry down to the gap first.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5750620710 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14692#pullrequestreview-5750620710). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T10:33:29Z. **Review:** DISMISSED --- # Re-checked — changes still requested Commit `e31e6bb6f6` fixes the lavapipe failure I reported: the test now uses `ComputeTarget(waveSize)` and skips the masked cases on narrow subgroups. It also fixes the "bound-control" wording. But the skip message does not match the pattern that `tools/check_skips.py` accepts, so the Linux CI step `check_skips.py build/ctest.xml` now fails on this test. ## What changed since my last review - One new commit, `e31e6bb6f6` "test(shader): skip masked relative DPP cases on narrow subgroups". The three earlier commits are unchanged (range-diff `=`). - `RelativeDpp.cpp`: - every `Run`/`RunMasked` call now takes `device->ComputeTarget(waveSize)`; - when `subgroupSize < 32`, the test prints a message and returns `VulkanTestSkipped` after the unmasked cases have run; - when `subgroupSize < 64`, the wave64 masked cases are left out and the test still returns 0. - `docs/dev/debt/shader.md:247` now says "both fetch-inactive values". - The decoder is unchanged. - The author reports a pass on the RTX 4080 SUPER (subgroup 32): the wave32 masked cases ran and the wave64 masked cases were skipped. I accept this as author-reported. The author also says they could not exercise the `< 32` path. ## What I ran Head `e31e6bb6f62dd05ff1f7812b6ed8b24aa1e2d4cc`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged tree `17c28bc8f0a6ff18cf3d58083eb851ddc6b73175`. Debian 13 VM, GCC 14.2.0, Release, lavapipe (`llvmpipe (LLVM 19.1.7, 256 bits)`, subgroup 8). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...e31e6bb6f62dd05ff1f7812b6ed8b24aa1e2d4cc python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_relative_(dpp|indexing)$' --output-on-failure -V ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_relative_dpp$' --output-junit review-dpp.xml -V python3 tools/check_skips.py build/review-dpp.xml # negative control git show 4f41f4c375f5abb487dbd184fbc150f31994d762:core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp > core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp ninja -C build -j32 -l32 agc_driver_relative_dpp_tests ./build/tests/agc_driver_relative_dpp_tests git show 17c28bc8f0a6ff18cf3d58083eb851ddc6b73175:core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp > core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp ninja -C build -j32 -l32 agc_driver_relative_dpp_tests ./build/tests/agc_driver_relative_dpp_tests git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | all checks passed | | Configure / build / `libs` | passed (script) | | `agc_driver_relative_indexing` | passed | | `agc_driver_relative_dpp` | skipped (exit 77) after the unmasked wave32 and wave64 cases passed | | `check_skips.py` (script run and my run) | **failed**: `error: agc_driver_relative_dpp skipped` | | Other selected tests (2164) | no new failures or timeouts; 7 known failures from `main` | | Validation comparison | 770 of 771 tests loaded the layer. The only new `VUID-` is in `agc_driver_native_depth_uniform_planes`, which did not run on the baseline `main` `d1ae628bc2` and is not on this PR's path, as at my last review | <details><summary>Skip output and check_skips</summary> ``` 1444: skipped masked cases, subgroup size 8 cannot hold a wave32 1/1 Test #1444: agc_driver_relative_dpp ..........***Skipped 0.27 sec error: agc_driver_relative_dpp skipped 1 test(s) skipped for a reason that is not expected: the job lost that coverage and ctest still reports every test as passed ``` </details> **Negative control:** with `main`'s `RdnaVectorOpDecoder.cpp`, the test exits 1 with `ShaderRecompiler::Recompile: DPP8 modifier is not supported for opcode`. The unmasked cases run before the skip, so the decode gate is still exercised on lavapipe. After I restored the merged file and rebuilt, the test returned 77 again, and `git status --porcelain` was empty. ## Previous findings - **Blocking: the test failed on narrow host subgroups.** Resolved. The masked cases are now gated on `subgroupSize`, and `ComputeTarget(waveSize)` is used (`RelativeDpp.cpp:121-133`). On lavapipe the test no longer fails. The new skip creates a new problem, described below. - **Non-blocking: "bound-control" wording.** Resolved. `docs/dev/debt/shader.md:247` now says "both fetch-inactive values". - **Non-blocking: the debt entry should state the gap first.** Still open. The entry still opens with "decode the DPP8 encodings now" and describes the implemented path before saying "The lane selection is not measured on a console." ## New findings ### Blocking - **The skip message is not recognised by `tools/check_skips.py`, so the Linux CI job fails.** - Where: `RelativeDpp.cpp:124` prints `skipped masked cases, subgroup size %u cannot hold a wave32`. - Why it fails: `check_skips.py` accepts a device-limitation skip only when the output matches `skipped,.*(subgroup|...)`, i.e. the comma has to come right after "skipped". Here "skipped" is followed by " masked cases,", so the skip counts as unexpected. `.github/workflows/build.yml:553` runs `python3 tools/check_skips.py build/ctest.xml` on Linux, where lavapipe has subgroup 8, so this test would fail that step on every run. I reproduced this locally with a JUnit file from `ctest --output-junit`. - Suggested fix: use the same wording as the neighbouring tests, for example `RelativeIndexingKnownBits.cpp:110`: `std::printf("relative dpp masked cases skipped, subgroup size %u cannot hold a wave32\n", ...)`. ### Non-blocking - **The skip hides passing coverage.** On a narrow subgroup, all five unmasked cases (the decode gate for the three newly accepted forms) pass, and then the whole test is reported as skipped. CI therefore cannot tell "decode works, masked lanes unsupported" from "nothing ran". Possible fixes: - register the masked cases as their own ctest entry (or a mode of the same executable), so the unmasked part reports a pass on lavapipe; - or return 0 when only the masked part is skipped, as the wave64 masked branch already does at `RelativeDpp.cpp:129-131`. ## Not verified - I could not run the wave32 or wave64 masked cases here, because lavapipe's subgroup is 8. Their results are author-reported (RTX 4080 SUPER, wave32 masked only). - Hardware or console behaviour of DPP8 on these four forms. - I did not run a validation-layer comparison of `agc_driver_relative_dpp` against `main` myself. The test does not exist on `main`, and the script's comparison found no new `VUID-` for it. ## To get this to a good state - Reword the skip message so it starts with `<what> skipped, subgroup size ...`, and check that `python3 tools/check_skips.py` accepts it on a subgroup-8 device. - Optionally, report the unmasked cases separately so they count as a pass on lavapipe, and cut the debt entry down to the gap first. <!-- anyps5-bots job=3279 head=e31e6bb6f62dd05ff1f7812b6ed8b24aa1e2d4cc -->
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!14692
No description provided.