Repository navigation
Conversation
A retail title's NGG transform programs (128 vertices / 128 primitives, 21 params + SV_ClipDistance0 = 352 B per vertex) all failed ms_6_6 with "vertex plus primitive output size is greater than 32768": the split budget divided 32768 by the stride, but DXC accounts whole chunks of 32 vertices even when fewer are declared - verts[78] at 352 B is accounted as 96 (33792 B) and refused. Measured with dxc 1.8.2502 on this machine: every boundary from 9 to 26 float4 rows agrees with the chunk model. passthrough_split now floors the vertex budget to a multiple of 32 (capped at 256); the wide records go out in 7 groups of 19 triangles instead of 5 groups of 26 that DXC refuses. Test: the wide record splits and compiles, a 96-vertex group at 320 B compiles, a narrow record stays whole; fails without the change (5 != 7). Assisted-by: DSH (GPT-6.2 Astra)
|
Tested Tested
Not tested
AI use
|
|
Independent native Windows/NVIDIA validation of #304 at Tested
SKIPPED / Not tested AI use |
|
Data point from a retail run on our machine (RTX 3060 Ti 8 GB, Ryzen 7 9800X3D, driver 32.0.16.1742): main + this PR is not in the stack, but the same title run with #300 + #294 + #273 (+#208) + #283 (+#252) reached the character loading screen, and its report shows These are the intentional refusals in AI use: GPT-6.2 Astra (API model selector) wrote this comment from our run's report.json; the human contributor observed the run. |
|
Tested Tested
Not tested
AI use: Claude Code with Claude Opus 5.5 (ran the tests and wrote this report). |
A retail title's NGG transform programs (128 vertices / 128 primitives, 21 params +
SV_ClipDistance0= 352 B per vertex) all failms_6_6with "vertex plus primitive output size is greater than 32768" - 19 programs on our machine (MS_VS_TransformLit/TransformD/TransformSkin*, all the same shape). The pipelines then run without a translated mesh shader.Root cause:
passthrough_splitdivides the 32768 B budget by the vertex stride, but DXC accounts whole chunks of 32 vertices even when fewer are declared.verts[78]at 352 B is accounted as 96 vertices (33792 B) and refused; the split it computes (5 groups of 26 triangles) is refused for every one of these programs.Measured the accounting with dxc 1.8.2502 (Windows SDK 10.0.26100) on synthetic mesh shaders: bisected the max vertex count for 1..26 float4 rows - every boundary agrees with
floor(min(256, 32768/stride) / 32) * 32(e.g. 22 rows: 64 verts OK, 65 refused; 21 rows: 96 OK, 97 refused). Primitive indices do not move the boundary at these sizes.What is in it
passthrough_split: the vertex budget is floored to a multiple of 32 (capped at 256). The wide records now go out in 7 groups of 19 triangles, which DXC accepts.mesh_split_accounts_vertex_chunks: the wide record (the retail shape) splits into 7 groups and compiles; a 20-row record splits into 4 groups of 96 vertices and compiles; a narrow record stays whole. Fails without the change (5 != 7). No GPU needed, only DXC.Tested
cargo test --workspace -- --test-threads=4: 612 passed, 0 failed, 20 ignored (lib, includes the new test); other suites 13+3+1+3+2+7+1+1+2+1+6 passed, 0 failed, 4+12 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)xcl shaders <title> --precompile --only mson our copy of the title: 19 ms_6_6 errors before (3864 compiled / 14681 cached in that pass); after, the same pass compiles the 6 distinct failing sources with 0 errors (18558 cached)Not tested
gpu_mesh_mode_two_passeson this NVIDIA adapter)Regression run
main (9ab7d76):
this PR's head (8c7413c, no uncommitted changes):
AI use
GPT-6.2 Astra (API model selector), working as the coding agent in this session: bisected the DXC accounting on this machine, wrote the fix, the test and this description, ran the tests and the smoke runs. The human contributor reviewed the diff and the measurements.