compiler/nir: make lowering global-id to local-id optional
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 13 Jan 2020 09:35:40 +0000 (10:35 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 22:07:05 +0000 (22:07 +0000)
commit58074143f540925da92f85a5fb314929648f6dca
tree84db39b09963616bf1d05f963f074f157c6fa7f4
parent41e4eb9948d0ca62e9586b491c720a1a05904802
compiler/nir: make lowering global-id to local-id optional

For D3D12, we don't want to lower this, as there's a dedicated global-id
system-value that might be faster to use, depending on the hardware.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5891>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_system_values.c