i965: Make use of _mesa_get_viewport_xform.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 29 Mar 2015 16:57:45 +0000 (18:57 +0200)
committerMathias Froehlich <Mathias.Froehlich@gmx.net>
Sun, 5 Apr 2015 06:01:46 +0000 (08:01 +0200)
commita8ceb8e450354083b0b4141cd7fa0174a4d18f72
tree1d7cc684d3bbfd591d1f10e8d1a70e5d8e22862a
parentba353935a392d2a43422f1d258456336b40b60ea
i965: Make use of _mesa_get_viewport_xform.

Instead of _WindowMap just use the translation and scale
of the viewport transform directly. Thereby avoid dividing by
_DepthMaxF again.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
src/mesa/drivers/dri/i965/brw_sf_state.c
src/mesa/drivers/dri/i965/gen6_viewport_state.c
src/mesa/drivers/dri/i965/gen7_viewport_state.c
src/mesa/drivers/dri/i965/gen8_viewport_state.c