fix(tests): allocate 64 KiB dispatch block dynamically #6726
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6726"
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-16T07:41:11Z.
What
Fixes #6716. The execution test declares a static 64 KiB guest block with
alignas(65536), which exceeds PE/COFF's 8192-byte object alignment limit and prevents MinGW from compiling it. Allocate the block withVirtualAllocon Windows andstd::aligned_allocelsewhere; register and release it with the guest-allocation tracker and platform allocator.Tested
65536vs8192alignment error; the modified translation unit passes-fsyntax-only.python3 tools/check_conventions.py --base upstream/mainpassed.python3 tools/pr_overlap.py --branch codex/fix-mingw-misaligned-dispatch-testreported no overlap.git diff --checkpassed.SrtDescriptorEvaluation.cpp:183, where GCC 12 rejects a dependentFlags<MemoryFlags>()expression.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T08:11:16Z.
I found the earlier open PR #6452, which fixes this same MinGW alignment failure in the same test file. Both approaches remove the unsupported static
alignas(65536): #6452 uses a static backing span with a runtime alignment check and reports repeated Windows runs on multiple GPUs; #6726 usesVirtualAlloc/aligned_allocand reports translation-unit checks, with the full executable not run. To avoid parallel fixes, could you coordinate with the #6452 author/maintainers on whether to close this PR in favor of #6452 or consolidate any needed changes? I have not compared the implementations beyond their reported behavior and validation.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T08:39:12Z.
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.cppL25core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cppL25Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T09:20:29Z.
Closing in favor of #6452, as its author requested consolidation there and confirmed the same fixture fix on Windows, Radeon integrated graphics, Linux, and llvmpipe. Their runtime-aligned span also covers the macOS alignment concern. I found no separate platform constraint that requires the dynamic-allocation variant.
Pull request closed