test(agc): spawn the lazy resolved ABI reference child without a shell #10650

Closed
maximilianfv wants to merge 2 commits from upstream-pr/10650 into main
maximilianfv commented 2026-10-24 15:14:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by maximilianfv on 2026-10-24T15:14:12Z.


What

core/libs/prx/libSceAgcDriver/tests/execution/LazyResolvedAbi.cpp starts its --eager-reference child with std::system, which runs the command through /bin/sh -c. On macOS /bin/sh is a SIP-protected platform binary, so dyld removes every DYLD_* variable when it starts it. The child then loses DYLD_FALLBACK_LIBRARY_PATH, which is how the tests find the LunarG SDK's libvulkan.1.dylib (the DYLD_LIBRARY_PATH setup from #1 is stripped the same way). It fails with Vulkan loader: Failed loading libvulkan.1.dylib. Without ANYPS5_REQUIRE_VULKAN the child skips with "no usable Vulkan device" (exit 77, VulkanTestDevice.hpp:25-26, LazyResolvedAbi.cpp:681); with it, OpenVulkanTestDevice rethrows (VulkanTestDevice.hpp:24) and the child's main returns 1 (LazyResolvedAbi.cpp:723). Either way the parent stops with lazy resolved ABI: the eager reference process failed. This makes agc_driver_lazy_resolved_abi and agc_driver_lazy_resolved_abi_switch_set fail on every macOS setup that points dyld at the Vulkan loader through a DYLD_* variable; a loader installed on dyld's default search path (for example /usr/local/lib) is unaffected.

On hosts other than Windows, the child now starts with posix_spawnp(argv[0], {argv[0], "--eager-reference"}, environ) and waitpid. That passes the parent's environment on unchanged without going through a shell, the same way core/relinker/relinker/tests/RelinkerProcess.hpp already uses posix_spawn(..., environ). The test still requires exit status 0. Following oneandonlydean's review, the wait (WaitExit) retries waitpid while it fails with EINTR, so the test never fails, and its cleanup never deletes the reference and cache paths, while the child is still running. A nonzero exit, a signalled exit and a failed spawn still count as failures. A self-check (CheckWaitExit), run before the eager child starts, covers exit 0, exit 3, a child killed by SIGKILL, a failed spawn, and one interrupted wait. In that last case the forked child blocks on a pipe until a SIGALRM handler, installed without SA_RESTART and aimed at the waiting thread with pthread_kill, writes to it, so the child cannot exit before the signal arrives. Windows keeps std::system. The change is limited to this test. The other self-spawning tests that use std::system (ShaderDiskCache.cpp, AsyncLog.cpp) are left alone because their children pass without loading Vulkan.

Prior art: commit 5546b23a3e in #8658 by @iamthehimansh (2026-10-23, closed) found the same cause in this test. It fixes it differently: it keeps std::system and, on macOS only, adds DYLD_LIBRARY_PATH="..." to the front of the shell command, so it passes on only that one variable (not DYLD_FALLBACK_LIBRARY_PATH). The fix was never split out of #8658, and neither #10362 nor #10419 carries it. #7201 and #7332 do not change this test.

Tested

