radeonsi: add support for viewport array (v3)
authorDave Airlie <airlied@redhat.com>
Thu, 25 Jun 2015 02:36:23 +0000 (03:36 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 26 Jun 2015 23:24:07 +0000 (00:24 +0100)
commit7e5064360c03b8dbdd60298b46e1595418c6cea3
tree95db1e8c1cf1f695c0ded84a4ccd3c1965243aca
parent35d83793047b3de31a706fa2a62a233090ea7cfc
radeonsi: add support for viewport array (v3)

This isn't pretty and I'd suggest it the pm4 interface builder
could be tweaked to do this more efficently, but I'd need
guidance on how that would look.

This seems to pass the few piglit tests I threw at it.

v2: handle passing layer/viewport index to fragment shader.
fix crash in blit changes,
add support to io_get_unique_index for layer/viewport index
update docs.
v3: avoid looking up viewport index and layer in es (Marek).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
docs/GL3.txt
docs/relnotes/10.7.0.html
src/gallium/drivers/radeonsi/si_blit.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/si_state_shaders.c