diff options
author | Eric Anholt <[email protected]> | 2018-12-07 15:47:18 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-01-14 15:40:55 -0800 |
commit | 01d913cf90d3c57ba82f555bdf4ccb8ef7f9801e (patch) | |
tree | 48640d00a6c7a037cd30e23539f77d3c7312bb56 /src/broadcom/compiler/vir.c | |
parent | 6281f26f064ada36b57d45feb68d8e7d783198c9 (diff) |
v3d: Add support for CS workgroup/invocation id intrinsics.
We get a payload for the ivec3 workgroup and an int local invocation
index, and we use the core lowering to turn into the global invocation id
and the local invocation id ivec3s.
Diffstat (limited to 'src/broadcom/compiler/vir.c')
-rw-r--r-- | src/broadcom/compiler/vir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 55a02123322..10105fbd861 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -639,6 +639,7 @@ v3d_lower_nir(struct v3d_compile *c) } NIR_PASS_V(c->s, nir_lower_tex, &tex_options); + NIR_PASS_V(c->s, nir_lower_system_values); } static void |