Repository navigation
d3d12_compute_test: release the slot-67 PSO before the device reference check - #1898
Conversation
|
Tested Built with Before, on ctest: 2 of 109 failed on each ( With this PR, One thing that may help the merge decision: your report is from an RX 9070, so this adds that the leak is not specific to that part or to AMD. An RDNA2 iGPU and an Ada NVIDIA card hit the identical assertion on the same AI-assisted (Claude Code). |
…ce check The cleanup before EXPECT(device_proxy_ref_count(device.p) == 1) resets pso but not pso67, the PSO ItsNotRexed#1714 (RT-99) creates through slot 67, which holds a reference to the device like any PSO. On an RX 9070 (Windows) the test fails at that line on main 6a6704d (count 2); with pso67 (and the other PSO/root-signature refs of that scope) released it passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1e1488c to
9e65c21
Compare
|
Tested 1e1488c on Intel Arc Graphics (Meteor Lake-H iGPU, Xe-LPG, 0x8086:0x7d55), Intel driver 32.0.101.6127, Vulkan 1.3.295, Windows 11 Pro 26H2 (build 26300), MSVC + Ninja via On |
|
Tested this PR's diff (as of 1e1488c; the current head 9e65c21 has the same diff) on main 6a6704d on RTX 5070 Ti, NVIDIA 621.24, Windows 11, MSVC 14.44: pass
Build and test run only; I did not review the code. No game data used. AI-assisted: yes. |
|
Tested Heads-up: since the rebase this mostly duplicates what is already on main. #1714 merged AI-assisted (Claude Code). |
|
Tested on Windows 11, RTX 4060 Ti (Ada), NVIDIA 621.24: AI-assisted (Claude Code). |
|
Tested 9e65c21 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, fresh RelWithDebInfo build: ctest 117/117 pass.
AI-assisted (Claude Code). |
What and why
d3d12_computefails onmain6a6704d on an AMD Radeon RX 9070 (Windows 11, MSVC Release):The cleanup before that check resets
pso,root,heap,list,allocator,queueandfence. It doesn't resetpso67, the PSO that #1714 (RT-99) creates through device slot 67, orunknown,unknown67andjunkfrom the same scope.pso67holds a device reference like any PSO, so the count is 2 at the check.Measured by printing the count around each reset: it's 13 before
pso67.reset()and 12 after. Withpso67released, the test ends at 1 and passes.Others report that this test passes on NVIDIA at earlier heads (#1745 status lines, RTX 3070 / RTX 3060). I can't say why that test environment didn't see it. Here it fails on every run of plain
main, and passes 3 of 3 with this change.The change
Four resets in the existing cleanup, in
runtime/test/d3d12_compute_test.cpp:pso67(with a comment),unknown,unknown67,junk. The other three are null after their failure checks or never AddRef the device, so resetting them is harmless and keeps the scope's cleanup complete. Test-only; no runtime change.Tested
RX 9070, Windows 11:
d3d12_compute_testpasses 3/3 with the change; plainmain6a6704d fails at line 515 every run.Disclosure: written with an AI assistant (Claude Code). I reviewed it and ran the tests above.
🤖 Generated with Claude Code