intel/compiler: Lower Task/Mesh local_invocation_{id,index}
authorCaio Oliveira <caio.oliveira@intel.com>
Fri, 29 Oct 2021 19:48:54 +0000 (12:48 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 4 Dec 2021 00:41:46 +0000 (00:41 +0000)
commit171bdd2ec66221368599eb3e8cbf4b9164e626f7
treed96e43b9f627db607affd7b3c914b32d4a30ec7e
parentdb23c41537e03c89abb7c7f81738f169c1c6e3f9
intel/compiler: Lower Task/Mesh local_invocation_{id,index}

The Invocation index is provided by the payload, so we can skip the
usual math done to get to it.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13661>
src/intel/compiler/brw_mesh.cpp
src/intel/compiler/brw_nir_lower_cs_intrinsics.c