fix(tests): allocate 64 KiB dispatch block dynamically #6829
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6829"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T13:33:13Z.
What
Replace the test's static
alignas(65536)argument block with a dynamically allocated 64 KiB-aligned guest block. MinGW's PE/COFF object format limits section alignment to 8192 bytes, so the existing declaration prevents this test from compiling on Windows.The helper uses
VirtualAllocon Windows andstd::aligned_allocelsewhere, registers the allocation withGuestAllocations, and unregisters/frees it through RAII.Closes #6716.
Tested
git diff --checkpasses.python3 tools/check_conventions.py --base upstream/mainpasses locally.SrtDescriptorEvaluation.cpp:183(read.read->Flags<MemoryFlags>()) with GCC 12 before reaching this test. No GPU test run was possible here.Checklist
main; no duplicate PR implements this fixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T14:39:36Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cppL25core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cppL25Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cppImported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T16:24:49Z.
Review: COMMENTED
The description has no GPU run of the changed test, so here is one on Linux. It cannot show the Windows stack fix itself, only that the test still builds and passes with the 64 KiB block allocated dynamically.
Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same machine. Ubuntu 26.04, i7-8700, GCC 15.2, Release,
BUILD_TESTING=ON. Head633078d1emerged intomain452494439(clean merge). It builds with GCC 15.2. TheSrtDescriptorEvaluation.cpperror from GCC 12 does not occur here.agc_driver_gpu_indirect_arguments_misaligned_writer_ahead: passes 3/3 on the RTX 3070 and 2/2 on lavapipe, each ending withgpu indirect arguments misaligned writer ahead test passed(not a skip).Not run: Windows, where the stack overflow happens.
GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T17:37:47Z.
Thanks for running the changed test on both the RTX 3070 and lavapipe, and for keeping the Windows-specific limitation explicit. The 3/3 and 2/2 device runs confirm the dynamically allocated block still exercises and passes the test on Linux; the Windows runner remains the evidence for the original alignment issue.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T00:10:29Z.
Closing in favour of #6452, which fixes the same MinGW alignment failure with a static aligned span and has Windows runs on three GPUs; this is the dynamic-allocation approach that #6726 was already closed for on the 16th.
Pull request closed