mirror of
https://github.com/ivall/xcl.git
synced 2026-11-24 05:14:57 +01:00
fc4b2d48f1
D3D12 has no WaveSize for graphics shaders, so the driver picks the wave size of a wave64 VS / PS. On an RX 6600 XT (RDNA2, reports 32-64 lanes) the driver runs pixel shaders in waves of 32, but `wave32_only()` is false for a 32-64 range, so VS / PS did not get the `upper_lanes` form and `v_readlane` 32 wrapped to lane 0: gpu_wave64_ps_whole_wave_reductions summed twice (928 vs 464), issue #42. `pso::graphics_wave32` (range includes 32) now decides the split flag for VS / PS at PSO creation (plain, mesh and GS pipelines' PS), in the test runner and in `xcl shaders --precompile`; compute, mesh and geometry programs keep `wave32_only`. The form checks the wave size at run time, so a driver that picks 64 lanes is unaffected. Tested on an RX 6600 XT (driver 32.0.21045.29003): cargo test --workspace, 569 passed, 0 failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FSrXQbQ1CgygrnUUsgR2st