Repository navigation
Conversation
|
@Luislariosss Thanks for validating the 15-case RDNA4 fixture. When convenient on an idle machine, could you run the validation-off mesh_wave32_ballot_gpu_cost benchmark on this PR head and share the 32-, 64- and 128-thread GPU medians? The PR records the RDNA3 and integrated AMD results for comparison. An independent NVIDIA regression check on dc80215 would also help. The generated mesh_numeric_wave32_masks_control_two_triangles fixture enables full GPU-based validation. Use VICTORY_MESH_MASK_TEST_ADAPTER=nvidia and report the adapter, driver, wave range, case count, and validation messages. Reproduction commands are in the description. AI-assisted using Codex. |
|
An offline coverage check would complement the native fixture. On an authorized local shader corpus, compare stock 70564ae with dc80215 using the same translation options and adapter capability selection. The most useful output is aggregate mesh translated/refused counts by reason, including recovered numerical-mask refusals and any new failures. If an independent title comparison is available, start with the stock baseline and compare normal-frame mesh and geometry counts in a matched scene. Aggregates are sufficient. The independent NVIDIA regression and RDNA4 timing requests above remain open. AI-assisted using Codex. |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (70564ae), cargo test -p victory-shader --locked → 121 passed, 0 failed. Hardware/valu/waterfall execution tests are #[cfg(all(test, windows))] and run only on Windows.
Numerical Wave32 mesh masks lowered at uniform entry: time_mesh/draw_inner/mesh_ballot + mesh() builder, mesh_numeric_wave32_masks_translate_without_a_fixed_size test. 1098-line diff across emit/lower paths. Docs updated too.
|
The earlier RDNA3 report in this PR's table was for
These are within 0.1 µs of the AI-assisted (Claude Code); generated shaders only, no game files. |
|
NVIDIA follow-up on the approved head |
|
Automated triage for the maintainers. Needs work: needs the maintainer's decision. This lowers numeric Wave32 masks in mesh shaders to a groupshared ballot with three group barriers, only in the group-uniform entry block (
CI has not run. Generated by Claude Code |
|
@Marvisak Could you confirm whether the ignored hardware fixture may load an explicitly selected Agility SDK through The PR description already carries the reproduction and measured results. I can combine the requested repository-doc trim with any fixture changes from that decision. The AMD and NVIDIA evidence is synthetic. Title-level geometry remains unverified. |
|
NVIDIA run of #1759, since the reports so far are AMD and WARP. Setup: RTX 4070 (driver 621.01, Windows 11), Agility SDK 1.620.2 (NuGet), Graphics Tools, dxil.dll from SDK 10.0.26100. Tested head dc80215 merged onto main 940d32f (no conflicts). Results
AI-assisted. |
|
Checked against current
One point for prioritising: #2268 reports an offline census on AI-assisted. |
Task SHADER-MESH-LANES-AMD. Upstream claim
Mesh shaders on main
70564aereject the tracked Wave32 comparison mask in this fixture when a later instruction reads its numeric bits or population count. The original synthetic mesh fixture reproducesa lane mask read as dataat byte offset 232 before pipeline creation. Its nonnumeric control translates. The older mainffe310ereproduces the same refusal.Change
Materialize a tracked numerical Wave32 mask with a workgroup ballot indexed by flattened mesh thread ID. Each invocation clears a unique scratch dword. After a group synchronization it atomically contributes its logical lane bit to its virtual wave's first dword. A second synchronization makes the result visible before reads, and a third prevents scratch reuse until all reads finish. Scratch is separate from native LDS. The per-mesh capacity check includes declared LDS and uses the D3D12 28 KiB limit. The emitted pipeline metadata counts actual native LDS globals and ballot scratch.
The first materialization must occur in the once-reached native entry block and the current DXIL block must be group-uniform. The entry has no predecessors and a guard advances the uniform block only after its join. A previously materialized mask can be consumed after divergence. Unsupported masks, wider numerical waves, and over-capacity cases retain explicit refusals.
The mesh shader carries no required physical wave size. Shader Model 6.6 permits WaveSize on compute entry points, and current DXIL validation restricts this metadata to compute and node shaders. WaveSize specification · DXIL validator rules · D3D12 mesh limits
Reproduction
From the proposed head on Windows, point
VICTORY_DXILto the Windows SDK validator. Use Windows Graphics Tools and a 1.620.x Agility SDK for the native fixture.Set the adapter list to the hardware available on the test machine. The fixture enables full GPU-based validation and checks the reported configuration itself. It builds original GFX10 shaders and verifies four independent raster regions. It exercises partial waves, nested EXEC branches, successive masks, a wrong-mask cull control, native LDS readback, declared but unused native LDS, and nonnumeric logical Wave64 controls.
To reproduce the main refusal in a disposable worktree, retain the test harness and restore only the two lowering files from upstream before running the positive translation test.
The numeric control should fail with the upstream refusal. Use a separate Cargo target directory for the candidate.
Validation
The independent reports ran exact
95ffcedon Agility SDK 1.620.2 with full GPU-based validation. Both discrete adapters reported mesh tier 1, SM 6.6 and a 32–64 lane range.Thank you to tumbubu and Luislariosss for the independent hardware runs. The RX 7900 XT report also included a passing Agility WARP run. The proposed head
dc80215ports this implementation to current main and adds the declared-but-unused LDS metadata correction and its sixteenth local case. The reports below distinguish the two exact revisions. RDNA3 report · RDNA4 reporteac3a68passed all 16 native cases on both AMD Radeon Graphics, driver 32.0.22042.1 with a 32–64 lane range, and Agility WARP with four lanes. Both devices reported mesh tier 1 and SM 6.6. All 128 pixel probes matched with full GPU-based validation and no D3D12 errors. The test exercised native LDS values after ballot scratch and the separate PSV test observed 256 bytes for scratch-only output when guest metadata declared 1,024 unused bytes.ffe310eintegration with exact Shaders: one console wave sharing LDS runs in the console flow on 32-lane hosts #43928aca3brequired only fixture adaptation to pass its hostTargetand distinct tests for the integration. The integrated source passed all 16 native cases on AMD and WARP, plus Shaders: one console wave sharing LDS runs in the console flow on 32-lane hosts #439's original nested shared-atomic regression on AMD. Every group size from 1 to 128 emitted and passed SDK DXIL validation for the synthetic numerical Wave32 and nonnumeric Wave64 programs. Their emitted DXIL was identical across targets 4–4, 32–32, 32–64, and 64–64. The test's numeric Wave64 variant remained refused at each size. #439dc80215passed the default-device workspace run with DXC anddxil.dll1.9.2609.5: 479 passed, zero failed, and 9 ignored. Strict workspace Clippy and the 176-file asset policy passed. A separate WARP run with SDK 1.7 reported four failures that also reproduce on stock70564ae: rectangle and signature PSV validation, a gather comparison, and a permute fixture whose Wave32 PSO was unavailable under WARP.Performance and remaining evidence
On the measured AMD Radeon Graphics, driver 32.0.22042.1, the
ffe310e-based 2,048-group synthetic dispatch with 128 threads per group took a median 198.61, 199.26, 251.59, and 341.98 µs with zero through three distinct ballots. These are medians across three independent process medians. The #439 integration's smaller workload medians in the same order were 4.150, 4.630, 5.455, and 6.995 µs at 32 groups and 34.930, 35.170, 45.315, and 60.140 µs at 256 groups. These intervals include raster work and surrounding mask arithmetic. Validation and the debug layer were disabled, and PSO creation and readback fall outside the timestamp region. Benchmark methodologyThe RX 7900 XT control reported less than 1% overhead for three ballots relative to zero ballots. The integrated AMD device showed substantially larger overhead in the same 2,048-group workload. Values are median GPU microseconds per synthetic dispatch with validation disabled.
The intervals include mask computation, shared-memory communication and rasterization. The three group synchronizations per mask and scratch usage of one dword per thread are part of the implementation. Timing varies by device and clock state. The separate scratch-bank experiment had mixed results. RDNA3 timings · Integrated AMD timings
A later NVIDIA regression run at the approved head
dc80215passed all 16 synthetic cases on a GeForce RTX 5070 Laptop GPU (driver 581.91, SM 6.6, 32-lane waves, mesh tier 1) with full GPU-based validation. This was a local run. A second NVIDIA tester result and RDNA4 timing remain open. NVIDIA validation Normal-title geometry and performance remain unverified. For a matched authorized title test, hold adapter, scene, diagnostics and warmed cache state fixed. Share aggregate numerical-mask refusals, admitted mesh dispatches and group sizes, submission GPU time, emitted primitive counts and final-frame geometry coverage. Tester coordinationOn exact
dc80215, tumbubu independently passed all 16 synthetic cases on the RX 7900 XT and the WARP control with full GPU-based validation. In the validation-off benchmark, three numerical ballots added 0.25, 0.44, and 0.53 µs per 2,048-group dispatch for 32-, 64-, and 128-thread groups on that card. Three runs used per-run medians. The integrated AMD measurements earlier in this description are from a separate adapter. Exact-head RDNA3 report