Repository navigation
Conversation
bc40f7a to
bc677ec
Compare
kotekompotek
left a comment
There was a problem hiding this comment.
Correct: thread-groups conversion uses the bound pipeline's own group size with div_ceil per axis, rejects zero/overflow (>65535 groups or u32::MAX threads) into a dropped dispatch rather than an invalid call, and binds the ORIGINAL thread dims into the shader's user data — which is what DispatchX's console callers pass and read. Partial-group handling via the bounded plan is covered by the hardware test that asserts only requested threads write. The const-generic THREADS split keeps the group-dispatch path unchanged. LGTM.
bc677ec to
274cdad
Compare
|
Tested
The PR's four original readbacks also reproduced on hardware (65 / 128 / 128 / 4,160). As a negative control on The attached patch adds the synthetic 3D regression test. To repeat it on Windows, apply it to the PR branch and run |
|
Independent Windows WARP verification of
AI-assisted with Codex (gpt-6.2-sol). Claude Code (claude-opus-5-5) prepared the initial WARP guard and main comparison harness. Synthetic data only. |
|
Hardware result at head 274cdad, cherry-picked onto a stack that also carries the console flow for wave64 programs (#439 / #2214), RTX 3080 Ti, driver 621.24. With the two together, With that fix (and #1273): one 7-minute run in play, no device removal; in the scene at a window, GPU step median 299 ms against 307 ms before (one run each). Ran with AI assistance (Claude Code). |
|
Verified
Looks solid and ready to merge. |
|
Automated triage for the maintainers. Verdict: merge candidate. Two notes for the maintainer:
CI: passing. Recommending a look, not approving. Generated by Claude Code |
Dukestar69
left a comment
There was a problem hiding this comment.
Tested merged onto origin/main (63bcca4) on Windows 11 x64:
cargo test -p victory-shader --test dispatch_threads: 2 passed, 0 failed.cargo test -p victory-gpu --lib/cargo clippy -p victory-gpu --all-targets -- -D warnings: fails to compile against currentorigin/main(63bcca4) becausedepth_bounds_test.rs(landed onmain) initializespipeline::Translatedwithout the newthreadsfield:error[E0063]: missing field `threads` in initializer of `pipeline::Translated` --> crates\victory-gpu\src\pipeline\depth_bounds_test.rs:58:43cargo xtask policy: 194 files ok.
Rebasing onto current main and adding threads: None in crates/victory-gpu/src/pipeline/depth_bounds_test.rs:58 should make the test target build cleanly.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
|
Note 🤖 Gemini 4 Neon responding on behalf of brainbudt Thanks @Dukestar69 — rebased onto |
274cdad to
c2ed5d1
Compare
fuzeofficlal
left a comment
There was a problem hiding this comment.
Tested c2ed5d14 locally on Windows 11 (RTX 5090 + WARP, VICTORY_D3D12_DEBUG=1, and Windows SDK 10.0.26100.0\x64\dxil.dll).
Verification:
cargo xtask policyandcargo clippy -p victory-shader -p victory-gpu --tests -- -D warnings(default and--all-features): clean.cargo test -p victory-shader --test dispatch_threadswith SDKdxil.dll: 2/2 passed (both full and partial-dispatch DXIL containers validate cleanly withIDxcValidator, including bothUserDataCBV handle annotations fixed up byreplace_const).list::dispatch_tests::thread_dimensions_cover_partial_groups_on_each_axis: passed.list::dispatch_tests::dispatch_x_writes_only_requested_threads -- --ignored: passed on RTX 5090, RTX 5090 +VICTORY_D3D12_DEBUG=1(--features diagnostics), and WARP +VICTORY_D3D12_DEBUG=1(--features diagnostics).placed_uav_tests,pipeline::make::tests(2/2), anddraw::tests(20/20 on RTX 5090): all passed.
The entry-guard structure is sound: ir::build_bounded already rejects branches to block 0 so moving guest inputs/body to block 1 has no entry-PHI hazard, library::name keys PSOs by serialized root signature and DXIL bytes so full and partial pipelines do not collide, State::bind_dispatch rebinds by raw COM pointer when toggling between full and partial variants on one guest pipeline, exact multiples stay on the unguarded pipeline (preserving shaders with s_barrier), and divergent barriers in partial dispatches are cleanly refused. Looks ready to merge.
…s in direct DispatchX (Marvisak#2750)
…atch merge Reconcile four cross-PR interactions across the 32 merged PRs: - Marvisak#2953/Marvisak#2975 vs Marvisak#2811: read `self.mode16.round` in `div_fixup.rs` and `div_scale.rs` - Marvisak#2841 vs Marvisak#2177: pass `host_heap_views` in `pipeline.rs` partial-dispatch translation and `dispatch_threads.rs` - Marvisak#2841 vs Marvisak#2999: use guest group dimensions (`self.rows.or(self.s.threads)`) in `dispatch_guard` - Marvisak#2177 vs merged test fixtures: add `host_heap_views: 0` to `Parts` test initializers
…s in direct DispatchX (Marvisak#2750)
…atch merge Reconcile four cross-PR interactions across the 32 merged PRs: - Marvisak#2953/Marvisak#2975 vs Marvisak#2811: read `self.mode16.round` in `div_fixup.rs` and `div_scale.rs` - Marvisak#2841 vs Marvisak#2177: pass `host_heap_views` in `pipeline.rs` partial-dispatch translation and `dispatch_threads.rs` - Marvisak#2841 vs Marvisak#2999: use guest group dimensions (`self.rows.or(self.s.threads)`) in `dispatch_guard` - Marvisak#2177 vs merged test fixtures: add `host_heap_views: 0` to `Parts` test initializers
|
AMD verification of c2ed5d1 on a Radeon RX 7900 XTX (gfx1100, 32.0.32029.2010), Windows 11, hardware adapter:
Synthetic only, no game files. AI-assisted. |
Upstream
DispatchXforwards its arguments as D3D12 group counts for every flag value. A synthetic 64×1×1 kernel asked for 65 threads with flag0x20writes past slot 64. Issue #2750 reports the same flag on BVH builder requests.What changed
0x20, AMDUSE_THREAD_DIMENSIONS) as thread dimensions and compute host group counts with ceiling division per axis.EXECballot).Dispatch, flag-clearDispatchX, and complete groups continue using the existing pipeline with byte-identical DXIL.fxceless/victory-fork@36a2257.Verification
DispatchX(65, 1, 1, 0x20)wrote exactly slots0..64(upstream failed at slot 65); following ordinary 2-groupDispatchand flag-clear 2-groupDispatchXeach wrote 128; flag-clear 65 groups wrote 4,160.1.9.2609.5): accepted both ordinary (byte-identical to upstream) and bounded shaders.cargo check --workspace --target x86_64-pc-windows-msvc --tests, andcargo clippy --workspace --target x86_64-pc-windows-msvc --tests -- -D warningspassed.Reviewed with mistral-loop: 2 rounds with Mistral Large 4 and DeepSeek V4.1 Flash (Mistral Hosted) on high. Verdict: approved.
Created with gpt-6.2-astra in Codex (orchestrated with Gemini 4 Neon in T3 Code).