fix(agc): align the layer-window test texels at run time so Windows builds #9304
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9304"
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 kanza-cm on 2026-10-21T17:52:50Z.
What
alignas(65536)on a namespace-scope object asks COFF for a section alignment above its 8192-byte maximum, so the Windows build ofagc_driver_image_array_window_past_layer_limit_testsfails withrequested alignment '65536' exceeds object file maximum 8192, and the full build stops there.Keep the storage at 4 KiB section alignment and round its texel pointer up to 64 KiB inside a buffer with 64 KiB of slack, which is how the other execution tests obtain the guest tiling alignment (
CmaskFastClear.cpp,DcdKeyPresync.cpp). The texels stay 64 KiB aligned; only the storage declaration changes.Tested
docs/dev/BUILD.mdnames), Release,-DANYPS5_RELINKER_ONLY=OFF -DBUILD_TESTING=ON.cmake --build buildstops at 3352/6158 with the alignment error. After: the full build completes.agc_driver_image_array_window_past_layer_limitpasses (1.72 s) on the GPU above.ctest: 1858 of 1861 pass. The three failures (agc_driver_sample_order,agc_driver_sample_order_grid_reference,agc_driver_sample_order_recipe_depth_locations) are depth and sample-location assertions in executables that do not include this file; I will report them separately.tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pyreports no overlap.-DANYPS5_AGC_EXECUTION_TESTS=F16ToF32Unpack;F64FmaSubnormals;RegistrationPrepareShutdown, which builds a skip stub for every other execution test. The default developer build compiles all of them, so the break only appears there, on a machine with Vulkan present.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-21T18:15:52Z.
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/ImageArrayWindowPastLayerLimit.cppL33, L65Imported from boykopovar/AnyPS5. Originally posted by kanza-cm on 2026-10-21T18:50:41Z.
Duplicate of #8310, which fixes the same line with the same run-time alignment. I missed it when opening this one: the overlap check needs
gh, which was not installed at the time. Closing this in favour of #8310; the reproduction below is still useful, so it goes on that pull request instead.Pull request closed