a3xx: make use of software clipping when hw can't handle it
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 20 Aug 2016 04:14:43 +0000 (00:14 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 3 Sep 2016 23:58:42 +0000 (19:58 -0400)
commit83d7230fd5ab69e7e111e3a02e604e65922fb171
treef59cb99fa22dc8c808dfb6f20c6032498dc6b1b4
parentdac72234c74b8cf4da516b915ed03efd8e2f9922
a3xx: make use of software clipping when hw can't handle it

The hw clipper only handles up to 6 UCPs. If there are more than 6 UCPs,
or a clip vertex, or clip distances are in use, then we must use the
fallback discard-based clipping from the frag shader.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/freedreno/a3xx/fd3_draw.c
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a3xx/fd3_program.c
src/gallium/drivers/freedreno/a3xx/fd3_program.h
src/gallium/drivers/freedreno/ir3/ir3_shader.c
src/gallium/drivers/freedreno/ir3/ir3_shader.h