radeonsi: Simplify shader PM4 state handling
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 17 Jan 2014 00:53:14 +0000 (09:53 +0900)
committerMichel Dänzer <michel@daenzer.net>
Wed, 29 Jan 2014 02:08:21 +0000 (11:08 +0900)
commitd88a3752294444fc92f25fa6ca5bf4209f0e4266
tree3989d51c1c6e2c3dc83217af75d7193df3855dbf
parente884c560a6adaa8f0c338be3ae502fb09ceff01d
radeonsi: Simplify shader PM4 state handling

Just always bind the current states before drawing.

Besides the simplification, as a bonus this makes sure the VS hardware
shader stage always uses the GS copy shader when a geometry shader is
active, fixing a number of GS related piglit tests.

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