fix(shader): select wave32 ballot words explicitly #5250
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5250"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MojoisDev on 2026-10-13T15:34:59Z.
What
On Linux with an RTX 5060 and NVIDIA 590.48.01, the unchanged
agc_driver_wave32_subgroupfixture fails its forced 64-wide layout: the VCC ballot count is 0 rather than 8. Reproduced on maineb5bee4bfe7f436070e7ba6723d1c7bf096e8116with SPIRV-Tools ON and OFF.EmitWaveBallotnow selects the word with constant component extracts and selects, preserving all four ballot components. The valid-index result is identical toOpVectorExtractDynamic; non-split subgroups are unchanged. This is a workaround for the observed shader pattern, with no claim about the driver's internal cause, game behavior, or FPS. The limitation is recorded in shader technical debt.Tested
Linux, GCC 13.3, Release, bundled dependencies. RTX 5060/NVIDIA 590.48.01 and Ryzen 7 9700X integrated GPU/RADV Mesa 25.0.7; explicit GPU selection and required Vulkan.
agc_driver_wave32_subgroup: fails before, passes five repeats on each GPU with tools ON and OFF.wave32_wide_subgroup: software interpretation of 32/64/128-wide subgroup masks passes; five repeats with tools OFF.guest_math. AMD additionally failsagc_driver_alpha_to_coverage,agc_driver_wave32_exec_lane_bits,agc_compute_pipeline_replay. All four reproduce with the original helper and identical diagnostics. Both skip checkers pass. The full suite is not green.python3 tools/check_conventions.py --base origin/mainandgit diff --check: pass.Not tested: game impact, FPS, driver-cache coldness, Windows, Intel, other NVIDIA models or 128-wide GPU hardware. Full suite with tools OFF was not run. Logs can be provided; no investigation artifacts are committed.
Integration check before publication: the tested commit merges cleanly with live main
068ab2aba6fd4950e81bcdcf44effbacbe294fc0. Tests above remain scoped to theeb5bee4base; the newer merged tree was not rebuilt locally.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T17:00:23Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/shader.mdL19Pull request closed