fix: flush guest texture writes before direct submits #36

Closed
github-bot wants to merge 1 commit from gh-pr/36/head into gh-pr/36/base
Owner

@⁠Jess-Doit on GitHub · 2026-11-21 17:58 UTC · original
fix/guest-texture-submit → main · +101 −36 · 4 files · 1 commits · closed without merging

Summary

Fix stale pixels when an idle guest texture is rewritten between direct submits after PresentX. Copy lists check their source and destination resources. Draws and dispatches check all guest-backed textures because shaders can select them through descriptors.

This covers the idle-texture case left open by #2 and #35.

Testing

  • All 25 CTest tests passed on x64 Windows with LLVM-MinGW and WARP, including both new post-present readback tests.
  • With 64 idle 1 MiB textures, median CPU submit time was 23.4 µs for a one-texture copy versus 20.3 µs on main. Empty submits stayed near 19 µs. Shader-heavy submit cost remains unmeasured.
**@⁠Jess-Doit** on GitHub · 2026-11-21 17:58 UTC · [original](https://github.com/Freminet/ScarlettX/pull/36) `fix/guest-texture-submit` → `main` · +101 −36 · 4 files · 1 commits · closed without merging ## Summary Fix stale pixels when an idle guest texture is rewritten between direct submits after `PresentX`. Copy lists check their source and destination resources. Draws and dispatches check all guest-backed textures because shaders can select them through descriptors. This covers the idle-texture case left open by #2 and #35. ## Testing - All 25 CTest tests passed on x64 Windows with LLVM-MinGW and WARP, including both new post-present readback tests. - With 64 idle 1 MiB textures, median CPU submit time was 23.4 µs for a one-texture copy versus 20.3 µs on main. Empty submits stayed near 19 µs. Shader-heavy submit cost remains unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:56:39 +00:00
github-bot closed this pull request 2026-11-26 19:56:39 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.