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_register_allocate.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_register_allocate.c')
-rw-r--r-- | src/broadcom/compiler/vir_register_allocate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir_register_allocate.c b/src/broadcom/compiler/vir_register_allocate.c index accc07a3a33..79ab5acd764 100644 --- a/src/broadcom/compiler/vir_register_allocate.c +++ b/src/broadcom/compiler/vir_register_allocate.c @@ -482,6 +482,7 @@ v3d_register_allocate(struct v3d_compile *c, bool *spilled) case 0: case 1: case 2: + case 3: /* Payload setup instructions: Force allocate * the dst to the given register (so the MOV * will disappear). |