microsoft/compiler: Move workgroup_size lowering from clc
authorJesse Natalie <jenatali@microsoft.com>
Fri, 31 Dec 2021 22:28:28 +0000 (14:28 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Jan 2022 01:36:56 +0000 (01:36 +0000)
commitfd50ef046b2c8566fecbe028fa383cf2edd9a650
tree85a228ba39e891aff40822fb7dc303021cb34850
parent5e18aafd260ff27efbf1d64c062a0471ad7ae956
microsoft/compiler: Move workgroup_size lowering from clc

It doesn't depend on the clc data being provided externally, so no
need to tie it there, we can re-use it for GL and Vulkan compute.

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14367>
src/microsoft/clc/clc_nir.c
src/microsoft/compiler/dxil_nir.c
src/microsoft/compiler/dxil_nir.h
src/microsoft/compiler/nir_to_dxil.c