Repository navigation
Clear retired view metadata before reusing descriptor slots - #7
MichaelSmithAI wants to merge 1 commit into
Conversation
|
You are right, and thank you: this is a real ordering bug in
It is in the branch as What I ran with it on an RTX 5070 and WARP: The title was not used in these tests. AI-assisted. |
|
Thanks for cherry-picking the fix into Marvisak#704. The requested allocator regression is in #8. On an RTX 4090 via Wine it caught slot 65536 being leased during cleanup with the old order and passed with your cherry-pick. Closing this delivery PR as requested. |
On the branch for Marvisak#704, a descriptor slot could become available while its former owner was still clearing the alias and stride entries. That cleanup could erase the new command list’s binding.
The patch finishes clearing the retiring list’s entries before publishing the slots as free. The two locks are still acquired separately. A CPU-only allocator check observed that the slot remained reserved throughout cleanup and became available immediately afterward. The Windows GPU test target type-checked from Linux.
On a Linux RTX 4090 we also ran the branch's dynamic-selector fixture in the culling integration tree at
2b2e219, which contains this commit. The Win64 D3D12 test ran under Wine 11.22, vkd3d-proton 3.1 and DXVK 3.1.1. Four buffer readbacks and the slot retirement assertions passed, with the completion marker emitted after the assertions. This exercises dynamic view reads and reuse on the integrated build. The ordering check above is the separate control for the fix itself. Windows-native and title results remain unmeasured. AI-assisted implementation and review.