Repository navigation
Conversation
A GPU hang in a retail title costs a whole game run per experiment. The plan is to write one draw or dispatch of a named shader to disk during a run and to run it again alone, in seconds (this stack: the format, the hook, the textures, xcl replay). This is the format only: capture::manifest, the manifest.json of a capture folder (the call, shader files, the PC pipeline description, root arguments, fixed-function state, targets, memory ranges, textures, views, samplers, descriptor slots, what was left out) with Manifest::write and Manifest::read. Structures D3D12 gives as plain data are kept as hex of their bytes. Nothing writes a capture yet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A GPU hang in a retail title costs a whole game run per experiment. This stack writes one draw or dispatch of a named shader to disk during a run (
XCL_CAPTURE_DRAW) and runs it again alone, in seconds (xcl replay). Part of #675.This first part is the format of a capture only; nothing writes one yet.
What is in it
hle/d3d12x/capture/manifest.rs: themanifest.jsonof a capture folder (the call, shader files, the PC pipeline description, root arguments, fixed-function state, targets, memory ranges, textures, views, samplers, descriptor slots, what was left out),Manifest::write/Manifest::readwith a version check. D3D12 structures are kept as hex of their bytes.hle/d3d12x/capture.rs,mod.rs: the module.Tested
cargo test --release -p xcl --lib -- capture::: 4 passed, 0 failedcargo test --release -p xcl --lib -- hle::d3d12x:: --test-threads=4: 220 passed, 1 failed, 2 ignored; SKIPPED:shader_cache_session::tests::rejected_create_shader_cache_session_falls_back_to_working_in_memory_session(no GPU).hle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_itfails on this Windows 10 machine in the mixed run, on the first branch of the stack already (which changes no runtime code); it passed in another run of the same tree: order-dependent, not from this stackcargo test --workspace --no-fail-fast -- --test-threads=4ond41c111: 1263 passed, 6 failed, 46 ignored. The failures:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 540),hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory(Tests: align XMemVirtualQuery buffers and verify CPU flags #650) and the e2e teststest_title_runs_and_game_folder_is_untouchedandtest_title_draws_with_a_root_signature_under_the_debug_layer, which fail onmainon this machine too;hle::d3d12x::list_x::tests::a_reset_while_the_last_submit_runs_records_on_another_pc_listandhle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memoryfailed in this whole-suite run and passed alone (3 of 3 runs); they fail the same way in some whole-suite runs of the first branch of the stack, which runs no new code, and the second one on amainrun on this machine. SKIPPED: the six per-lane cases off16_programs_on_the_gpu/f32_programs_on_the_gpu(refused),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)Regression run
scripts/smoke.ps1, 60 s, release builds, the same title on the same day.main:
PR:
Not tested
windowscrate structure layouts (the manifest keeps their bytes).AI use
🤖 Generated with Claude Code