etnaviv: nir: set num_components for inputs/outputs
authorJonathan Marek <jonathan@marek.ca>
Wed, 11 Sep 2019 20:45:05 +0000 (16:45 -0400)
committerJonathan Marek <jonathan@marek.ca>
Sat, 28 Sep 2019 04:33:42 +0000 (00:33 -0400)
commit95fa799c86e062c40004031c2c0028d5e59d8cab
treec242e705cf4d361f9b61dc811e07a7c678ba229c
parent0036e078e3d097f8a7a94235052f6d0e647e4da1
etnaviv: nir: set num_components for inputs/outputs

This can improve performance by allowing the LAST_VARYING_2X bit to be
set when possible (and possibility more benefits on HALTI5 where the
number of components is set for each varying).

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