i965/vec4: add support for packing vs/gs/tes outputs
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 23 Jun 2016 02:49:53 +0000 (12:49 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 21 Jul 2016 02:06:11 +0000 (12:06 +1000)
commitd1b1fca0b7cccff718923f2344ea144dc3ebb869
tree339ebb61581c3766295f8d2663a70423c6d1707e
parentb427abba0c04214ba6184092eee73fc6377fbff9
i965/vec4: add support for packing vs/gs/tes outputs

Here we create a new output_generic_reg array with the ability to
store the dst_reg for each component of user defined varyings.
This is needed as the previous code only stored the dst_reg based
on the varying location which meant packed varyings would overwrite
each other.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp