feat(recompiler): read the scalar aperture sources as values #5005

Merged
fdfawef324 merged 1 commit from upstream-pr/5005 into main 2026-10-14 06:16:57 +00:00
fdfawef324 commented 2026-10-13 07:51:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-13T07:51:28Z.


What

Fixes #3803. Since #1940, a shader that reads src_shared_base, src_shared_limit, src_private_base or src_private_limit (scalar source codes 235-238) as a value was refused with the scalar aperture source ... is not modelled. These four sources now return the 64-bit apertures that the flat routing from #1190 already uses. A flat pointer built from them goes to LDS or scratch, and comparing against the limits gives the hardware's ordering.

Source 64-bit value 32-bit read
235 src_shared_base 0x80000000_00000000 0x00000000
236 src_shared_limit 0x80000000_ffffffff 0xffffffff
237 src_private_base 0x70000000_00000000 0x00000000
238 src_private_limit 0x70000000_ffffffff 0xffffffff
  • Read width. A 64-bit read (s_mov_b64, a 64-bit VALU source such as v_cmp_*_u64, or a lane mask in wave64) returns the whole value. A 32-bit read returns the low dword, as on gfx1030 and gfx1035. Titles take the high dword from an s_mov_b64, the same way LLVM does.
  • One definition. SharedApertureHigh and PrivateApertureHigh moved from SpirvMemoryInstructions.cpp to RdnaInstructionDecoder.hpp. RdnaApertureSourceValue builds the four values from them, so the routing (SplitAperture) and the reads cannot diverge. The routing itself is unchanged.
  • Paths. readRawU32 returns the low dword. readU32Pair returns low and high, which covers readU64, readF64Bits and every 64-bit scalar or VALU source. readMask reads the 64-bit value as a lane mask. Before, a wave64 lane mask would have used the low dword for every lane. readScalarCode 235-238 goes through the same values.
  • TechnicalDebt (docs/dev/debt/shader.md):
    • The stale entry that said decoding throws (fixed by #1940) is removed.
    • The "value is not modelled" entry now states the model, its sources and what is inferred.
    • The flat aperture bases entry notes that the sources read the same two high dwords.

Sources:

  • RDNA 2 ISA guide:
    • §5.2, the scalar operand table: 235-238 are SHARED_BASE, SHARED_LIMIT, PRIVATE_BASE and PRIVATE_LIMIT, "Memory Aperture definition. Values are affected by system addressing mode: 32 or 64 bit".
    • §5.8, hardware register 15 SH_MEM_BASES: bits [15:0] are the private base and [31:16] the shared base, so each base is a 16-bit field.
    • §9.3: the FLAT aperture check, with the address size (PTR32) as a per-wave mode.
  • LLVM AMDGPU (llvm-project 064297491a6e):
  • Linux KFD (torvalds/linux 24a19b953e2a):
  • Mesa/ACO (0ad3997b) does not constrain this. ACO never emits these operands, and it does not use FLAT loads or stores on GFX10 (src/amd/compiler/README-ISA.md). A search of src/amd finds no use of the aperture sources.
  • Hardware readouts: gfx1030 by @Tamalero on #3803 and gfx1035 by @adriadam10 on #1190 show the same layout. A 32-bit read gives 0 or 0xffffffff, and the 64-bit read gives the window.

Not measured on a console: the PS5's two high dwords. They are the values #1190 inferred from GTA V's traversal addresses (shared 0x8000 and private 0x7000 in the high 16 bits), and this PR reads exactly those values so that reads and routing agree. The wave is assumed to use 64-bit addressing (PTR32 clear). The debt entry records both.

Tested

Windows Server 2025, NVIDIA GeForce RTX 3060 (driver 591.86), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. The full run was on main c2565f014. After rebasing onto a24da9029, the aperture, agc_driver_flat_apertures_* and agc_driver_flat_store tests were run again, and all 17 pass.

  • New test agc_driver_flat_aperture_sources (tests/execution/FlatApertureSources.cpp). One compute dispatch per wave size (wave32, and wave64 where the device can run it). Every lane checks:
    • the s_mov_b32 and s_mov_b64 (low and high) result of each of the four sources;
    • an LDS round trip: a flat_store_dword through a pointer whose high dword comes from src_shared_base, read back with ds_read_b32 and flat_load_dword;
    • a scratch round trip: the same through src_private_base, read back with scratch_load_dword and flat_load_dword;
    • eight v_cmp_le_u64/v_cmp_ge_u64 compares of those pointers against the bases and limits, including the limit itself and the first address past it;
    • v_cndmask_b32 with each source as the lane mask.
  • aperture_sources. It asserted the refusal and now asserts the translated constants for s_mov_b32 and s_mov_b64 of each source.
  • Red without the change. The source changes were reverted and the tests kept:
    • agc_driver_flat_aperture_sources fails with ShaderRecompiler::Recompile: TranslationContext::readRawU32: the scalar aperture source src_shared_base is not modelled.
    • aperture_sources aborts with the same message.
    • With the change, both pass (0.8 s and 0.1 s).
  • Routing check. Changing only SplitAperture to compare with SharedApertureHigh + 1 makes the new test fail with BDA access failed: address=0x8000000000000000. The test therefore pins that the value read and the routing match.
  • Full ctest: 1039 of 1040 passed and 7 were skipped for the environment (agc_driver_stencil_ref_export and the video_out_flip_* tests). This includes agc_driver_flat_apertures_0-13 and every other flat, global, BDA, LDS, scratch, scalar and recompiler test. The one failure is log_macros. It links only libc, and it fails the same way in another worktree build on this machine without this change.
  • tools/check_conventions.py --base upstream/main: all checks passed. tools/check_test_registration.py: none new.
  • Titles. I did not run a title with this change. Three titles stop at this refusal:
    • Ghost of Yōtei (PPSA26344, #3803) with src_shared_base;
    • GTA V (PPSA04264) with src_shared_base in local runs;
    • Marvel's Wolverine (PPSA03671) with src_shared_base and src_private_base in local runs.

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
  • Unblocks: #3803 (Ghost of Yōtei PPSA26344); GTA V PPSA04264 and Marvel's Wolverine PPSA03671 stop at the same refusal
  • GPUs tested: NVIDIA GeForce RTX 3060 12 GB, driver 591.86 (32.0.15.9186), Vulkan 1.4.325, Windows Server 2025 10.0.26100
  • AI-assisted: yes (written with Claude Code; reviewed and tested by me)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4840117063 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5005). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-13T07:51:28Z. --- ### What Fixes #3803. Since #1940, a shader that reads `src_shared_base`, `src_shared_limit`, `src_private_base` or `src_private_limit` (scalar source codes 235-238) as a value was refused with `the scalar aperture source ... is not modelled`. These four sources now return the 64-bit apertures that the flat routing from #1190 already uses. A flat pointer built from them goes to LDS or scratch, and comparing against the limits gives the hardware's ordering. | Source | 64-bit value | 32-bit read | |---|---|---| | 235 `src_shared_base` | `0x80000000_00000000` | `0x00000000` | | 236 `src_shared_limit` | `0x80000000_ffffffff` | `0xffffffff` | | 237 `src_private_base` | `0x70000000_00000000` | `0x00000000` | | 238 `src_private_limit` | `0x70000000_ffffffff` | `0xffffffff` | - **Read width.** A 64-bit read (`s_mov_b64`, a 64-bit VALU source such as `v_cmp_*_u64`, or a lane mask in wave64) returns the whole value. A 32-bit read returns the low dword, as on gfx1030 and gfx1035. Titles take the high dword from an `s_mov_b64`, the same way LLVM does. - **One definition.** `SharedApertureHigh` and `PrivateApertureHigh` moved from `SpirvMemoryInstructions.cpp` to `RdnaInstructionDecoder.hpp`. `RdnaApertureSourceValue` builds the four values from them, so the routing (`SplitAperture`) and the reads cannot diverge. The routing itself is unchanged. - **Paths.** `readRawU32` returns the low dword. `readU32Pair` returns low and high, which covers `readU64`, `readF64Bits` and every 64-bit scalar or VALU source. `readMask` reads the 64-bit value as a lane mask. Before, a wave64 lane mask would have used the low dword for every lane. `readScalarCode` 235-238 goes through the same values. - **TechnicalDebt** (`docs/dev/debt/shader.md`): - The stale entry that said decoding throws (fixed by #1940) is removed. - The "value is not modelled" entry now states the model, its sources and what is inferred. - The flat aperture bases entry notes that the sources read the same two high dwords. **Sources:** - [RDNA 2 ISA guide](https://gpuopen.com/download/rdna2-shader-instruction-set-architecture.pdf): - §5.2, the scalar operand table: 235-238 are `SHARED_BASE`, `SHARED_LIMIT`, `PRIVATE_BASE` and `PRIVATE_LIMIT`, "Memory Aperture definition. Values are affected by system addressing mode: 32 or 64 bit". - §5.8, hardware register 15 `SH_MEM_BASES`: bits [15:0] are the private base and [31:16] the shared base, so each base is a 16-bit field. - §9.3: the FLAT aperture check, with the address size (PTR32) as a per-wave mode. - LLVM AMDGPU (llvm-project `064297491a6e`): - [`SIRegisterInfo.td` L245-L269](https://github.com/llvm/llvm-project/blob/064297491a6e4175d08595ea292c79ec13d4686b/llvm/lib/Target/AMDGPU/SIRegisterInfo.td#L245-L269): aperture registers are 64 bit, and their low 32 bits are always zero for a base and -1 for a limit. - `getBaseSegmentAperture` in [`AMDGPULegalizerInfo.cpp` L2492-L2505](https://github.com/llvm/llvm-project/blob/064297491a6e4175d08595ea292c79ec13d4686b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp#L2492-L2505) and [`SIISelLowering.cpp` L9453-L9462](https://github.com/llvm/llvm-project/blob/064297491a6e4175d08595ea292c79ec13d4686b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp#L9453-L9462): LLVM copies `SRC_SHARED_BASE`/`SRC_PRIVATE_BASE` as 64 bits and keeps the high half, because a 32-bit read "only returns zeroes". - [`AMDGPUUsage.rst` L1187-L1196](https://github.com/llvm/llvm-project/blob/064297491a6e4175d08595ea292c79ec13d4686b/llvm/docs/AMDGPUUsage.rst?plain=1#L1187-L1196): in 64-bit mode the apertures are 2^32 bytes and 2^32-aligned. - Linux KFD (torvalds/linux `24a19b953e2a`): - [`kfd_flat_memory.c` L285-L306](https://github.com/torvalds/linux/blob/24a19b953e2a3d0ea5a8c4951a0ab8f32720c907/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c#L285-L306): `MAKE_*_APP_LIMIT(base)` is `(base & 0xFFFFFFFF00000000) | 0xFFFFFFFF`, and on gfx9+ the bases are set by the top 16 address bits. - [`kfd_device_queue_manager_v10.c` L51-L57](https://github.com/torvalds/linux/blob/24a19b953e2a3d0ea5a8c4951a0ab8f32720c907/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c#L51-L57): each `SH_MEM_BASES` field is `base >> 48`. So with a 16-bit field of 0x8000, the high dword is 0x80000000. - Mesa/ACO (`0ad3997b`) does not constrain this. ACO never emits these operands, and it does not use FLAT loads or stores on GFX10 (`src/amd/compiler/README-ISA.md`). A search of `src/amd` finds no use of the aperture sources. - Hardware readouts: gfx1030 by @Tamalero on #3803 and gfx1035 by @adriadam10 on #1190 show the same layout. A 32-bit read gives 0 or 0xffffffff, and the 64-bit read gives the window. **Not measured on a console:** the PS5's two high dwords. They are the values #1190 inferred from GTA V's traversal addresses (shared 0x8000 and private 0x7000 in the high 16 bits), and this PR reads exactly those values so that reads and routing agree. The wave is assumed to use 64-bit addressing (PTR32 clear). The debt entry records both. ### Tested Windows Server 2025, NVIDIA GeForce RTX 3060 (driver 591.86), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. The full run was on `main` c2565f014. After rebasing onto a24da9029, the aperture, `agc_driver_flat_apertures_*` and `agc_driver_flat_store` tests were run again, and all 17 pass. - **New test `agc_driver_flat_aperture_sources`** (`tests/execution/FlatApertureSources.cpp`). One compute dispatch per wave size (wave32, and wave64 where the device can run it). Every lane checks: - the `s_mov_b32` and `s_mov_b64` (low and high) result of each of the four sources; - an LDS round trip: a `flat_store_dword` through a pointer whose high dword comes from `src_shared_base`, read back with `ds_read_b32` and `flat_load_dword`; - a scratch round trip: the same through `src_private_base`, read back with `scratch_load_dword` and `flat_load_dword`; - eight `v_cmp_le_u64`/`v_cmp_ge_u64` compares of those pointers against the bases and limits, including the limit itself and the first address past it; - `v_cndmask_b32` with each source as the lane mask. - **`aperture_sources`.** It asserted the refusal and now asserts the translated constants for `s_mov_b32` and `s_mov_b64` of each source. - **Red without the change.** The source changes were reverted and the tests kept: - `agc_driver_flat_aperture_sources` fails with `ShaderRecompiler::Recompile: TranslationContext::readRawU32: the scalar aperture source src_shared_base is not modelled`. - `aperture_sources` aborts with the same message. - With the change, both pass (0.8 s and 0.1 s). - **Routing check.** Changing only `SplitAperture` to compare with `SharedApertureHigh + 1` makes the new test fail with `BDA access failed: address=0x8000000000000000`. The test therefore pins that the value read and the routing match. - **Full ctest:** 1039 of 1040 passed and 7 were skipped for the environment (`agc_driver_stencil_ref_export` and the `video_out_flip_*` tests). This includes `agc_driver_flat_apertures_0`-`13` and every other flat, global, BDA, LDS, scratch, scalar and recompiler test. The one failure is `log_macros`. It links only `libc`, and it fails the same way in another worktree build on this machine without this change. - `tools/check_conventions.py --base upstream/main`: all checks passed. `tools/check_test_registration.py`: none new. - **Titles.** I did not run a title with this change. Three titles stop at this refusal: - Ghost of Yōtei (PPSA26344, #3803) with `src_shared_base`; - GTA V (PPSA04264) with `src_shared_base` in local runs; - Marvel's Wolverine (PPSA03671) with `src_shared_base` and `src_private_base` in local runs. ### Checklist - [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] Unblocks: #3803 (Ghost of Yōtei PPSA26344); GTA V PPSA04264 and Marvel's Wolverine PPSA03671 stop at the same refusal - [x] GPUs tested: NVIDIA GeForce RTX 3060 12 GB, driver 591.86 (32.0.15.9186), Vulkan 1.4.325, Windows Server 2025 10.0.26100 - [x] AI-assisted: yes (written with Claude Code; reviewed and tested by me) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fdfawef324 commented 2026-10-13 09:56:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-13T09:56:15Z.


I ran a title with this change. The build was my integration branch, main plus open PRs, with this PR cherry-picked.

Marvel's Wolverine (PPSA03671) logged the scalar aperture source src_shared_base is not modelled and the same for src_private_base without this PR. With it, neither refusal appears. The title gets further and now stops on an unrelated vkAllocateMemory failure (VK_ERROR_OUT_OF_DEVICE_MEMORY) on a 12 GB GPU.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6142999081 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5005#issuecomment-6142999081). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-13T09:56:15Z. --- I ran a title with this change. The build was my integration branch, `main` plus open PRs, with this PR cherry-picked. Marvel's Wolverine (PPSA03671) logged `the scalar aperture source src_shared_base is not modelled` and the same for `src_private_base` without this PR. With it, neither refusal appears. The title gets further and now stops on an unrelated `vkAllocateMemory` failure (`VK_ERROR_OUT_OF_DEVICE_MEMORY`) on a 12 GB GPU.
xXPBSXx commented 2026-10-14 00:24:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-14T00:24:37Z.


Windows test of #5005: Windows 10 (19045), MinGW-w64 GCC 15.2, Release, ninja -j 4, ctest called directly, GPU selected by the execution tests: NVIDIA GeForce RTX 4080 SUPER (Selected GPU log line). Tree: main feddf7f4c + merge of PR head 823cdc0c4c06b60ba1118ac3c4a457992a482282 (local merge d2d34b987).
16 ctest targets, 3 runs each, exit code 0 in all 48 runs: agc_driver_flat_aperture_sources, agc_driver_flat_apertures_0 to _13 (14 targets) and aperture_sources. Logs: rtx5005_*_N.log.
Not tested: that the new tests fail without the change (no baseline run), the AMD GPU (present, not selected), other ctest targets, Linux, a title run (PPSA26344).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158068299 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5005#issuecomment-6158068299). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-14T00:24:37Z. --- Windows test of #5005: Windows 10 (19045), MinGW-w64 GCC 15.2, Release, `ninja -j 4`, ctest called directly, GPU selected by the execution tests: NVIDIA GeForce RTX 4080 SUPER (`Selected GPU` log line). Tree: `main` `feddf7f4c` + merge of PR head `823cdc0c4c06b60ba1118ac3c4a457992a482282` (local merge `d2d34b987`). 16 ctest targets, 3 runs each, exit code 0 in all 48 runs: `agc_driver_flat_aperture_sources`, `agc_driver_flat_apertures_0` to `_13` (14 targets) and `aperture_sources`. Logs: `rtx5005_*_N.log`. Not tested: that the new tests fail without the change (no baseline run), the AMD GPU (present, not selected), other ctest targets, Linux, a title run (PPSA26344). AI-assisted (Claude Code).
fdfawef324 commented 2026-10-14 00:29:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T00:29:20Z.


Thanks for the independent run. This adds Windows 10 / RTX 4080 SUPER evidence on feddf7f4c: 16 targets, three runs each, 48/48 passed. I am keeping your stated limits alongside the result: no baseline failure check, AMD, Linux or title-run coverage in this report.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158125650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5005#issuecomment-6158125650). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-14T00:29:20Z. --- Thanks for the independent run. This adds Windows 10 / RTX 4080 SUPER evidence on feddf7f4c: 16 targets, three runs each, 48/48 passed. I am keeping your stated limits alongside the result: no baseline failure check, AMD, Linux or title-run coverage in this report.
xXPBSXx commented 2026-10-14 01:50:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-14T01:50:05Z.


Correction to my Windows test above: I wrote that the GPU was shown by a Selected GPU log line, but that line was not in the ctest logs of those runs (ctest without -V does not print the output of passing tests). Re-run with ctest -V on main 1633843382ecb1434ac76ac0c4d4655d88bb241f + this PR's current head c2931c18fad759a2af20733c56a3b12930baaba7 (the head has moved since my first run on 823cdc0c4): the log shows Selected GPU name=NVIDIA GeForce RTX 4080 SUPER, and agc_driver_flat_aperture_sources exits with code 0 (1 run). The 16 targets of my first comment were not re-run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159087591 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5005#issuecomment-6159087591). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-14T01:50:05Z. --- Correction to my Windows test above: I wrote that the GPU was shown by a `Selected GPU` log line, but that line was not in the ctest logs of those runs (ctest without `-V` does not print the output of passing tests). Re-run with `ctest -V` on `main` `1633843382ecb1434ac76ac0c4d4655d88bb241f` + this PR's current head `c2931c18fad759a2af20733c56a3b12930baaba7` (the head has moved since my first run on `823cdc0c4`): the log shows `Selected GPU name=NVIDIA GeForce RTX 4080 SUPER`, and `agc_driver_flat_aperture_sources` exits with code 0 (1 run). The 16 targets of my first comment were not re-run. AI-assisted (Claude Code).
cookie42073-cmd commented 2026-10-14 02:44:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by cookie42073-cmd on 2026-10-14T02:44:21Z.


Hey everyone, I ran another Windows check of this PR, including the before-and-after controls. The final run passed all 40 selected tests on an RTX 4070 SUPER.

Tested PR head c2931c18fad759a2af20733c56a3b12930baaba7 merged into main 52d134c0282920d58a9ec07da51db08350e3d6dd. That is the pinned tree for these results; newer main commits were not tested.

Windows 11 build 26300, NVIDIA driver 617.42, WinLibs GCC 15.2 r7, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON. The verbose logs confirm Selected GPU name=NVIDIA GeForce RTX 4070 SUPER ... subgroup=32. Vulkan was required. CTest set ANYPS5_NO_SHADER_CACHE=1, and the new aperture GPU test also sets request.useCache=false.

  • With the PR: full build passed. The final test selection passed 40/40 with no skips, including aperture_sources, agc_driver_flat_aperture_sources, all 14 agc_driver_flat_apertures_* partitions (126 checked rows), and the related FLAT/LDS and shader tests.
  • Baseline control: kept both test sources unchanged and restored the six changed production files from the pinned main. The targeted rebuild succeeded; both new tests failed with src_shared_base is not modelled.
  • Routing control: restored the PR, then changed only the shared comparison in SplitAperture to SharedApertureHigh + 1u. The CPU test passed, while the GPU test failed at BDA address 0x8000000000000000 with an unwritten 0xdeadbeef result.
  • Restored check: removed that deliberate fault, verified the production files matched the original bytes, rebuilt, and ran the final 40 tests. Test-source hashes stayed unchanged throughout, and the checkout is clean.

One environment wrinkle: the initial sandbox run was 39/40 because agc_shader_disk_cache could not write its initial cache entry. After restoration, that test failed again in the sandbox and passed on desktop with the same executable hash and no intervening rebuild. I have not identified the exact failing Windows file operation. The disk-cache test enables its own isolated cache.

The new GPU test ran guest wave32 and wave64 on host subgroup32. These results check the emulator's aperture values and routing together; they do not measure the PS5 high words or PTR32 state. I did not run a game, Linux, other GPUs, or the whole CTest suite.

Thanks for the work on this. AI-assisted with Codex; the logs, controls, restored source and binary hashes were independently checked in a second review.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159718856 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5005#issuecomment-6159718856). Originally posted by [cookie42073-cmd](https://github.com/cookie42073-cmd) on 2026-10-14T02:44:21Z. --- Hey everyone, I ran another Windows check of this PR, including the before-and-after controls. The final run passed all 40 selected tests on an RTX 4070 SUPER. Tested **PR head `c2931c18fad759a2af20733c56a3b12930baaba7` merged into main `52d134c0282920d58a9ec07da51db08350e3d6dd`**. That is the pinned tree for these results; newer main commits were not tested. Windows 11 build 26300, NVIDIA driver 617.42, WinLibs GCC 15.2 r7, Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON`. The verbose logs confirm `Selected GPU name=NVIDIA GeForce RTX 4070 SUPER ... subgroup=32`. Vulkan was required. CTest set `ANYPS5_NO_SHADER_CACHE=1`, and the new aperture GPU test also sets `request.useCache=false`. - **With the PR:** full build passed. The final test selection passed **40/40 with no skips**, including `aperture_sources`, `agc_driver_flat_aperture_sources`, all 14 `agc_driver_flat_apertures_*` partitions (126 checked rows), and the related FLAT/LDS and shader tests. - **Baseline control:** kept both test sources unchanged and restored the six changed production files from the pinned main. The targeted rebuild succeeded; both new tests failed with `src_shared_base is not modelled`. - **Routing control:** restored the PR, then changed only the shared comparison in `SplitAperture` to `SharedApertureHigh + 1u`. The CPU test passed, while the GPU test failed at BDA address `0x8000000000000000` with an unwritten `0xdeadbeef` result. - **Restored check:** removed that deliberate fault, verified the production files matched the original bytes, rebuilt, and ran the final 40 tests. Test-source hashes stayed unchanged throughout, and the checkout is clean. One environment wrinkle: the initial sandbox run was 39/40 because `agc_shader_disk_cache` could not write its initial cache entry. After restoration, that test failed again in the sandbox and passed on desktop with the same executable hash and no intervening rebuild. I have not identified the exact failing Windows file operation. The disk-cache test enables its own isolated cache. The new GPU test ran guest wave32 and wave64 on host subgroup32. These results check the emulator's aperture values and routing together; they do **not** measure the PS5 high words or PTR32 state. I did not run a game, Linux, other GPUs, or the whole CTest suite. Thanks for the work on this. AI-assisted with Codex; the logs, controls, restored source and binary hashes were independently checked in a second review.
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!5005
No description provided.