r600g: fix and improve rasterizer discard for r600-r700
authorMarek Olšák <maraeo@gmail.com>
Sun, 26 Feb 2012 13:47:22 +0000 (14:47 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 5 Mar 2012 13:22:20 +0000 (14:22 +0100)
commit597fd6dc8c424a35f8442d5fd9de708013a69830
tree6d0169f98af7369f19b3609b99cf37e027ccb89c
parent734792e83fdc526623d8fe0a60479648c936bd53
r600g: fix and improve rasterizer discard for r600-r700

For polygons, we have been using face culling with success, but that doesn't
work for points and lines.

Setting the point size and line width to 0 fixes it.

Also improve it even more by setting SCREEN_SCISSOR to a zero area.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/r600/r600_state.c