summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r200/r200_sanity.c
diff options
context:
space:
mode:
authorRoland Scheidegger <rscheidegger@gmx.ch>2006-03-28 17:22:57 +0000
committerRoland Scheidegger <rscheidegger@gmx.ch>2006-03-28 17:22:57 +0000
commit08e62a147618ac796f5e548bdaa3380342ec2a78 (patch)
tree6f5bb1d6ee38753e11a2090a06f68780e6da1124 /src/mesa/drivers/dri/r200/r200_sanity.c
parent0e26ca083441e3c76ddbae3699befde92b4933dd (diff)
fix missing *_STATECHANGE in *UpdateViewportOffset for radeon, r200 and r300 (reported by Jim Duchek). Fix some potential problems with strict-aliasing with r200 and radeon drivers in *UpdateViewportOffset, *PolygonOffset and *UpdateWindow functions (some compiler warnings about strict-aliasing remain in the codegen vertex code, and there may be more problems unnoticed by the compiler).
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_sanity.c')
-rw-r--r--src/mesa/drivers/dri/r200/r200_sanity.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_sanity.c b/src/mesa/drivers/dri/r200/r200_sanity.c
index 645e4165e8..4dc87cd945 100644
--- a/src/mesa/drivers/dri/r200/r200_sanity.c
+++ b/src/mesa/drivers/dri/r200/r200_sanity.c
@@ -763,9 +763,11 @@ static int print_float_reg_assignment( struct reg *reg, float data )
static int print_reg_assignment( struct reg *reg, int data )
{
+ float_ui32_type datau;
+ datau.ui32 = data;
reg->flags |= TOUCHED;
if (reg->flags & ISFLOAT)
- return print_float_reg_assignment( reg, *(float *)&data );
+ return print_float_reg_assignment( reg, datau.f );
else
return print_int_reg_assignment( reg, data );
}