Mesa (r6xx-rewrite): use the float interface for viewport updates

Alex Deucher agd5f at kemper.freedesktop.org
Thu Jun 4 20:59:00 UTC 2009


Module: Mesa
Branch: r6xx-rewrite
Commit: 4782bebe4495fb880c42bc1414aeed08c0ebf75d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4782bebe4495fb880c42bc1414aeed08c0ebf75d

Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Thu Jun  4 15:30:37 2009 -0400

use the float interface for viewport updates

---

 src/mesa/drivers/dri/r600/r700_state.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c
index 59f6d12..fb8388f 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -552,14 +552,14 @@ static void r700UpdateWindow(GLcontext * ctx) //--------------------
 
 	/* TODO : Need DMA flush as well. */
 
-	r700->PA_CL_VPORT_XSCALE.u32All  = *((unsigned int*)(&sx));
-	r700->PA_CL_VPORT_XOFFSET.u32All = *((unsigned int*)(&tx));
+	r700->PA_CL_VPORT_XSCALE.f32All  = sx;
+	r700->PA_CL_VPORT_XOFFSET.f32All = tx;
 
-	r700->PA_CL_VPORT_YSCALE.u32All  = *((unsigned int*)(&sy));
-	r700->PA_CL_VPORT_YOFFSET.u32All = *((unsigned int*)(&ty));
+	r700->PA_CL_VPORT_YSCALE.f32All  = sy;
+	r700->PA_CL_VPORT_YOFFSET.f32All = ty;
 
-	r700->PA_CL_VPORT_ZSCALE.u32All  = *((unsigned int*)(&sz));
-	r700->PA_CL_VPORT_ZOFFSET.u32All = *((unsigned int*)(&tz));
+	r700->PA_CL_VPORT_ZSCALE.f32All  = sz;
+	r700->PA_CL_VPORT_ZOFFSET.f32All = tz;
 }
 
 




More information about the mesa-commit mailing list