r600g: fix up vs export handling
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2011 15:29:53 +0000 (11:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2011 15:34:02 +0000 (11:34 -0400)
commitdc1c0ca22a1c7fcaef90b787290144d8e3d77c33
treec1d28caad9ca009ece381871b341393851472b98
parent5c9e0ad5fddf216921703a0aa9c911a51226cdfd
r600g: fix up vs export handling

Certain attributes (position, psize, etc.) don't
count as params; they are handled separately by the hw.
However, the VS is required to export at least one param
and r600_shader_from_tgsi() takes care of adding a dummy
export if there is none.  Make sure the VS param export
count in the SPI properly accounts for this.

Note: This is a candidate for the 7.11 branch.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_shader.h
src/gallium/drivers/r600/r600_state.c