i965/gen6/gs: use brw_gs_prog atom instead of brw_ff_gs_prog
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Tue, 1 Jul 2014 06:52:47 +0000 (08:52 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 19 Sep 2014 13:01:14 +0000 (15:01 +0200)
commitbc383cb55b9d342a77b44328cb4acb5bbdf4a80c
tree8b4a60f19100b1d8f9b899505059bf685bdc6a9e
parentdd376bdb254888f156e24d4360b6f6a408e2c5a2
i965/gen6/gs: use brw_gs_prog atom instead of brw_ff_gs_prog

This is needed to support user-provided geometry shaders, since the
brw_ff_gs_prog atom in gen6 only takes care of implementing transform feedback
for vertex shaders.

If there is no user-provided geometry shader the implementation falls back to
the original code.

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