r600g: fix polygon offset scale
authorMarek Olšák <marek.olsak@amd.com>
Tue, 11 Aug 2015 20:36:51 +0000 (22:36 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 12 Aug 2015 23:25:26 +0000 (01:25 +0200)
commitd335aad11b208bcdcc75a99d4b6c5fc8b69ce368
tree5d3a93cce7b515489185e39294b0ce45e957178b
parentbfac8ba9d32be351277c7ea814ac9848bdcb1f16
r600g: fix polygon offset scale

The value was copied from r300g, which uses 1/12 subpixels, but this hw
uses 1/16 subpixels.

Should fix piglit: gl-1.4-polygon-offset (formerly a glean test)
(untested, ported from radeonsi)

Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c