fix(agc): allocate indirect arguments test block dynamically on Windows #6478
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6478"
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 leorossi2005 on 2026-10-15T16:56:14Z.
What
GpuIndirectArgumentsMisalignedWriterAheaddefined a static array withalignas(BlockBytes)whereBlockBytesis 65536. On Windows, the PE-COFF format limits section alignment in object files to 8192 bytes, which caused MinGW GCC to fail compilation with:Allocate the guest block dynamically through a
GuestBlockhelper usingVirtualAllocon Windows andstd::aligned_allocon Linux, matching the other execution tests in the library (UnimportedLabelOrder.cpp,GlobalLoads.cpp).Tested
Tested on Windows 11 x86-64 (MinGW GCC 15.2.0, Release):
agc_driver_gpu_indirect_arguments_misaligned_writer_aheadcompiles cleanly and passes (1/1 Test #449 ... Passed 0.92 sec).tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T17:29:11Z.
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.cppL25core/libs/prx/libSceAgcDriver/tests/execution/GpuIndirectArgumentsMisalignedWriterAhead.cppL25Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-15T17:38:40Z.
@leorossi2005 This corrects the same
GpuIndirectArgumentsMisalignedWriterAheadalignment failure as earlier #6452 (unchanged head4fe92c9c2). That PR uses a2 * BlockBytes - 1zeroed static backing array, an aligned span and a runtime alignment assertion, retaining the original +4 argument offset and GPU assertions. It has a full required-toolchain Windows build, 25 fresh fixture passes per RTX 5080 / AMD Radeon Graphics, plus independent RTX 4080 / Intel UHD 770 fixture checks. The new macOS review there is explicitly standalone snippet evidence, not a fixture run.I propose consolidating this fixture correction in #6452; these two changes are alternatives and should not be stacked. If the dynamic allocation addresses a case that the aligned span misses, please point it out so we can resolve the choice. #6498's full Windows validation currently uses #6452 as its separate test-build dependency. I have added this overlap to #6452's body; no agreement is assumed yet.
AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by leorossi2005 on 2026-10-15T18:15:48Z.
Thanks for pointing it out, @Amoenus
Apologies for the duplicate PR — I had specifically searched open PRs for the fixture name before submitting, but for some reason GitHub's search didn't surface #6452 at the time.
Thanks also to @jotitadev for the macOS findings and for confirming that both approaches address the issue there as well (via
std::aligned_allocor the runtime-aligned span). I originally went with the dynamicGuestBlockpattern (VirtualAlloc/aligned_alloc) to followUnimportedLabelOrder.cppandGlobalLoads.cpp, but since #6452 was submitted earlier, keeps static backing, and already has extensive multi-vendor test coverage and downstream dependencies (#6498), consolidating in #6452 makes complete sense.Closing in favor of #6452
Pull request closed