test(agc): reserve the direct write completion surfaces as one aligned block #15547
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15547"
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 dantdmdarealguy on 2026-11-03T18:35:52Z.
What
agc_driver_direct_write_completionfails on every run on NVIDIA under Windows. Onmain1e658521a0with an RTX 5080 it stops atDirectWriteCompletion.cpp:246:A first-parent bisect puts the start at #13159 (
8009be68d7, GDS on the GPU). Its first parentf01a601be2passes 3/3. This is not a driver bug; the test depended on where its memory landed. Since #13159 theVulkanDeviceconstructor callsPm4::GdsImportable(), which runsGdsAddress(). That maps the 64 KiB GDS at the guest arena base when the device is created, on every GPU. Before, it was mapped on first GDS use, which this test never reaches. The test took each 256 KiB surface from the arena separately and expected them to start at the arena base. Now they start at0x200010000.importRunBoundsonly joins neighbouring ranges into a power-of-two block whose edges match range edges, so no run forms. Each surface is imported alone (host import of 0x200010000+0x40000, 16 imports of 0.25 MiB), below the 1 MiB settle floor. Asd3b2d56b20notes, a device that settles Windows imports and keeps them watched drops the results of such an import by design. The Intel UHD 770 has no second queue to settle on, uses comparisons, and passes either way. Linux never takes this path.The test now carves its 32 surfaces out of one 8 MiB reservation aligned to its own size. They form one settled import (
host import of 0x200800000+0x800000) whatever else the arena holds. The test still guards the behaviour it was written for: withStorageTexture::StampKeepingNewerResultsreduced toreturn stamp();, the changed test fails with 15 of 15 dropped.Tested
Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742) and Intel UHD Graphics 770 (
ANYPS5_GPU), WinLibs GCC 15.2.0, Release.ctest -R '^agc_driver_direct_write_completion$'on the RTX 5080:mainfailed 3/3 (9, 10 and 12 of 15 dropped). The change passed 16/16.mainand the change pass.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1(ctest -V, non-elevated), on both GPUs, formainand the change:was not found but was requested by env var VK_INSTANCE_LAYERS.VUID-errors onmainor with the change.mainfailed (12 dropped) and the change passed. UHD 770: both passed.cmake --build(all andlibs),ctest -R "^agc_driver_direct_write_completion$|patched_libraries",tools/check_test_registration.pyandtools/check_conventions.pyall pass.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)