i965/gen6/gs: Buffer PSIZ/flags vertex data in gen6_gs_visitor
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 31 Jul 2014 11:27:30 +0000 (13:27 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 19 Sep 2014 13:01:16 +0000 (15:01 +0200)
commit21204434845398de86fb707c78dd5bdd1fb5826f
treef6ce807f012388c7d3223f9fbbe596729f7d30e7
parent28a7da612b4a3f822df293e50bf043782eca1cb8
i965/gen6/gs: Buffer PSIZ/flags vertex data in gen6_gs_visitor

Since geometry shaders can alter the value of varyings packed in the first
output VUE slot (PSIZ), we need to buffer it together with all the other
vertex data so we can emit the right value for each vertex when we do the
URB writes.

This fixes the following piglit test in gen6:
tests/spec/glsl-1.50/execution/redeclare-pervertex-out-subset-gs.shader_test

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp