radeonsi: use hardware scissors correctly
authorMarek Olšák <marek.olsak@amd.com>
Mon, 13 Jan 2014 22:42:18 +0000 (23:42 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jan 2014 00:47:14 +0000 (01:47 +0100)
commita8930adbf82560f502e77f818bea5acd6b4ea4ec
treedcf070d4a8195b79e273b40fd652e3ab26468053
parent69c29cb147373bfe835789df6fac54821ef62d55
radeonsi: use hardware scissors correctly

Use the WINDOW and VPORT scissors for the framebuffer and scissor test,
respectively. The other two scissors are disabled (they cover the max fb size).

We actually have 16 VPORT scissors, which will map well to ARB_viewport_array.

Also, we don't need to write SC_WINDOW_OFFSET with this commit, because it's
disabled everywhere.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/si_state.c