llvmpipe/setup: add planes for draw regions if no scissor.
authorDave Airlie <airlied@redhat.com>
Tue, 9 Jun 2020 00:41:58 +0000 (10:41 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 15 Jun 2020 20:14:44 +0000 (06:14 +1000)
commit84779e5822d8b63038f65640ca32ad0dce3161b7
tree8ab41b180b43e48c5e79136dae254c0be89a40ec
parentc1e1b13bfe8233748aa04f67fb69bff7e51bf744
llvmpipe/setup: add planes for draw regions if no scissor.

Some tests were using a 1x1 fb bound, with a 2x2 viewport,
and all 4 pixels were getting rendered. Test if the fb bounds
need planes added or not.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3101
v2: add lines support

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5394>
.gitlab-ci/deqp-virgl-fails.txt
src/gallium/drivers/llvmpipe/lp_setup_line.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c