D3D12.X: unbind vertex buffer slots when views is null #1160
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1160
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1160"
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?
@WTactic on GitHub · 2026-11-24 12:41 UTC · original
WTactic:fix/vertex-buffer-null-unbind→main· +120 −2 · 1 files · 1 commits · openWhen
IASetVertexBufferswas called withviews == NULL, the call was forwarded to the native command list, but the list's tracked bindings (vertex_buffersandvertex_titles) retained the old views. Later state restores (restore_bindings) would then resurrect the unbound vertex buffers.Purge unbound slots (
start..start + n) from bothvertex_buffersandvertex_titleson null view arrays, and remove slots whose view has a zero location or size. Add a unit test verifying unbinding and thatrestore_bindingsdoes not replay cleared slots.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs: purge unbound vertex buffer slots on null views or zero sizes, and unit testnull_vertex_buffer_unbinds_slots_and_does_not_restore_them.Tested
rustc 1.97.1, release/debugcargo test -p xcl --lib null_vertex_buffer_unbinds_slots_and_does_not_restore_them: 1 passed, 0 failedRegression run
main(1d027e5):PR (
54ece90):Not tested
AI use
@Anon64 on GitHub · 2026-11-24 12:52 UTC · original
Regression run for this PR: head
dccd28e, based onmain47efa2e. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s.Tested
cargo test -p xcl --release --lib -- null_vertex_bufferondccd28e: 1 passed, 0 failed.main
47efa2e:this PR:
No device removals or crashes; 96 % of main's frames, 107 % of its peak commit.
Not tested: the whole suite; whether the title reaches the changed path in these 60 s.
Written with Claude Code (Claude Opus 5.5) from runs on this machine.
@bjarngard on GitHub · 2026-11-24 13:48 UTC · original
Test report for head
dccd28e(AMD)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPEDnull_vertex_buffer_unbinds_slots_and_does_not_restore_thempassed when run alone on the AMD adapterNot tested: retail titles (no smoke run), RDNA3/RDNA4.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
@JoaoPauluu on GitHub · 2026-11-24 14:21 UTC · original
A regression run under Wine on Linux, on a retail title.
Tested
x86_64-pc-windows-gnu.dccd28eas it is (merge base47efa2e) andmain47efa2e, no uncommitted changes. Retail title 1.0.2.1,scripts/linux/smoke.sh(#257) for 60 s, no input. Twelve runs in a row,mainfirst and last, other PRs in between.Regression run
main (first run):
this PR:
The last
mainrun: 1425 frames,exit: 0x0, no device removal, no crash. Under Wine,peak commitreads 0 MB, so these blocks do not check memory.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 08:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@DavidM1911 on GitHub · 2026-11-26 03:52 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.