radeonsi/nir: collect more accurate output_usagemask
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 21 Feb 2018 02:27:17 +0000 (13:27 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 21 Feb 2018 22:31:00 +0000 (09:31 +1100)
commit86098696fc980cd0d324d2f2c978a320f0418f38
tree01b3055320861687b099e3dba4c0ad4a786c7b73
parent79dc94828aedd0edc6085911321e6e7597815478
radeonsi/nir: collect more accurate output_usagemask

Fixes assert in the glsl-1.50-gs-max-output-components piglit test.

Note that the double handling will only work for doubles that
don't take up multiple slots i.e. double and dvec2. However
dual slot double handling is an existing bug which is made no
worse by this patch.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c