Keep command-list reset and indexed draws transactional #118

Manually merged
github merged 1 commit from gh-pr/118/head into gh-pr/118/base 2026-11-26 04:11:00 +00:00
Owner

@⁠bmjask on GitHub · 2026-11-23 13:19 UTC · original
bmjask:codex/draw-reset-correctness → main · +158 −15 · 3 files · 1 commits · merged 2026-11-23 14:13 UTC

Summary

  • call the native command-list Reset before committing tracked recording state
  • preserve allocator, pipeline, query, binding, wait, sparse-write, and UMA ownership state when native reset fails
  • restore the extended command-list vtable after both successful and failed native resets
  • prepare indexed draws before installing the temporary native index buffer
  • restore the previously bound index buffer after an accepted draw; rejected preparation performs no native index-buffer writes

Motivation

This is the small draw/reset correctness slice requested in the review of #112. It is based directly on current main and contains none of the parallel translator, two-pass routing, tracing, or evidence-document work from that PR.

The issues were identified by state-transition audit and reproduced with focused synthetic regressions. No claim is made that they were observed in a named title without executable-derived evidence.

Verification

  • transactional-reset regression: passed
  • indexed-draw routing/restoration regression: passed
  • complete list_x module: 14 passed, 0 failed
  • full serial library suite: 497 passed, 16 ignored, 0 failed
  • independent code review: approved with no blocking findings
  • git diff --check: clean
**@⁠bmjask** on GitHub · 2026-11-23 13:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/118) `bmjask:codex/draw-reset-correctness` → `main` · +158 −15 · 3 files · 1 commits · merged 2026-11-23 14:13 UTC ## Summary - call the native command-list `Reset` before committing tracked recording state - preserve allocator, pipeline, query, binding, wait, sparse-write, and UMA ownership state when native reset fails - restore the extended command-list vtable after both successful and failed native resets - prepare indexed draws before installing the temporary native index buffer - restore the previously bound index buffer after an accepted draw; rejected preparation performs no native index-buffer writes ## Motivation This is the small draw/reset correctness slice requested in the review of #112. It is based directly on current `main` and contains none of the parallel translator, two-pass routing, tracing, or evidence-document work from that PR. The issues were identified by state-transition audit and reproduced with focused synthetic regressions. No claim is made that they were observed in a named title without executable-derived evidence. ## Verification - transactional-reset regression: passed - indexed-draw routing/restoration regression: passed - complete `list_x` module: 14 passed, 0 failed - full serial library suite: 497 passed, 16 ignored, 0 failed - independent code review: approved with no blocking findings - `git diff --check`: clean
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:10:58 +00:00
github manually merged commit c806a0b5bd into gh-pr/118/base 2026-11-26 04:11:00 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 14:14 UTC · original

Merged – thanks for splitting this out of #112. Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129: cargo test --workspace green with the retail samples (shader pack, console DLLs, texture archive), lib tests also with XCL_SPLIT_WAVE64=1; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run.

**@⁠ivall** on GitHub · 2026-11-23 14:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/118#issuecomment-7103686677) Merged – thanks for splitting this out of #112. Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129: `cargo test --workspace` green with the retail samples (shader pack, console DLLs, texture archive), lib tests also with `XCL_SPLIT_WAVE64=1`; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run.
This discussion has been locked. Commenting is limited to contributors.
No description provided.