From 01d913cf90d3c57ba82f555bdf4ccb8ef7f9801e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 7 Dec 2018 15:47:18 -0800 Subject: 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. --- src/broadcom/compiler/vir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/broadcom/compiler/vir.c') 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 -- cgit v1.2.3