nir/vtn: add support for SpvBuiltInGlobalLinearId
authorKarol Herbst <kherbst@redhat.com>
Mon, 14 Jan 2019 17:36:37 +0000 (18:36 +0100)
committerKarol Herbst <kherbst@redhat.com>
Tue, 5 Mar 2019 21:28:29 +0000 (22:28 +0100)
commitd0b47ec4df0eafe4f4afddc2a0594b392c27f426
treed6fd1867040779845271c0e4c630d028c60b3b6b
parentf48c6729650e0a81b1a12487188163ba351571c8
nir/vtn: add support for SpvBuiltInGlobalLinearId

v2: use formula with fewer operations

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir.c
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_lower_system_values.c
src/compiler/shader_enums.h
src/compiler/spirv/vtn_variables.c