fix(agc): keep dma-buf import off the NVIDIA proprietary driver #1329
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1329"
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 Dextroid17 on 2026-10-07T23:41:09Z.
What
This is #1289, reproduced first-hand on a different NVIDIA stack (details below).
Since #943 every GPU test fails on the NVIDIA proprietary Linux driver:
ProbeDmaBufImportWriteProtectionruns while each device is set up, and on this driver its import corrupts the device. The import succeeds, the allocation right after it fails withVK_ERROR_OUT_OF_DEVICE_MEMORY, and every later allocation on that device fails with it.This keeps dma-buf import off
VK_DRIVER_ID_NVIDIA_PROPRIETARY, which is option 1 from the report: neither the probe nor 815d2747's shared-backing imports run there. No test provides shared backing, so those imports are not exercised by the suite; they are left off rather than assumed to work on this driver. TheRecordertest device takes the same decision, so a developer build behaves like the shipped one.Tested
Linux (CachyOS, GCC, Release,
BUILD_TESTING=ON), RTX 3080 Ti, driver 615.71.09,mainatdf16c4c2.ctest -j 16ctest -R agc_driver -j 16The 84 failures without the change all carry the report's line:
One difference from the reporting machine: the device is created here (
Vulkan device ready device=…) and the corruption shows up at the next allocation —vkCreateComputePipelines: Vulkan result -13in the first failing test — rather than atvkAllocateDescriptorSets. Same probe line, same trigger.Control that places the probe rather than the imports:
APS5_WRITE_WATCH_IMPORTS=watchskips both probes while leavingcontext.dmaBufImportset, and the suite is green (408/408). So the probe is what breaks the device here.agc_driver_recorder_tests(EXCLUDE_FROM_ALL) still builds after the same change. No CI test is added: CI runs on lavapipe, whose driver id is not NVIDIA, so the new condition never fires there and a test of it there would assert nothing. The measurement above is the evidence instead.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-08T03:10:40Z.
@adriadam10 ready for eyes — keeps the dma-buf import probe off on the NVIDIA proprietary driver, in VulkanDevice.cpp and the duplicate decision in tests/Recorder.cpp. Four checks green.
Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-08T05:28:44Z.
Reproduced on 595.91.07, the driver where #1289 didn't reproduce for @hashaam1217. Here the user can open
/dev/udmabuf(logind ACL), so the probe gets as far as the import.Nobara 44 (Linux 7.2), GCC 16.2.1, Release,
BUILD_TESTING=ON. This PR merged ontomaindf16c4c2.ctest -R agc_driver -j1:maindf16c4c2main+ this PRAll 100 failures on
mainlog[write-watch] dma-buf imports keep write protection: unknown (probe failed at vkAllocateMemory, -2); imported ranges are compared. After that, 70 fail withvkCreateComputePipelines: Vulkan result -13, 29 withVulkan result -2, and one times out. The CPU tests (-E agc_driver) give the same result as onmain: onlyguest_force_tls_destructorfails, on both.So the driver fails the same way on 595.91.07 and on 615.71.09.