diff options
author | Roland Scheidegger <[email protected]> | 2006-03-28 17:22:57 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2006-03-28 17:22:57 +0000 |
commit | 08e62a147618ac796f5e548bdaa3380342ec2a78 (patch) | |
tree | 6f5bb1d6ee38753e11a2090a06f68780e6da1124 /src/mesa/drivers/dri/radeon/radeon_context.h | |
parent | 0e26ca083441e3c76ddbae3699befde92b4933dd (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/radeon/radeon_context.h')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.h b/src/mesa/drivers/dri/radeon/radeon_context.h index d6dc9c46ed4..09fa948ccba 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_context.h @@ -52,6 +52,10 @@ struct radeon_context; typedef struct radeon_context radeonContextRec; typedef struct radeon_context *radeonContextPtr; +/* This union is used to avoid warnings/miscompilation + with float to uint32_t casts due to strict-aliasing */ +typedef union { GLfloat f; uint32_t ui32; } float_ui32_type; + #include "radeon_lock.h" #include "radeon_screen.h" #include "mm.h" |