nvc0: provide support for unscaled poly offset units
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 25 Jun 2016 19:20:00 +0000 (15:20 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 26 Jun 2016 16:04:55 +0000 (12:04 -0400)
commit89a7496b9d3e705b7940e503b5cc01417da04495
tree244f01525ea686181e007fc11d9933dcd2511caa
parentb84c97587b4a838c32fb7ac4eab31a6ba4f69886
nvc0: provide support for unscaled poly offset units

On at least Kepler hardware, the units differ based on RT format. Emit a
properly scaled value for Z16 depth buffers vs other formats, to help
out st/nine.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c