diff options
author | Karol Herbst <[email protected]> | 2019-01-14 18:36:37 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-03-05 22:28:29 +0100 |
commit | d0b47ec4df0eafe4f4afddc2a0594b392c27f426 (patch) | |
tree | d6fd1867040779845271c0e4c630d028c60b3b6b /src/compiler/nir/nir_intrinsics.py | |
parent | f48c6729650e0a81b1a12487188163ba351571c8 (diff) |
nir/vtn: add support for SpvBuiltInGlobalLinearId
v2: use formula with fewer operations
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_intrinsics.py')
-rw-r--r-- | src/compiler/nir/nir_intrinsics.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index d53b26c88d6..1ae453f757d 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -533,6 +533,7 @@ system_value("num_subgroups", 1) system_value("subgroup_id", 1) system_value("local_group_size", 3) system_value("global_invocation_id", 3, bit_sizes=[32, 64]) +system_value("global_invocation_index", 1, bit_sizes=[32, 64]) system_value("work_dim", 1) # Driver-specific viewport scale/offset parameters. # |