fix(shader): bound structured buffer accesses by their size #21924

Open
AlfaRojo wants to merge 11 commits from upstream-pr/21924 into main
AlfaRojo commented 2026-11-16 21:50:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlfaRojo on 2026-11-16T21:50:00Z.


What

A structured V# (OOB_SELECT 0, nonzero stride) accepted any access whose first byte was below the stride, so a dword at offset stride - 3 or a ushort at stride - 1 read or wrote bytes of the next record. Measured on RDNA2, the whole access has to fit in the record: an access is in range only when index < NUM_RECORDS and offset + size <= stride, checked per dword of a vector access. Otherwise loads return 0 and stores are dropped, and a partial access is never split.

This PR changes only the OOB_SELECT 0 term in SpirvRuntimeBuffer.cpp to offset + size <= stride. OOB_SELECT 1, 2 and 3 and raw buffers are unchanged. The rule applies to every access that goes through that range check: byte, short, dword and multi-dword loads and stores, typed (tbuffer) and d16 forms, and atomics.

Measurement: AMD Radeon Graphics (Ryzen iGPU, PCI 1002:13c0), AMD Windows driver 32.0.21043.5001, tools/hw-oracle through HIP, assembly target gfx1036, wave32. Float controls on every run: IEEE 0, DX10 clamp 1, denorm32 0, denorm16 3, round32 and round16 0, FP16 overflow 0. V# word 3 0x01016fac.

Access, stride 16 in range up to offset
buffer_load_ubyte / byte store 15
buffer_load_ushort / short store 14
buffer_load_dword 12
buffer_load_dwordx2, dwordx4 checked per dword
tbuffer 8_UINT 15

Strides 6, 8, 10 and 14 follow the same rule (a dword at stride 6 is in range only at offsets 0 to 2). Atomics also follow it: a dword buffer_atomic_add at stride 18 applies at offset 12 and is dropped at 16; buffer_atomic_add_x2 at stride 20 applies at offset 8 and is dropped at 16.

The new execution test BufferStructuredStride (wave32 and wave64) checks ubyte and dword loads and byte and short stores at strides 6, 10 and 16 against the rule, which matches all 588 measured rows. RuntimeBufferSpans expected a dword at offset 4 of a 6-byte stride to be in range; the hardware returns 0 there, so that expectation changes.

