Repository navigation
D3D12.X: the count check's buffer stays INDIRECT_ARGUMENT between checks - #3009
voiceovarian1-max wants to merge 1 commit into
Conversation
The indirect count check (`indirect_guard`) moved its count buffer to INDIRECT_ARGUMENT for each ExecuteIndirect and back to COMMON after it: two transitions per check, each a barrier the GPU waits at. The buffer now stays INDIRECT_ARGUMENT from one check to the next on a list (`check_in`, `run_keeping`, `guard_out_ia`) and goes back only when something else needs it. GPU test included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Native Windows 11 + NVIDIA RTX 3060 verification of PR #3009Tested PR #3009 head \d6f30c1809b5350f09c492cc97ffb29088c56cc3\ on native Windows 11 with native D3D12 hardware execution on Ampere (RTX 3060 12 GB, native wave32). Environment
Test Results (\hle::d3d12x::indirect_guard::tests)Ran targeted \indirect_guard\ tests on the physical NVIDIA D3D12 device:
Result: 5 passed; 0 failed; 0 ignored; 0 skipped (0.32s). Observations
AI disclosure: Testing executed independently on physical hardware; report drafted with agent assistance. |
|
I checked a two-command-list boundary on exact head
All three runs signaled completion and produced the expected 67 groups. The output therefore does not demonstrate visible corruption; the debug-layer result identifies a state-tracking issue for a batched submission. XCL can submit multiple command lists in one driver call. I did not test a physical GPU, retail incidence, performance, or an author fix. AI use: OpenAI Codex with GPT-6.2 Astra built and ran the fixture; Codex reviewed and prepared this report. |
|
Follow-up to the cross-list state error: I tested a fixture-only mitigation on head The stock batch control emitted two state errors. The close-time transition emitted none for forward and reversed list submission, replay after fence completion, or lists discarded and reset before submission. Each run executed the expected 134 groups. This is not a complete production fix. Deferred segments, mid-list splits, and AI use: OpenAI Codex with GPT-6.2 Astra built and ran the fixture; Codex reviewed and prepared this report. |
|
No open or merged PR makes this change. The 27 lines shared with #3099, #3111, #3112, #3335 and #3361 are the root-signature boilerplate of an AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
For nvidia-dev. The indirect count check (
indirect_guard) moved its buffer to INDIRECT_ARGUMENT before each checked ExecuteIndirect and back to COMMON after it. That is two transitions per check, each a barrier the GPU waits at. A retail title's world makes ~1,640 checked ExecuteIndirects a frame. The buffer now stays INDIRECT_ARGUMENT from one check to the next on a list (check_in,run_keeping,guard_out_ia). It goes back in the same call as the next check's UAV barrier, so a checked ExecuteIndirect takes 2 barriers instead of 3.What is in it
hle/d3d12x/indirect_guard.rs:check_in,run_keeping,guard_out_ia. New GPU testchecked_execute_indirects_in_one_list_keep_the_buffer_between_them: three checks on one list (in range, garbage, in range) each run their own checked counts (7 + 60 groups).hle/d3d12x/bind.rs: the ExecuteIndirect path uses them.Tested
x86_64-pc-windows-gnu, release. Headd6f30c18on nvidia-dev3f39671d.cargo test -p xcl --lib -- --test-threads=4):3f39671d: 1691 passed, 8 failed, 28 ignoredD3DCompileis Wine's own HLSL compiler and refuses its program (E5005 Load3 on RWByteAddressBuffer). The existingan_execute_indirect_with_garbage_counts_runs_no_groupsfails on nvidia-dev for the same reason. D3D12.X: DXC compiles XCL's own HLSL when D3DCompile refuses it #3018 (DXC whenD3DCompilerefuses a program) fixes both.indirect_guardtests with Microsoft'sd3dcompiler_47.dll(WINEDLLOVERRIDES=d3dcompiler_47=n): 5 passed, 0 failed, including the new test and both garbage-count tests.Regression run
scripts/smoke.ps1needs Windows, and we only have Linux. A Windows smoke run on nvidia-dev and on this head would be welcome.Not tested
AI use
🤖 Generated with Claude Code