Apple M1 Pro, macOS 27.0.1, x86_64 build under Rosetta 2, Vulkan through MoltenVK from the LunarG Vulkan SDK 1.4.363. main alone does not build on macOS, so I built in a tree made of mugurc's macOS series (ci/macos-series-2, 27e968974) merged with main at 522e32e3b6, plus these local changes, all identical in both runs: the macOS build parts of #10419, #10540, #10562, #10641, #10642, and two of my unopened fixes (the image table reuse chain-pool check, and an OpMemoryBarrier before 32-bit image atomics in SpirvImageEmitter.cpp). Only this PR's change was toggled. Both runs used ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R '^agc_driver_lazy_resolved_abi' -E 'audio_in|voice' -V.

  • Cause: with DYLD_FALLBACK_LIBRARY_PATH exported, sh -c 'echo $DYLD_FALLBACK_LIBRARY_PATH' prints an empty line. A small C probe shows that posix_spawn passes the variable to the child and system() drops it. A wrapper that exports the variable again inside the child makes the unchanged test pass.
  • Without this change: both tests fail (0/2). The child cannot load libvulkan.1.dylib, and the parent stops with the eager reference process failed.
  • With it: both tests pass (2/2): 6 shaders drew, 5 of them ABI-resolved; ... the lazy run wrote none of the 43 shader cache files eager wrote again.
  • Validation: neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS. The run without the change has 0 Validation Error lines. The run with it has 4, all VUID-VkImageViewCreateInfo-imageViewFormatReinterpretation-04466 (vkCreateImageView, portability subset, imageViewFormatReinterpretation is VK_FALSE on MoltenVK). Each test logs one in the eager child's draw phase and one in the parent's lazy draw phase. Without the change, neither phase runs: the child fails while loading Vulkan, and the parent stops at the check of the child's exit status. So these errors come from image view code that this test never reached before, and this change touches no device or image code.

EINTR follow-up (1e4cc24bb5), on mugurc's macOS series (ci/macos-series-2, 27e968974) merged with main at 2742004ed2, same command, 3 runs each with the previous head 569e4d36da and with this head: both tests pass 2/2 in all six runs, including the new self-check. Every run has the same 4 VUID-VkImageViewCreateInfo-imageViewFormatReinterpretation-04466 errors and no layer-not-found line. Not checked: whether the 50 ms signal can land before the main thread reaches waitpid. The check then still passes, but without exercising the retry.

