pan/mdg: Implement load_global_invocation_id
authorIcecream95 <ixn@disroot.org>
Tue, 22 Dec 2020 12:54:01 +0000 (01:54 +1300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 Jan 2021 02:58:49 +0000 (02:58 +0000)
commitfbc97ab125265e087b4d940a22dc358339a026fd
tree8e3db5a762d9bbb49f37f85093d56890a625b788
parent3448a42bf5b352d2fa3db02249d2c107c2dcc103
pan/mdg: Implement load_global_invocation_id

NIR generates global_invocation_id, but Clover lowers it to
global_invocation_id_zero_base. It isn't lowered for OpenGL,
so we need to support both intrinsics.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8264>
src/panfrost/midgard/midgard_compile.c