v3d: Add support for CS workgroup/invocation id intrinsics.
authorEric Anholt <eric@anholt.net>
Fri, 7 Dec 2018 23:47:18 +0000 (15:47 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 14 Jan 2019 23:40:55 +0000 (15:40 -0800)
commit01d913cf90d3c57ba82f555bdf4ccb8ef7f9801e
tree48640d00a6c7a037cd30e23539f77d3c7312bb56
parent6281f26f064ada36b57d45feb68d8e7d783198c9
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/nir_to_vir.c
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir.c
src/broadcom/compiler/vir_dump.c
src/broadcom/compiler/vir_register_allocate.c