c2c0e13b78
If a dimension in workgroup_size is 1 we can simply emit a 0 instead of loading a system value. Helps a couple of compute shaders. Totals: CodeSize: 934788544 -> 934788048 (-0.00%) Static cycle count: 222856984 -> 222856908 (-0.00%) Totals from 8 (0.01% of 87622) affected shaders: CodeSize: 34992 -> 34496 (-1.42%) Static cycle count: 8593 -> 8517 (-0.88%) Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36428>