spirv_to_dxil: Add support for nir_intrinsic_load_num_workgroups
authorEnrico Galli <enrico.galli@intel.com>
Mon, 30 Aug 2021 22:00:00 +0000 (15:00 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Sep 2021 16:21:03 +0000 (16:21 +0000)
commit49ef896a5e5e8180ae069e9708b7053bca80abd7
tree8da54c758bc805e134cd214bdff05c8dd2007424
parent9461fe5cf1599e912f2b5810223b3236af50a22f
spirv_to_dxil: Add support for nir_intrinsic_load_num_workgroups

Since DXIL does not have a way to get the number of workgroups used
during dispatch with a system-value, these numbers need to be passed in
via a constant buffer.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12707>
src/microsoft/spirv_to_dxil/spirv_to_dxil.c
src/microsoft/spirv_to_dxil/spirv_to_dxil.h