microsoft/compiler: Assign 1D wave IDs based on local thread ID
authorJesse Natalie <jenatali@microsoft.com>
Fri, 31 Mar 2023 17:25:00 +0000 (10:25 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 22:08:28 +0000 (22:08 +0000)
commit4f56cede6deff561a8cfa3fe893cf085cb8b2f1c
treec592549a1fbc8ff650475248bcce663df8804eef
parenteeb67362daea989281f5a6235b7bc08d06cafca7
microsoft/compiler: Assign 1D wave IDs based on local thread ID

Fixes corruption/flickering seen in DOOM Eternal's decals/lighting.
It seems the shader has an implicit assumption about this property.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22225>
src/microsoft/compiler/dxil_nir.c