qetnaviv: nir: use new immediates when possible
authorJonathan Marek <jonathan@marek.ca>
Thu, 12 Sep 2019 20:07:14 +0000 (16:07 -0400)
committerJonathan Marek <jonathan@marek.ca>
Sat, 28 Sep 2019 04:33:42 +0000 (00:33 -0400)
commitd446134d2a1224aca695f22b5641f1a483342906
tree99700b2a7c69c9ebf16189cbe4e8950378dbf430
parent95fa799c86e062c40004031c2c0028d5e59d8cab
qetnaviv: nir: use new immediates when possible

Note it can still be improved a bit:
* Use alu swizzle to determine if src is scalar
* Take into account new immediates in the multiple uniform src lowering

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h