radeon: Make use of _mesa_get_viewport_xform v2.
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)
commit472913ea7563e136b9ad3d33111925147a044a39
tree1313d2ea170c9e3933cd1e6e338fb105058e1bb8
parenta8ceb8e450354083b0b4141cd7fa0174a4d18f72
radeon: Make use of _mesa_get_viewport_xform v2.

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

v2:
Change order of assignments.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
src/mesa/drivers/dri/r200/r200_state.c
src/mesa/drivers/dri/radeon/radeon_state.c