r600: fix viewport clipping handling (v2)
authorDave Airlie <airlied@redhat.com>
Sat, 19 Dec 2015 23:01:22 +0000 (23:01 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 21 Dec 2015 23:09:56 +0000 (09:09 +1000)
commitd19106649f3db6aee187093bdb5dd4fd0e9a61fc
tree2dfd736025df3da677e1ad42cd1f1bf4ee735cdd
parent73e7c5fd7f9b9054d39495ef4087c7e0ceeaedaa
r600: fix viewport clipping handling (v2)

If oViewport is written, vertex reuse need to be turned off.
If oViewport is constant, vertex reuse is fine, and VPORT_PROVOKE_DISABLE
need to be set. (we don't have enough info to program VPORT_PROVOKE).

Fixes: arb_viewport_array-render-viewport-2 and some CTS tests.
v2: drop vport provoke write, drop initial state writing this
on evergreen, only program it on evergreen.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state_common.c