radeonsi: fix viewport clipping handling. (v2)
authorDave Airlie <airlied@redhat.com>
Sat, 19 Dec 2015 23:01:21 +0000 (23:01 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 21 Dec 2015 23:09:52 +0000 (09:09 +1000)
commit73e7c5fd7f9b9054d39495ef4087c7e0ceeaedaa
tree31b502ce73ec2596e4c576d93c7bafcbbc09f3b5
parent847f91f4e56e83309cb7577e437d74f69abc8496
radeonsi: 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 know if oViewport is constant so we
skip this.)

Fixes: arb_viewport_array-render-viewport-2 and some CTS tests.
v2: drop writing to provoke disable, drop write in initial
state.

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