Not tested on Linux or Windows. Windows keeps the same code path, and on Linux posix_spawnp with environ gives the child the same environment std::system did.

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: Apple M1 Pro, MoltenVK 1.4.2 (Vulkan SDK 1.4.363), macOS 27.0.1
  • AI-assisted: yes (Claude Code found the cause, made the change and wrote this description; I am responsible for every line)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4996574813 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10650). Originally posted by [maximilianfv](https://github.com/maximilianfv) on 2026-10-24T15:14:12Z. --- ### What `core/libs/prx/libSceAgcDriver/tests/execution/LazyResolvedAbi.cpp` starts its `--eager-reference` child with `std::system`, which runs the command through `/bin/sh -c`. On macOS `/bin/sh` is a SIP-protected platform binary, so dyld removes every `DYLD_*` variable when it starts it. The child then loses `DYLD_FALLBACK_LIBRARY_PATH`, which is how the tests find the LunarG SDK's `libvulkan.1.dylib` (the `DYLD_LIBRARY_PATH` setup from #1 is stripped the same way). It fails with `Vulkan loader: Failed loading libvulkan.1.dylib`. Without `ANYPS5_REQUIRE_VULKAN` the child skips with "no usable Vulkan device" (exit 77, `VulkanTestDevice.hpp:25-26`, `LazyResolvedAbi.cpp:681`); with it, `OpenVulkanTestDevice` rethrows (`VulkanTestDevice.hpp:24`) and the child's `main` returns 1 (`LazyResolvedAbi.cpp:723`). Either way the parent stops with `lazy resolved ABI: the eager reference process failed`. This makes `agc_driver_lazy_resolved_abi` and `agc_driver_lazy_resolved_abi_switch_set` fail on every macOS setup that points dyld at the Vulkan loader through a `DYLD_*` variable; a loader installed on dyld's default search path (for example `/usr/local/lib`) is unaffected. On hosts other than Windows, the child now starts with `posix_spawnp(argv[0], {argv[0], "--eager-reference"}, environ)` and `waitpid`. That passes the parent's environment on unchanged without going through a shell, the same way `core/relinker/relinker/tests/RelinkerProcess.hpp` already uses `posix_spawn(..., environ)`. The test still requires exit status 0. Following oneandonlydean's review, the wait (`WaitExit`) retries `waitpid` while it fails with `EINTR`, so the test never fails, and its cleanup never deletes the reference and cache paths, while the child is still running. A nonzero exit, a signalled exit and a failed spawn still count as failures. A self-check (`CheckWaitExit`), run before the eager child starts, covers exit 0, exit 3, a child killed by `SIGKILL`, a failed spawn, and one interrupted wait. In that last case the forked child blocks on a pipe until a `SIGALRM` handler, installed without `SA_RESTART` and aimed at the waiting thread with `pthread_kill`, writes to it, so the child cannot exit before the signal arrives. Windows keeps `std::system`. The change is limited to this test. The other self-spawning tests that use `std::system` (`ShaderDiskCache.cpp`, `AsyncLog.cpp`) are left alone because their children pass without loading Vulkan. Prior art: commit 5546b23a3e in #8658 by @iamthehimansh (2026-10-23, closed) found the same cause in this test. It fixes it differently: it keeps `std::system` and, on macOS only, adds `DYLD_LIBRARY_PATH="..."` to the front of the shell command, so it passes on only that one variable (not `DYLD_FALLBACK_LIBRARY_PATH`). The fix was never split out of #8658, and neither #10362 nor #10419 carries it. #7201 and #7332 do not change this test. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Apple M1 Pro, macOS 27.0.1, x86_64 build under Rosetta 2, Vulkan through MoltenVK from the LunarG Vulkan SDK 1.4.363. `main` alone does not build on macOS, so I built in a tree made of mugurc's macOS series (`ci/macos-series-2`, `27e968974`) merged with `main` at `522e32e3b6`, plus these local changes, all identical in both runs: the macOS build parts of #10419, #10540, #10562, #10641, #10642, and two of my unopened fixes (the image table reuse chain-pool check, and an `OpMemoryBarrier` before 32-bit image atomics in `SpirvImageEmitter.cpp`). Only this PR's change was toggled. Both runs used `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R '^agc_driver_lazy_resolved_abi' -E 'audio_in|voice' -V`. - Cause: with `DYLD_FALLBACK_LIBRARY_PATH` exported, `sh -c 'echo $DYLD_FALLBACK_LIBRARY_PATH'` prints an empty line. A small C probe shows that `posix_spawn` passes the variable to the child and `system()` drops it. A wrapper that exports the variable again inside the child makes the unchanged test pass. - Without this change: both tests fail (0/2). The child cannot load `libvulkan.1.dylib`, and the parent stops with `the eager reference process failed`. - With it: both tests pass (2/2): `6 shaders drew, 5 of them ABI-resolved; ... the lazy run wrote none of the 43 shader cache files eager wrote again`. - Validation: neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`. The run without the change has 0 `Validation Error` lines. The run with it has 4, all `VUID-VkImageViewCreateInfo-imageViewFormatReinterpretation-04466` (`vkCreateImageView`, portability subset, `imageViewFormatReinterpretation` is `VK_FALSE` on MoltenVK). Each test logs one in the eager child's draw phase and one in the parent's lazy draw phase. Without the change, neither phase runs: the child fails while loading Vulkan, and the parent stops at the check of the child's exit status. So these errors come from image view code that this test never reached before, and this change touches no device or image code. `EINTR` follow-up (`1e4cc24bb5`), on mugurc's macOS series (`ci/macos-series-2`, `27e968974`) merged with `main` at `2742004ed2`, same command, 3 runs each with the previous head `569e4d36da` and with this head: both tests pass 2/2 in all six runs, including the new self-check. Every run has the same 4 `VUID-VkImageViewCreateInfo-imageViewFormatReinterpretation-04466` errors and no layer-not-found line. Not checked: whether the 50 ms signal can land before the main thread reaches `waitpid`. The check then still passes, but without exercising the retry. Not tested on Linux or Windows. Windows keeps the same code path, and on Linux `posix_spawnp` with `environ` gives the child the same environment `std::system` did. ### 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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> Apple M1 Pro, MoltenVK 1.4.2 (Vulkan SDK 1.4.363), macOS 27.0.1 - [x] AI-assisted: <!-- yes / no --> yes (Claude Code found the cause, made the change and wrote this description; I am responsible for every line) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-24 15:20:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T15:20:37Z.

Review: APPROVED


Reviewed exact head 569e4d36da693f0ce8b949cb2c3e6df4e640f868. On POSIX, the test now launches itself directly with posix_spawnp and passes the current environ, avoiding the shell that strips DYLD_* variables under SIP; it waits for the child and requires a normal zero exit. Windows retains its prior std::system path. Exact-head diff-check, conventions, and merge-tree checks pass; hosted eligibility, conventions, intake, labels, and report pass, while product builds are skipped. I did not run the macOS GPU test locally; the validation results are the author’s controlled two-run report. No blocking issue found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5638760703 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10650#pullrequestreview-5638760703). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T15:20:37Z. **Review:** APPROVED --- Reviewed exact head `569e4d36da693f0ce8b949cb2c3e6df4e640f868`. On POSIX, the test now launches itself directly with `posix_spawnp` and passes the current `environ`, avoiding the shell that strips `DYLD_*` variables under SIP; it waits for the child and requires a normal zero exit. Windows retains its prior `std::system` path. Exact-head diff-check, conventions, and merge-tree checks pass; hosted eligibility, conventions, intake, labels, and report pass, while product builds are skipped. I did not run the macOS GPU test locally; the validation results are the author’s controlled two-run report. No blocking issue found.
MarcZX10 commented 2026-10-24 16:21:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T16:21:51Z.

Review: APPROVED


Reviewed the complete diff at 569e4d36da. On non-Windows, posix_spawnp launches the same executable directly with the existing environment and waitpid propagates the child exit code; Windows retains its existing path. This matches the repository’s existing POSIX spawn helper. The macOS cause and red/green results in the PR body are detailed and consistent with the change. Local verification: git diff --check, check_conventions.py, and the current-main merge tree pass. I could not run the macOS Vulkan test locally; hosted eligibility, conventions, intake, labels, and report checks pass, while product builds are skipped by policy. The author reports four MoltenVK image-view VUIDs in the newly reached draw phases; those lines concern untouched image-view code and should be tracked separately if no existing issue covers them. The limitation is disclosed in the PR body.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5638937460 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10650#pullrequestreview-5638937460). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T16:21:51Z. **Review:** APPROVED --- Reviewed the complete diff at 569e4d36da693f0ce8b949cb2c3e6df4e640f868. On non-Windows, posix_spawnp launches the same executable directly with the existing environment and waitpid propagates the child exit code; Windows retains its existing path. This matches the repository’s existing POSIX spawn helper. The macOS cause and red/green results in the PR body are detailed and consistent with the change. Local verification: git diff --check, check_conventions.py, and the current-main merge tree pass. I could not run the macOS Vulkan test locally; hosted eligibility, conventions, intake, labels, and report checks pass, while product builds are skipped by policy. The author reports four MoltenVK image-view VUIDs in the newly reached draw phases; those lines concern untouched image-view code and should be tracked separately if no existing issue covers them. The limitation is disclosed in the PR body.
jotitadev commented 2026-10-27 06:33:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-27T06:33:10Z.

Review: COMMENTED


Apple run on a main-based tree, with both MoltenVK builds. The other runs here are Windows.

Machine: Apple M2 Max, macOS 27.2, x86_64 Release build under Rosetta 2.
Tree: main b986c11a34 + the open macOS PRs needed to build and open a device (#10366, #7631, #10659, #10660, #11249, #11358, #10669, #10552, #7804, #10676, #11447, #11437, #11554, #11705) + this PR at 1e4cc24bb5 (clean merge). Control: the same tree without this PR. The loader is found through DYLD_LIBRARY_PATH. ANYPS5_NO_SHADER_CACHE=1, -j1 --timeout 30.
Drivers: MoltenVK 1.4.2 (LunarG SDK 1.4.363.0) and MoltenVK main + SPIRV-Cross #2704.

  • Without this PR, agc_driver_lazy_resolved_abi and agc_driver_lazy_resolved_abi_switch_set fail on both drivers with "the eager reference process failed". The child's own output is "skipped, no usable Vulkan device: Vulkan loader: Failed loading libvulkan.1.dylib", and its dlopen search list has no DYLD_LIBRARY_PATH entry, which matches the cause in the description.
  • With it, both pass 3/3 on both drivers.
  • Full ^agc suite, 1037 tests, MoltenVK 1.4.2: 41 failures without, 39 with. Those two are the only difference, so nothing new fails.
  • Validation layer (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_REQUIRE_VULKAN=1, SDK 1.4.363.0): both pass, the loader output shows the layer inserted in the parent and in the spawned child, and there is no VUID- line. Without this PR the child never gets that far.

GPUs tested: Apple M2 Max (MoltenVK 1.4.2 and MoltenVK main + #2704)

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5663110023 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10650#pullrequestreview-5663110023). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-27T06:33:10Z. **Review:** COMMENTED --- Apple run on a `main`-based tree, with both MoltenVK builds. The other runs here are Windows. **Machine:** Apple M2 Max, macOS 27.2, x86_64 Release build under Rosetta 2. **Tree:** `main` `b986c11a34` + the open macOS PRs needed to build and open a device (#10366, #7631, #10659, #10660, #11249, #11358, #10669, #10552, #7804, #10676, #11447, #11437, #11554, #11705) + this PR at `1e4cc24bb5` (clean merge). Control: the same tree without this PR. The loader is found through `DYLD_LIBRARY_PATH`. `ANYPS5_NO_SHADER_CACHE=1`, `-j1 --timeout 30`. **Drivers:** MoltenVK 1.4.2 (LunarG SDK 1.4.363.0) and MoltenVK `main` + SPIRV-Cross #2704. - Without this PR, `agc_driver_lazy_resolved_abi` and `agc_driver_lazy_resolved_abi_switch_set` fail on both drivers with "the eager reference process failed". The child's own output is "skipped, no usable Vulkan device: Vulkan loader: Failed loading libvulkan.1.dylib", and its dlopen search list has no `DYLD_LIBRARY_PATH` entry, which matches the cause in the description. - With it, both pass 3/3 on both drivers. - Full `^agc` suite, 1037 tests, MoltenVK 1.4.2: 41 failures without, 39 with. Those two are the only difference, so nothing new fails. - Validation layer (`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_REQUIRE_VULKAN=1`, SDK 1.4.363.0): both pass, the loader output shows the layer inserted in the parent and in the spawned child, and there is no `VUID-` line. Without this PR the child never gets that far. GPUs tested: Apple M2 Max (MoltenVK 1.4.2 and MoltenVK main + #2704) Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
kurexw commented 2026-11-16 23:01:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kurexw on 2026-11-16T23:01:41Z.

Review: COMMENTED


Tested on macOS 27.2 / Apple M4 with MoltenVK 1.4.2 (LunarG Vulkan SDK 1.4.363.1, validation layer 1.4.363), x86-64 build under Rosetta. This is the only GPU I tested.

Head 1e4cc24bb5 merged alone onto main 3b17977ba6, compared with 3b17977ba6 itself. I ran the 29 AGC tests that fail on main on this Mac, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer, through ctest --test-dir build -R <those 29> -V, three runs per side. Every Vulkan test logged Insert instance layer "VK_LAYER_KHRONOS_validation" and none logged was not found but was requested by env var VK_INSTANCE_LAYERS.

test main (3 runs) this PR (3 runs)
agc_driver_lazy_resolved_abi Failed, Failed, Failed Passed, Passed, Passed
agc_driver_lazy_resolved_abi_switch_set Failed, Failed, Failed Passed, Passed, Passed

The other 26 tests gave the same result on both sides.

agc_driver_label_after_import_copy is flaky on main as well: main Failed, Passed, Passed, this PR Passed, Failed, Passed. Every failure on either side is the same timing check ("round N: a CPU read after the label that followed the copy found K of 262144 destination bytes not yet copied"), and it varied the same way across the other PRs I tested in the same session, so I don't attribute it to this change.

VUID- lines: identical per test on both sides (30 on main, 30 with this PR, over the three runs). The VUID- lines on both sides are main's existing VUID-VkDeviceCreateInfo-sType-unique (a duplicated VkPhysicalDevicePortabilitySubsetFeaturesKHR in the device pNext chain) and VUID-VkSamplerCreateInfo-samplerMipLodBias-04467; this PR adds none.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5929446323 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10650#pullrequestreview-5929446323). Originally posted by [kurexw](https://github.com/kurexw) on 2026-11-16T23:01:41Z. **Review:** COMMENTED --- Tested on macOS 27.2 / Apple M4 with MoltenVK 1.4.2 (LunarG Vulkan SDK 1.4.363.1, validation layer 1.4.363), x86-64 build under Rosetta. This is the only GPU I tested. Head `1e4cc24bb5` merged alone onto main `3b17977ba6`, compared with `3b17977ba6` itself. I ran the 29 AGC tests that fail on main on this Mac, with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `VK_LOADER_DEBUG=layer`, through `ctest --test-dir build -R <those 29> -V`, three runs per side. Every Vulkan test logged `Insert instance layer "VK_LAYER_KHRONOS_validation"` and none logged `was not found but was requested by env var VK_INSTANCE_LAYERS`. | test | main (3 runs) | this PR (3 runs) | | --- | --- | --- | | `agc_driver_lazy_resolved_abi` | Failed, Failed, Failed | Passed, Passed, Passed | | `agc_driver_lazy_resolved_abi_switch_set` | Failed, Failed, Failed | Passed, Passed, Passed | The other 26 tests gave the same result on both sides. `agc_driver_label_after_import_copy` is flaky on main as well: main Failed, Passed, Passed, this PR Passed, Failed, Passed. Every failure on either side is the same timing check ("round N: a CPU read after the label that followed the copy found K of 262144 destination bytes not yet copied"), and it varied the same way across the other PRs I tested in the same session, so I don't attribute it to this change. `VUID-` lines: identical per test on both sides (30 on main, 30 with this PR, over the three runs). The `VUID-` lines on both sides are main's existing `VUID-VkDeviceCreateInfo-sType-unique` (a duplicated `VkPhysicalDevicePortabilitySubsetFeaturesKHR` in the device pNext chain) and `VUID-VkSamplerCreateInfo-samplerMipLodBias-04467`; this PR adds none.
MarcZX10 commented 2026-11-25 20:29:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T20:29:57Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the findings below are optional.

What I ran

Reviewed head 1e4cc24bb5312df27b423369b14ccaed8a832852. Read the prepared description, commits, manifest and diff, then the complete changed source file and targeted search results through repo_read.py. No commands or tests were run by me; reported macOS runs are author-supplied.

Results

Check Result Note
Diff and changed source review passed One changed file, fully read
Tests run by reviewer not run No build or test execution
Author-reported macOS tests not run Reported as 2/2 across six runs

Findings

Blocking

None.

Non-blocking

None.

Not verified

Linux and Windows behavior, build compatibility, and physical-console behavior were not verified. review/files.json was not provided as a readable review document; the manifest and file listing show one changed file, and that full source was read. macOS test results and the signal timing limitation are from the author’s description, not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6064524475 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10650#pullrequestreview-6064524475). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T20:29:57Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the findings below are optional. ## What I ran Reviewed head `1e4cc24bb5312df27b423369b14ccaed8a832852`. Read the prepared description, commits, manifest and diff, then the complete changed source file and targeted search results through `repo_read.py`. No commands or tests were run by me; reported macOS runs are author-supplied. ## Results | Check | Result | Note | |---|---|---| | Diff and changed source review | passed | One changed file, fully read | | Tests run by reviewer | not run | No build or test execution | | Author-reported macOS tests | not run | Reported as 2/2 across six runs | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Linux and Windows behavior, build compatibility, and physical-console behavior were not verified. `review/files.json` was not provided as a readable review document; the manifest and file listing show one changed file, and that full source was read. macOS test results and the signal timing limitation are from the author’s description, not independently verified. ## To get this to a good state Nothing is required.

Pull request closed

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!10650
No description provided.