Repository navigation
test(agc): skip vouched lookups where host imports report GPU reads as writes - #7916
Conversation
|
Two findings on exact head Ubuntu 24.04, Ryzen 9 9950X, GCC 13.3, Release. NVIDIA RTX 3090 / 595.99.02, gfx1036 iGPU / RADV RAPHAEL_MENDOCINO / Mesa 25.2.8, and lavapipe. Each driver was selected with its ICD; loader output confirms the actual device. The new gate also removes passing NVIDIA coverage. Fresh
The NVIDIA skip prints if (probe.failure == nullptr && probe.writtenAfterSubmit == 0) return true;The actual RADV and NVIDIA JUnit skips fail the Linux skip checker. With those two temporary line changes, the four-test The original file is restored byte-for-byte and rebuilt, and the checkout is clean. Repeating the restored head reproduces NVIDIA/RADV 77/77/77 and lavapipe 0/0/0, confirming the predicate control rather than a production or device-selection change. No production fix, title result, Windows/macOS result or validation-layer check is claimed. The adjusted predicate is verified on these devices only; logs, JUnit and the two-line control are retained. |
|
@simonbbby thank you, both are right. Fixed in
Re-run on the RX 7900 XT (RADV NAVI31, Mesa 25.2.8) and lavapipe, 3 times each,
I have no NVIDIA GPU, so the NVIDIA cell rests on your run with the same predicate. AI-assisted: yes |
|
AMD and Intel Windows data: with this PR, the UHD 770 still fails Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release,
The two devices' write-watch lines match the split:
On Windows, AI-assisted: yes (Claude Code) |
…s writes On RADV, importing host memory and reading it from the GPU marks the pages as written in the write watch. The test forces APS5_WRITE_WATCH_IMPORTS=watch, so the vouch refuses the table and supplyWords is never called. Probe host-import write protection on Linux, as the Windows path already does, and skip when a GPU read reports writes or the probe fails. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
dfacadf to
3440a17
Compare
|
@savvaniss thank you, your reading of I have rebased this PR onto AMD Radeon RX 7900 XT (RADV NAVI31), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release, full build.
No new If you rerun on current AI-assisted: yes (Claude Code) |
What
agc_driver_image_table_vouched_lookupsfails on every RADV device reported in #7766 (RDNA4, RDNA3, RDNA2 iGPU, Vega). It passes on lavapipe and NVIDIA. The cause is in the test's assumption, not in the vouch path (full trace in this comment):APS5_WRITE_WATCH_IMPORTS=watchand keeps its table in a private block, which reaches the GPU as a host pointer import.4 of 4 scratch pages written after a GPU read, 4 after the importand therefore compares those imports. The forcedwatchkeeps trusting the watch anyway.ShaderMemory::Vouchedsees it changed,ResourceMaterializer::Unwritten()fails, andsupplyWordsis never called. The column is reused by comparison instead, so the second assertion still passes. The cached variant ends withshared.size() == 0, and the third assertion sees zero vouch counters.Two things that do not fix it: importing the block before the table is stamped (the GPU read alone moves the generation), and allocating the block through
GuestArenaon Linux (still private, still a host pointer import).The change is in the test only. Before
--vouched-lookupsruns, it callsProbeImportWriteProtectionon the test device. It skips (77) with the probe's numbers when a GPU read of a host import reports writes, or when the probe fails. A write reported at the import alone does not skip: NVIDIA reports one there, but none after a GPU read, and the fixture passes on it (thanks to @simonbbby for catching the first version's wider gate). The skip is worded as a device limitation, sotools/check_skips.py --job linuxaccepts it.PrepareImportWatchcan't be used for this: with the forcedwatchit returnsWatchwithout probing, and on lavapipe the probe answersUnwatchbecause of GPU writes, which this test never makes to the table. Devices without host imports are unchanged. Windows keeps its own gate from #7929, which this branch is rebased on; the Linux gate sits next to it. The other modes of the same binary are untouched.On RADV, the vouched path is then not exercised by this test. It still runs on lavapipe (CI) and NVIDIA. Covering it on RADV would need the block to go through the dma-buf import, which the probe reports as watched on this machine. That would be a separate change.
Tested
Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release, on
main85029a00fand on this branch, then again after rebasing ontomaindbac9fa15(same results, with the validation layer). Command:ctest --test-dir build -R "image_table_(vouch|cache)" -VwithANYPS5_REQUIRE_VULKAN=1, run 3 times per device.mainvouched_lookupsthe device reports 4 of 4 host-imported pages written after a GPU read)vouched_lookupsvouch_queued_draws,image_table_cache,image_table_cache_boundsValidation:
ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, layer 1.3.275 (loaded; checked withVK_LOADER_DEBUG=layer), no "was not found but was requested" line. On both devices,mainand this PR log onlyVUID-VkDeviceCreateInfo-pNext-pNextfrom device creation, and the PR adds no newVUID-. It logs fewer on RADV because the test now skips earlier.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)🤖 Generated with Claude Code