Skip to content

d3d12: coalesce redundant placed texture queue waits - #277

Draft
Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/coalesce-texture-waits-20261126
Draft

Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/coalesce-texture-waits-20261126

Conversation

@Valdi320

@Valdi320 Valdi320 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Review goal: Reduce duplicate waits on the same monotonic private fence without changing required synchronization.

Scope: One helper and three separate wait phases; retain maximum eligible tick per fence. Existing self/completed/label-blocked filters remain; never merge different fences or phases.

Evidence: Head 6ea8f39 on e76ff6a: 3 helper tests, six no-GPU groups, 17/17 selected NVIDIA GPU gates; Nick's independent AMD full check 120/120. Synthetic 8,192 textures x 3 timelines reduce 24,576 candidate waits to 3; no measured retail driver-call or FPS gain. Does not fix #215.

Review order: second. Independent of other pending PRs. Current main has moved; evidence refers to the tested head, not a new combined run. Earlier integration evidence.

@Valdi320

Copy link
Copy Markdown
Contributor Author

Follow-up integration branch https://github.com/Valdi320/TuxBox/tree/f42521dbeeedc52673c0a6d7bf497766bcf4b820 combines #277 with #258 at 5a795cb and the #235 review follow-up at 2f7e0f8. Rebuilt XMem and D3D12 providers and Lanes fixture. RTX 4080/GE-Proton11-14: 19/19 selected guest gates (all 14 Lanes self-tests, heaps/tables/queues and both bindless compute trials) plus 6/6 isolated memory cases passed, no stand-ins for the memory and bindless controls. This is a joint synthetic result, not a title or AMD performance result. No changes to the other authors' branches.

@NickStallman

Copy link
Copy Markdown
Contributor

AMD run of 6ea8f39 (this PR's head): the full python tuxbox.py check --adapter 1002:13c0 --proton … --prefix … --windows-dxc … passed, 120 gates. Every group passed: Lanes and the self-tests, the D3D12 regression controls and the translator on the GPU.

AMD Raphael iGPU (1002:13c0, RDNA2), RADV (Mesa 26.0.8), GE-Proton11-14, Linux 7.0. This is a correctness run only; I took no timing measurements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ProjectScarlett: 30 s main-thread watchdog (exe+0x23CF683) at the story intro from cross-queue label-wait deadlocks

2 participants