Repository navigation
test(agc): keep held pipeline gates alive for the jobs that poll them - #20497
Conversation
|
Windows runs on AMD and on NVIDIA (second section); I found neither in the description or in the comments. Head Setup: Windows 11 25H2 (build 26200), AMD Radeon 760M integrated graphics (
NVIDIA run, same machine. Head Setup: Windows 11 25H2 (build 26200), NVIDIA GeForce RTX 3050 6 GB (
AI-assisted: yes (build and runs scripted with an AI assistant, on the hardware above). |
|
Ran the focused tests with the Khronos validation layer on Linux and an NVIDIA GPU, since CI runs the GPU tests only on lavapipe and the Tested section is lavapipe only. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
All four tests pass on both sides; every device selected the RTX 4090. This is a plain Release build without ASan, so the stack-use-after-scope from the Tested section does not show on main here; the run only shows the shared-pointer gates change no result and add no validation messages on NVIDIA. No new AI-assisted: yes (Claude Code) |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
What
Three AGC execution tests hold the pipeline with a job that spins on a stack
std::atomic<bool>captured by reference, then release it and leave the scope that owns the flag. The worker thread can still be inside the job's nextloadwhen the flag's storage goes out of scope, so ASan reports the read on every run, with GCC as well as Clang:The flag is now a
std::shared_ptr<std::atomic<bool>>that the job captures by value, the same fix 7e7ce00 made inPipelinedDma.cpp:GdsDmaFill.cpp: the first held block. The two later blocks callAgcDriverWaitIdle_nid_postfix()before their flag leaves scope and are unchanged.GpuWrittenIndirectBufferQueuedWriter.cppandPipelinedClockCopy.cpp:Gateowns the shared flag, its destructor still releases it, and the job capturesgate.release.What the tests check is unchanged.
Tested
Ubuntu 24.04, Ninja, Release,
-DANYPS5_ENABLE_ASAN=ON -fsanitize=undefined,ASAN_OPTIONS=detect_leaks=0,UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1,mainc1dd2b5b50and this change,ctest --repeat until-fail:10:mainmainagc_driver_gds_dma_fillrelease, first runGdsDmaFill.cpp:221, first runagc_driver_gds_dma_fill_privaterelease, first runGdsDmaFill.cpp:221, first runagc_driver_gpu_written_indirect_buffer_queued_writergate, first runGpuWrittenIndirectBufferQueuedWriter.cpp:64, first runagc_driver_pipelined_clock_copygate, first runPipelinedClockCopy.cpp:41, first runLavapipe (
mesa-vulkan-drivers), no GPU.tools/check_conventions.py --base origin/mainandgit diff --check: clean.tools/pr_overlap.py --branch test/agc-gate-lifetime, against 1,547 open pull requests: no overlap.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)