Capture every visible render-target pixel after the submitting queue fence #1165
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1172"
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 R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T02:26:19Z.
Refs #1137. Depends on #1135. This review base pins its corrected CI commit
5691fe81. Retarget to main after the parent lands.The diagnostic previously sampled every fourth texel, inferred pixel size from aligned row pitch and mapped after a fixed number of presents. All three can invalidate a black-frame diagnosis. The change retains the readback until the actual submitting queue completes, drops abandoned recordings and writes full-resolution single-sample RGBA8/BGRA8 UNORM and sRGB BMPs. The file count reflects successful writes. Final publication requires a subsequent present.
Windows 11 build 26200.9974, Release, debug layer off.
ctest --test-dir out/verify --no-tests=error -R 'startup_(draw_bmp|dump_fence)' -Vpassed both registered tests. The fence fixture cancelled two recordings and published one submitted copy with value0x9df81342. The BMP fixture checks all 21 pixels of a padded 7×3 image with one bright pixel between the old sample points, both channel layouts and both transfer encodings, plus rejection of a short row and unsupported format. These checks validate the capture path; the first black draw from the application remains under investigation.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:51:28Z.
Review: COMMENTED
Review of
0549d05cf241e398edc72757d2b075ead2d20805(Linux, scoped tocc147c2f..0549d05c):src/startup_stubs/draw_dump_tracking.h+d3d12_xs_device.cpp+d3d12_draw.inl:DrawReadbackscleanly separates command-list recording lifetime from submission viadiscard()on reset and a per-submission queue fence inexecute(), guarding againstUINT64_MAX(device removal) intake_completed().src/startup_stubs/draw_bmp.h: writes full-resolution 32-bit BMPs for single-sample{R8G8B8A8,B8G8R8A8}_UNORM{_SRGB}targets with row-pitch handling and size overflow checks.tests/startup_draw_bmp.cppandtests/startup_dump_fence.cpp: cover pitch padding, format rejection, discarded/unsubmitted lists, unrelated queues, and gated fence completion.py_compileontests/startup_stub_check.pyandtools/startup/*.py,docs_links_check.py(253 links),bidi_controls_check.py(969 files),gpu_report_format_check.py(10 tests), andxgameruntime_table_check.py.startup_draw_bmp/startup_dump_fence_warpexecution rely on CI.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:51:30Z.
Review: COMMENTED
Retest on Linux at commit
3e8b3391(delta0549d05c..3e8b3391; Windows build/tests were not executed locally).Findings
main(9dee245d), with3e8b3391as an empty commit (ci: run start-up draw checks on the main pull request).CMakeLists.txt,docs/startup-runtime.md,src/startup_stubs/d3d12_draw.inl,src/startup_stubs/d3d12_xs_device.cpp,src/startup_stubs/draw_bmp.h,src/startup_stubs/draw_dump_tracking.h,tests/startup_draw_bmp.cpp,tests/startup_dump_fence.cpp) are unchanged in behavior from0549d05c; no new issues found.Checks run (Linux,
3e8b3391)/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (16Markdown files,269links)./root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (1009tracked files)./root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py:Ran 10 tests in 0.005s—OK.Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T03:30:35Z.
Test report for
0549d05c: Windows 11 Pro 26300, MSVC 14.50 (VS 18 Build Tools), Ninja, Release, debug layer off.cmake --build out/build/release: built with no errors or failures.ctest --no-tests=error -R startup: 7/7 passed, 0 failed, no skips.Not tested yet: a run with the console executable. Runs on this machine currently run out of system commit before the menus (#1199). I will add the executable result here once that is resolved.
AI-assisted (Claude Code).