v3d: move tlb color write emission to a helper function
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 16 Jul 2019 08:14:17 +0000 (10:14 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 18 Jul 2019 06:59:35 +0000 (08:59 +0200)
commitfd3ec6f55d0db0f350ef944e8d4a4d8c3a0af740
tree59998cdeb2f52661a708f20c2cce55ea3b902ebd
parent0c9919710e17746620cd310ab43e7b82ede53cb4
v3d: move tlb color write emission to a helper function

We will soon be adding per-sample color writes which means additional
complexity and more indentation (we will need another loop to emit
the writes for each individual sample), so this will help keeping
things simple and a bit more readable.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/broadcom/compiler/nir_to_vir.c