clover/nir: add support for global invocation id offsets
authorKarol Herbst <kherbst@redhat.com>
Wed, 19 Aug 2020 14:02:55 +0000 (16:02 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 22:07:05 +0000 (22:07 +0000)
commit4fd2a452675c8b302128f0b9224f175364ce33b6
tree8f8d447202cd175b1d68b69b2a370502ed93cd83
parent47e52d84ea3d4c1830bf942a41151aaabbf320d3
clover/nir: add support for global invocation id offsets

v2: create variables only once

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5891>
src/gallium/frontends/clover/nir/invocation.cpp