runtime: keep mesh close tracing outside close-state extraction #3642

Merged
R0Y00 merged 1 commit from upstream-pr/3642 into main 2026-11-30 19:51:18 +00:00
R0Y00 commented 2026-11-30 19:39:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-30T19:39:39Z.


Refs #3638, #3635 and #3507.

tests/startup_close_guard_check.py compiles the stand-in's close-state assignments in a device-free C++ fixture. The Mesh86 log added in #3638 landed inside that extracted block. The fixture could no longer compile because its state has no trace recording field. This is the failure in the Linux job for #3635.

Move the same log after failed-close bookkeeping and before the allocator lock is released. The trace still reports the recording and Close result under the lock. The fixture and its submission and reset assertions stay intact.

Verification

  • Ran the existing tests/startup_close_guard_check.py driver locally with a temporary MSVC adapter for its c++ -std=c++17 -o … invocation. The pre-fix source reproduced the compile failure. The patched source passed the submission and reset assertions, and the existing guard-removal control failed as expected.
  • git diff --check passed.
  • The hosted Linux run will exercise the unmodified driver with its usual compiler.
  • Rebuilt d3d12_xs_shim in Release and passed all three presenter-fence CTests (CPU, WARP and RTX 4060 Laptop GPU).
cmake --build $build --target d3d12_xs_shim --parallel 4
ctest --test-dir $build --no-tests=error -j1 -R '^startup_presenter_fence(_warp|_hardware)?$' --output-on-failure
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5572441437 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3642). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-30T19:39:39Z. --- Refs #3638, #3635 and #3507. `tests/startup_close_guard_check.py` compiles the stand-in's close-state assignments in a device-free C++ fixture. The Mesh86 log added in #3638 landed inside that extracted block. The fixture could no longer compile because its state has no trace recording field. This is the failure in the [Linux job for #3635](https://github.com/R0Y00/Xbox2Windows/actions/runs/46494762335/job/142116561394). Move the same log after failed-close bookkeeping and before the allocator lock is released. The trace still reports the recording and Close result under the lock. The fixture and its submission and reset assertions stay intact. ## Verification - Ran the existing `tests/startup_close_guard_check.py` driver locally with a temporary MSVC adapter for its `c++ -std=c++17 -o …` invocation. The pre-fix source reproduced the compile failure. The patched source passed the submission and reset assertions, and the existing guard-removal control failed as expected. - `git diff --check` passed. - The hosted Linux run will exercise the unmodified driver with its usual compiler. - Rebuilt `d3d12_xs_shim` in Release and passed all three presenter-fence CTests (CPU, WARP and RTX 4060 Laptop GPU). ```powershell cmake --build $build --target d3d12_xs_shim --parallel 4 ctest --test-dir $build --no-tests=error -j1 -R '^startup_presenter_fence(_warp|_hardware)?$' --output-on-failure ```
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
R0Y00/Xbox2Windows!3642
No description provided.