Alignment mode. These rows come from the AMD Windows driver, which runs alignment mode UNALIGNED (an unaligned buffer_load_dword reads the exact bytes there). The console runs mode DWORD (docs/dev/debt/shader.md, V# bases off a DWORD boundary, measured on a PS5). Aligned accesses do not depend on the mode; for an unaligned dword near the end of a record DWORD mode may align the address before the range check, so that case is recorded in the debt fragment as unmeasured on the console.

The swizzled V# layout (word 1 bit 31) is not changed here. An earlier debt entry for it was dropped in 62b61dea7d: its odd values came from a source buffer whose bytes did not identify themselves, not from the address rule. gfx1013 itself is not measured.

Tested

Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7 UCRT, Ninja, Release, head 6faf7ec8c9 (code at 147d891e09) on main bca2d36814.

  • ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1: BufferStructuredStride passes in 3/3 runs on each GPU; Selected GPU name= names the requested GPU. With the fix reverted it fails on both GPUs (16 mismatches each). With the test copied onto main it fails on both GPUs.
  • ctest -R 'buffer|mubuf|mtbuf' (AGC tests): 63/63 pass on both GPUs. agc_formatted_buffer_once and agc_formatted_buffer_byte_stores could not be built here: Windows Defender quarantines their executables (Trojan:Win64/ShellCode.MKA!MTB, a heuristic detection on the generated test binaries; see BUILD.md on antivirus).
  • Validation layer (Khronos 1.4.363.0, LunarG SDK), same 21 tests on main bca2d36814 and on this branch, same machine: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '<runtime buffer spans, buffer load/store and buffer execution tests>' -V
GPU side result layer inserted was not found VUID-
RTX 4070 main 21/21 21 0 0
RTX 4070 branch 21/21 21 0 0
Radeon 1002:13c0 main 21/21 21 0 0
Radeon 1002:13c0 branch 21/21 21 0 0

The new test, run separately on the branch, passes on both GPUs with the layer and no VUID-. No new VUID- errors.

  • check_conventions.py --base upstream/main, check_test_registration.py and debt_fold.py --check pass.
  • Overlap: pr_overlap.py could not compare nine PRs that conflict with main and touch SpirvRuntimeBuffer.cpp. I read their hunks: #6412 and #7689 (deferred V# type checks), #7642, #10193, #13928 and #13929 (image and sampler tables), #14217 (GLC/DLC synchronization), #18515 (profiling draft) and #20248 (native buffer descriptor tables, reads the stride into its own table) do not change the structured range rule.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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 4070 (driver 32.0.16.2124) and AMD Radeon Graphics Ryzen iGPU 1002:13c0 (driver 32.0.21043.5001), Windows 11 Pro 10.0.26200
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Structured-buffer accesses now respect record boundaries. Loads that extend beyond a record return zero, while stores that cross a boundary leave bytes outside the record unchanged.
    • Improved handling of accesses with different record sizes and component widths, preventing incorrect results near record edges and ensuring neighboring records are not affected.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5345799255 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21924). Originally posted by [AlfaRojo](https://github.com/AlfaRojo) on 2026-11-16T21:50:00Z. --- ### What A structured V# (`OOB_SELECT` 0, nonzero stride) accepted any access whose first byte was below the stride, so a dword at offset `stride - 3` or a ushort at `stride - 1` read or wrote bytes of the next record. Measured on RDNA2, the whole access has to fit in the record: an access is in range only when `index < NUM_RECORDS` and `offset + size <= stride`, checked per dword of a vector access. Otherwise loads return 0 and stores are dropped, and a partial access is never split. This PR changes only the `OOB_SELECT` 0 term in `SpirvRuntimeBuffer.cpp` to `offset + size <= stride`. `OOB_SELECT` 1, 2 and 3 and raw buffers are unchanged. The rule applies to every access that goes through that range check: byte, short, dword and multi-dword loads and stores, typed (`tbuffer`) and d16 forms, and atomics. Measurement: AMD Radeon Graphics (Ryzen iGPU, PCI 1002:13c0), AMD Windows driver 32.0.21043.5001, `tools/hw-oracle` through HIP, assembly target gfx1036, wave32. Float controls on every run: IEEE 0, DX10 clamp 1, denorm32 0, denorm16 3, round32 and round16 0, FP16 overflow 0. V# word 3 `0x01016fac`. | Access, stride 16 | in range up to offset | |---|---| | `buffer_load_ubyte` / byte store | 15 | | `buffer_load_ushort` / short store | 14 | | `buffer_load_dword` | 12 | | `buffer_load_dwordx2`, `dwordx4` | checked per dword | | `tbuffer` 8_UINT | 15 | Strides 6, 8, 10 and 14 follow the same rule (a dword at stride 6 is in range only at offsets 0 to 2). Atomics also follow it: a dword `buffer_atomic_add` at stride 18 applies at offset 12 and is dropped at 16; `buffer_atomic_add_x2` at stride 20 applies at offset 8 and is dropped at 16. The new execution test `BufferStructuredStride` (wave32 and wave64) checks ubyte and dword loads and byte and short stores at strides 6, 10 and 16 against the rule, which matches all 588 measured rows. `RuntimeBufferSpans` expected a dword at offset 4 of a 6-byte stride to be in range; the hardware returns 0 there, so that expectation changes. **Alignment mode.** These rows come from the AMD Windows driver, which runs alignment mode UNALIGNED (an unaligned `buffer_load_dword` reads the exact bytes there). The console runs mode DWORD (`docs/dev/debt/shader.md`, V# bases off a DWORD boundary, measured on a PS5). Aligned accesses do not depend on the mode; for an unaligned dword near the end of a record DWORD mode may align the address before the range check, so that case is recorded in the debt fragment as unmeasured on the console. The swizzled V# layout (word 1 bit 31) is not changed here. An earlier debt entry for it was dropped in `62b61dea7d`: its odd values came from a source buffer whose bytes did not identify themselves, not from the address rule. gfx1013 itself is not measured. ### Tested Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7 UCRT, Ninja, Release, head `6faf7ec8c9` (code at `147d891e09`) on `main` `bca2d36814`. - `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`: `BufferStructuredStride` passes in 3/3 runs on each GPU; `Selected GPU name=` names the requested GPU. With the fix reverted it fails on both GPUs (16 mismatches each). With the test copied onto `main` it fails on both GPUs. - `ctest -R 'buffer|mubuf|mtbuf'` (AGC tests): 63/63 pass on both GPUs. `agc_formatted_buffer_once` and `agc_formatted_buffer_byte_stores` could not be built here: Windows Defender quarantines their executables (`Trojan:Win64/ShellCode.MKA!MTB`, a heuristic detection on the generated test binaries; see BUILD.md on antivirus). - Validation layer (Khronos 1.4.363.0, LunarG SDK), same 21 tests on `main` `bca2d36814` and on this branch, same machine: `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '<runtime buffer spans, buffer load/store and buffer execution tests>' -V` | GPU | side | result | layer inserted | `was not found` | `VUID-` | |---|---|---|---|---|---| | RTX 4070 | main | 21/21 | 21 | 0 | 0 | | RTX 4070 | branch | 21/21 | 21 | 0 | 0 | | Radeon 1002:13c0 | main | 21/21 | 21 | 0 | 0 | | Radeon 1002:13c0 | branch | 21/21 | 21 | 0 | 0 | The new test, run separately on the branch, passes on both GPUs with the layer and no `VUID-`. No new `VUID-` errors. - `check_conventions.py --base upstream/main`, `check_test_registration.py` and `debt_fold.py --check` pass. - Overlap: `pr_overlap.py` could not compare nine PRs that conflict with `main` and touch `SpirvRuntimeBuffer.cpp`. I read their hunks: #6412 and #7689 (deferred V# type checks), #7642, #10193, #13928 and #13929 (image and sampler tables), #14217 (GLC/DLC synchronization), #18515 (profiling draft) and #20248 (native buffer descriptor tables, reads the stride into its own table) do not change the structured range rule. ### 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) and the licence notice of code adapted from upstream (see AGENTS.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 4070 (driver 32.0.16.2124) and AMD Radeon Graphics Ryzen iGPU 1002:13c0 (driver 32.0.21043.5001), Windows 11 Pro 10.0.26200 - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Structured-buffer accesses now respect record boundaries. Loads that extend beyond a record return zero, while stores that cross a boundary leave bytes outside the record unchanged. * Improved handling of accesses with different record sizes and component widths, preventing incorrect results near record edges and ensuring neighboring records are not affected. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-11-20 11:20:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T11:20:47Z.

Review: APPROVED


Reviewed — looks good

The change at e0d28e66654ef220346785c63d98e8eec5cee5b1 applies full-access bounds to structured buffer accesses; the implementation and the focused test logic I read are consistent with that goal. Nothing blocks this; the points below are optional.

What I ran

No build or tests were run in this review. I read the prepared diff and the changed files at the pinned head through repo_read.py.

Results

Check Result Note
Prepared diff and targeted source review passed Core bounds change and test logic read
Build and execution tests not run Author-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

I read all five files listed as reviewed in manifest.json: BufferStructuredStride.cpp, RuntimeBufferSpans.cpp, ShaderDiskCache.hpp, SpirvRuntimeBuffer.cpp, and fix-shader-structured-buffer-stride-range.md. No files were excluded by files.json in the material returned. I did not run the reported tests, verify the hardware measurements, inspect behavior on PS5 hardware, or verify additional callers beyond the targeted search of byteAddress and address.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5991880336 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21924#pullrequestreview-5991880336). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T11:20:47Z. **Review:** APPROVED --- # Reviewed — looks good The change at `e0d28e66654ef220346785c63d98e8eec5cee5b1` applies full-access bounds to structured buffer accesses; the implementation and the focused test logic I read are consistent with that goal. Nothing blocks this; the points below are optional. ## What I ran No build or tests were run in this review. I read the prepared diff and the changed files at the pinned head through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and targeted source review | passed | Core bounds change and test logic read | | Build and execution tests | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I read all five files listed as reviewed in `manifest.json`: `BufferStructuredStride.cpp`, `RuntimeBufferSpans.cpp`, `ShaderDiskCache.hpp`, `SpirvRuntimeBuffer.cpp`, and `fix-shader-structured-buffer-stride-range.md`. No files were excluded by `files.json` in the material returned. I did not run the reported tests, verify the hardware measurements, inspect behavior on PS5 hardware, or verify additional callers beyond the targeted search of `byteAddress` and `address`. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 15:44:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T15:44:18Z.

Review: APPROVED


Reviewed — looks good

The change applies the whole-access bounds check to structured accesses, and I found no blocking defects in the changed files.

What I ran

Reviewed head 1e4737b0e8dc66e7f60f461368b8f60a376c83dc using repo_read.py for the prepared diff and changed files. No tests or builds were run in this review; the test results in the PR description are author-reported.

Results

Check Result Note
Changed-file review passed All five changed files read
Build and tests not run No execution environment available

Findings

Blocking

None.

Non-blocking

None.

Sources

Reviewed SpirvRuntimeBuffer.cpp, BufferStructuredStride.cpp, RuntimeBufferSpans.cpp, ShaderDiskCache.hpp, and the new debt entry at the pinned head.

Not verified

Build and test results were not independently verified. The PR notes that unaligned dword behavior on the PS5 console remains unmeasured.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995346401 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21924#pullrequestreview-5995346401). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:44:18Z. **Review:** APPROVED --- # Reviewed — looks good The change applies the whole-access bounds check to structured accesses, and I found no blocking defects in the changed files. ## What I ran Reviewed head `1e4737b0e8dc66e7f60f461368b8f60a376c83dc` using `repo_read.py` for the prepared diff and changed files. No tests or builds were run in this review; the test results in the PR description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Changed-file review | passed | All five changed files read | | Build and tests | not run | No execution environment available | ## Findings ### Blocking None. ### Non-blocking None. ## Sources Reviewed `SpirvRuntimeBuffer.cpp`, `BufferStructuredStride.cpp`, `RuntimeBufferSpans.cpp`, `ShaderDiskCache.hpp`, and the new debt entry at the pinned head. ## Not verified Build and test results were not independently verified. The PR notes that unaligned dword behavior on the PS5 console remains unmeasured. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-27 19:51:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T19:51:36Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the reported hardware measurements and test runs support the new structured access bound, with console behavior for certain unaligned accesses still unverified.

What I ran

Reviewed head 3f62cd19161cc60938b6572c8c26462db74afa01 using the prepared diff and pinned repository reader. No tests were run.

Results

Check Result Note
Changed code review passed All five changed files read
Programmatic checks not run Author-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

Console behavior for unaligned dword accesses near a structured record boundary remains unmeasured, as documented by the PR. Build and test results were reported by the author and were not independently run. Read: BufferStructuredStride.cpp, RuntimeBufferSpans.cpp, ShaderDiskCache.hpp, SpirvRuntimeBuffer.cpp, and fix-shader-structured-buffer-stride-range.md. No changed files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6092797716 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21924#pullrequestreview-6092797716). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-27T19:51:36Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the reported hardware measurements and test runs support the new structured access bound, with console behavior for certain unaligned accesses still unverified. ## What I ran Reviewed head `3f62cd19161cc60938b6572c8c26462db74afa01` using the prepared diff and pinned repository reader. No tests were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | All five changed files read | | Programmatic checks | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Console behavior for unaligned dword accesses near a structured record boundary remains unmeasured, as documented by the PR. Build and test results were reported by the author and were not independently run. Read: `BufferStructuredStride.cpp`, `RuntimeBufferSpans.cpp`, `ShaderDiskCache.hpp`, `SpirvRuntimeBuffer.cpp`, and `fix-shader-structured-buffer-stride-range.md`. No changed files were excluded. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-12-03 00:10:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T00:10:03Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the review supports merging.

What I ran

Reviewed head 6afebbfdc244a43c2625b8dc44797fdaae2901b6 against the prepared diff and inspected relevant source with repo_read.py. No build, tests, or negative control were run.

Results

Check Result Note
Changed source review passed All five reviewed files inspected
Build and tests not run Author-reported results not independently verified
Negative control not run No test execution

Findings

Blocking

None.

Non-blocking

None.

Not verified

The changed files marked reviewed in files.json were read; files.json lists no excluded files. Hardware behavior, console behavior, and the author-reported test results were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6161365555 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21924#pullrequestreview-6161365555). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-03T00:10:03Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the review supports merging. ## What I ran Reviewed head `6afebbfdc244a43c2625b8dc44797fdaae2901b6` against the prepared diff and inspected relevant source with `repo_read.py`. No build, tests, or negative control were run. ## Results | Check | Result | Note | |---|---|---| | Changed source review | passed | All five reviewed files inspected | | Build and tests | not run | Author-reported results not independently verified | | Negative control | not run | No test execution | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The changed files marked `reviewed` in `files.json` were read; `files.json` lists no excluded files. Hardware behavior, console behavior, and the author-reported test results were not independently verified. ## To get this to a good state Nothing is required.
Plyxen commented 2026-12-03 14:02:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T14:02:17Z.

Review: APPROVED


I read the diff at 6afebbfdc2. Windows 11, GCC 15.2, merged into main at 6c6b29320fe 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_buffer_structured_stride and the agc_driver_runtime_buffer_spans_* tests: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has a VUID- or SYNC-HAZARD line.
  • Control (the same tree with only this PR's source change taken out): 26 of the 28 fail, for example "structured partial x4 wave64 glc=0 barrier=0 byte=131076 actual=53030503 expected=00000000".

Not checked: a title.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6171278246 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21924#pullrequestreview-6171278246). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-03T14:02:17Z. **Review:** APPROVED --- I read the diff at `6afebbfdc2`. Windows 11, GCC 15.2, merged into `main` at `6c6b29320fe` 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_buffer_structured_stride` and the `agc_driver_runtime_buffer_spans_*` tests: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has a `VUID-` or `SYNC-HAZARD` line. - Control (the same tree with only this PR's source change taken out): 26 of the 28 fail, for example "structured partial x4 wave64 glc=0 barrier=0 byte=131076 actual=53030503 expected=00000000". Not checked: a title. AI-assisted: yes (Claude Code)
ligmaSec commented 2026-12-03 22:13:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:13:50Z.

Review: COMMENTED


The trial merge onto a1b75b0947 was clean. I checked that the structured bound combines the record index check with an access-width check against stride. The fixture varies access width, immediate offset, and wave size. Please keep the debt entry’s distinction between measured RDNA2 unaligned accesses and console dword-alignment order, which remains unmeasured near the end of a record. Paired runtime-buffer validation is pending.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179531193 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21924#pullrequestreview-6179531193). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:13:50Z. **Review:** COMMENTED --- The trial merge onto `a1b75b0947` was clean. I checked that the structured bound combines the record index check with an access-width check against stride. The fixture varies access width, immediate offset, and wave size. Please keep the debt entry’s distinction between measured RDNA2 unaligned accesses and console dword-alignment order, which remains unmeasured near the end of a record. Paired runtime-buffer validation is pending. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/21924:upstream-pr/21924'
git switch 'upstream-pr/21924'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/21924'
git switch 'upstream-pr/21924'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/21924'
git switch 'upstream-pr/21924'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/21924'
git switch 'main'
git merge --squash 'upstream-pr/21924'
git switch 'main'
git merge --ff-only 'upstream-pr/21924'
git switch 'main'
git merge 'upstream-pr/21924'
git push origin 'main'
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!21924
No description provided.