v3d: Always set up the qregs for CSD payload.
authorEric Anholt <eric@anholt.net>
Mon, 15 Apr 2019 23:36:17 +0000 (16:36 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Apr 2019 19:10:39 +0000 (12:10 -0700)
commit697e2e1f268ef464cfbde01719757e865b86ecbf
treea9f6a16503bfd30dc794a6c16b412377a893fe0a
parent1bc71e8b655f2f02b3e3a0af34c7cad12b9cb83d
v3d: Always set up the qregs for CSD payload.

We were failing to set up payload[1] for use by LocalInvocationIndex/ID
and shared variable accesses if gl_WorkGroupID/gl_GlobalInvocationID
wasn't used (possibly because you only have one workgroup).  You're always
going to use payload[1], and payload[0] is common enough and we have DCE
in the backend to clean it up if it happens to not be used.
src/broadcom/compiler/nir_to_vir.c