evergreeng: respect linewidth state, use integer widths only
authorKeith Whitwell <keithw@vmware.com>
Mon, 1 Nov 2010 14:19:18 +0000 (14:19 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 3 Nov 2010 10:55:22 +0000 (10:55 +0000)
commitd6b6a0bc170bd61abbbe9cb6ba777c7192dbd018
tree3a32cafc05bfb38eb8bc93f5e5524df31677106f
parentee07e0e39ad1c4d13d540b23220fecc564d07b16
evergreeng: respect linewidth state, use integer widths only

Discard fractional bits from linewidth.  This matches the nvidia
closed drivers, my reading of the OpenGL SI and current llvmpipe
behaviour.

It looks a lot nicer & avoids ugliness where lines alternate between n
and n+1 pixels in width along their length.

Also fix up r600g to match.
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/evergreend.h
src/gallium/drivers/r600/r600_state.c