r600g: allow viewport index/layer to be sent to ps
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 24 Jun 2014 23:23:20 +0000 (19:23 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 2 Jul 2014 14:53:34 +0000 (10:53 -0400)
commit141f8fe1d100f66afe5217a8a33c17fce11ee8a8
tree70b2c314468a13420926184ccffff0b01b8eb278
parent7414552b1826ece48a622c14b48cad3a37b68025
r600g: allow viewport index/layer to be sent to ps

In order to support ARB_fragment_layer_viewport, we need to explicitly
send these along to the pixel shader, since it has no other way to
retrieve them.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Tobias Droste <tdroste@gmx.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_shader.c