Repository navigation
Conversation
|
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
bmjask
left a comment
There was a problem hiding this comment.
P2 capture-integrity issue: unhex silently drops malformed pairs/odd nibbles (manifest.rs:229-231; tests explicitly accept "zz10" and "0fa"), and Manifest::read validates only JSON/version. Corrupt descriptors become None/default views, while padded malformed PSO blobs can still be consumed as shifted raw structures. A diagnostic capture can silently replay a different pipeline/view. Make unhex return Result and reject odd/non-hex input; validate fixed-size hex fields on read and add malformed-capture rejection tests. Current Windows check also fails.
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>
d41c111 to
69e0883
Compare
|
Thanks, fixed in the force-pushed commit:
|
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
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.unhexrefuses an odd number of digits or non-hex text;Manifest::readchecks every hex field, that D3D12 structures have this build's size, that root arguments are whole dwords, and that every file it names is a plain name in the capture folder (plain_name). Tests:a_damaged_manifest_is_refused,plain_names_only.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on69e0883: 1423 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_untouched,test_title_draws_with_a_root_signature_under_the_debug_layerandtest_title_runs_under_the_debug_layer_with_dred, which fail onmaine1d84b7on this machine too (its whole suite: 1416 passed, 7 failed, 46 ignored);hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memoryfailed in this whole-suite run; both fail in the whole-suite run ofmaine1d84b7on this machine too. 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