Keep command-list reset and indexed draws transactional #117

Merged
bmjask merged 1 commit from upstream-pr/118 into main 2026-11-23 14:13:38 +00:00
bmjask commented 2026-11-23 13:19:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-23T13:19:41Z.


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
<!-- greyfinch-sync:ivall/xcl:issue:6560231733 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/118). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-23T13:19:41Z. --- ## 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
upstream-sync closed this pull request 2026-11-24 06:57:14 +00:00
ivall commented 2026-11-24 07:00:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T14:14:07Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7103686677 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/118#issuecomment-7103686677). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T14:14:07Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!117
No description provided.