d3d12x: add compute list fixture #1176
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1183"
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 lambirou on 2026-11-24T02:54:23Z.
Change
Add a compute command-list fixture that covers behavior beyond XCL-09's single table dispatch.
clear, records two dispatches with different group counts, copies the target to readback and
compares 320 words against a CPU reference.
zero mismatches and hash
0x0afb0285.while four wrong-state cases are rejected with named operation/state pairs.
D3D12Xbox...CommandListexport was found in the public material consulted, so noproduction export is added. The fixture uses the desktop command-list interface through the
XCL-08 device and existing XCL-09 descriptor helpers.
Verification
cmake --build --preset dev --target d3d12_xs_shim d3d12x_compute_list_checkctest --preset dev --no-tests=error -R '^d3d12x_compute_' -VUAV barriers 1, positive mismatches 0.
wrong-state operations (
Dispatch, upload copy, target copy, readback copy) are allrejected with named states.
docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 266 links..git diff --check origin/main...HEAD: clean.Evidence and follow-up
d3d12x/compute-lists, heade28b607, based on4b740f9c(contains XCL-08/09).XCL-09, but adds explicit transitions, clear, copy, two dispatches, an ordered readback and
wrong-state controls.
command-list ABI. No
src/change is included.docs/experiments.mdrecords the exact CTests and the wrong-state/omitted-dispatch controls;the capability matrix row is updated.
d3d12.handthe local XCL-08/09 evidence. No XCL code, table or output.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:03:55Z.
Review: COMMENTED
Technical review on Linux (Windows build and D3D12/WARP/hardware tests were not executed locally).
Checks run (Linux, commit
e28b6077)python3 -B tests/docs_links_check.py: passed (Checked 15 Markdown files and 266 links.).python3 -B tests/bidi_controls_check.py: passed (Checked 968 tracked source, script and build/CI files: no bidirectional controls.).python3 -B tests/gpu_report_format_check.py:Ran 10 tests in 0.004s — OK.python3 -B tests/hardware_reports_check.py:Ran 11 tests in 0.026s — OK.python3 tests/rdna2_tools_check.py:Ran 111 tests ... — OK (skipped=11)(withoutLLVM_LIB).Audit
docs/experiments.md(XCL-10) anddocs/xcl-capability-matrix.mdare updated with exact commands, environment details, and boundaries.tests/d3d12x_compute_list_check.cpp):load_shimfrees theHMODULEon error paths and afterdevice.Reset()inmain;ComPtrmanages D3D12 interfaces without leaks.Map/UnmapD3D12_RANGEarguments match upload/readback directions;ClearUnorderedAccessViewUintpairs the bound shader-visible GPU handle with the non-visible staging CPU handle;static_asserts enforce the 64 + 192 + 64 = 320 word partition.StateAudit(explicitly documented as fixture policy rather than runtime debug-layer enforcement).No blocking issues found in static inspection.