D3D12.X: clear bindings.index_title when IASetIndexBuffer is called with NULL #1324
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1334"
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?
Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T14:54:47Z.
ia_set_index_buffer_x(list, NULL)cleareds.index_buffer = Nonebut lefts.bindings.index_titleset to the previously bound index buffer's title address and size, causing subsequentsync_title_buffersandgeometry_summarycalls to keep referencing the unbound buffer.This clears
s.bindings.index_title = Nonealongsides.index_buffer = None.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs: clears.bindings.index_title = Nonewhenview.is_null()inia_set_index_buffer_x; add unit testia_set_index_buffer_null_clears_index_title(verified failing before the fix).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib ia_set_index_buffer_null_clears_index_title: 1 passed, 0 failed (failed before the fix)Regression run
main:
PR:
Not tested
AI use
list_x.rs, wrote the fix and unit test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T15:04:16Z.
Full-suite run, since this PR has no test report yet. Tested exact head
f421439(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.ia_set_index_buffer_null_clears_index_title.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T15:10:04Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 708 passed, 0 failed, 21 ignored.Thanks!
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T15:56:04Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib -- --test-threads=1: all passed, 0 failed, 21 ignored. (Parallel runs intermittently abort with 0xc0000005 — same harness flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T11:41:22Z.
Test report for head
f421439as pushed (not merged onto currentmain) – NVIDIA, wave32.Tested
.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignoredia_set_index_buffer_null_clears_index_titleran and passedXCL_SAMPLE_*data set (game-data tests not run)Not tested
mainAI use
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:41:54Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:27:39Z.
Triage (#1607) – head
f421439#3366 makes the same one-line change in
list_x.rsia_set_index_buffer_x: it clearsbindings.index_titlewhen the view is NULL. Its testunbinding_viewports_scissors_and_index_buffer_clears_tracked_statechecks the same thing asia_set_index_buffer_null_clears_index_title. #3366 also clears the tracked viewports and scissors on unbind, and it is green and mergeable. Main still lacks the fix. No problems found in this diff.Recommendation: close (superseded by #3366).
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.