Repository navigation
test(agc): reserve the direct write completion surfaces as one aligned block - #15547
Open
dantdmdarealguy wants to merge 1 commit into
Open
dantdmdarealguy wants to merge 1 commit into
dantdmdarealguy wants to merge 1 commit into
Conversation
…d block The test took each surface from the guest arena separately and relied on them starting at the arena's first free address on a settled host import block boundary. Since boykopovar#13159 the device maps the 64 KiB GDS at the arena base when it is created, so every surface starts 64 KiB later, no aligned run of surfaces forms, and each surface is imported alone below the 1 MiB settle floor. On a device that settles Windows imports and keeps them watched (NVIDIA) the results of such an import are dropped by design, and the test failed with 9 to 13 of 15 runs dropped. The surfaces are now carved out of one reservation aligned to its own size, so they form one settled import whatever else the arena holds.
Contributor
✅ NVIDIA GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (1, not counted against this PR)Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)Validation IDs already present on main (4 IDs in 447 tests)Skipped (4)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. As d3b2d56 notes, 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)