Mesa (master): i965g: strict aliasing changes
Keith Whitwell
keithw at kemper.freedesktop.org
Thu Dec 24 12:53:59 UTC 2009
Module: Mesa
Branch: master
Commit: 6c30e17f9eb572f1bb9b80652a8c6c0d838d0498
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c30e17f9eb572f1bb9b80652a8c6c0d838d0498
Author: Keith Whitwell <keithw at vmware.com>
Date: Thu Dec 24 12:45:42 2009 +0000
i965g: strict aliasing changes
---
src/gallium/drivers/i965/brw_pipe_clear.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/i965/brw_pipe_clear.c b/src/gallium/drivers/i965/brw_pipe_clear.c
index 211be88..452e1e8 100644
--- a/src/gallium/drivers/i965/brw_pipe_clear.c
+++ b/src/gallium/drivers/i965/brw_pipe_clear.c
@@ -114,18 +114,18 @@ static void color_clear(struct brw_context *brw,
const float *rgba )
{
enum pipe_error ret;
- unsigned value;
+ union util_color value;
util_pack_color( rgba, bsurface->base.format, &value );
if (bsurface->cpp == 2)
- value |= value << 16;
+ value.ui |= value.ui << 16;
- ret = try_clear( brw, bsurface, value );
+ ret = try_clear( brw, bsurface, value.ui );
if (ret != 0) {
brw_context_flush( brw );
- ret = try_clear( brw, bsurface, value );
+ ret = try_clear( brw, bsurface, value.ui );
assert( ret == 0 );
}
}
More information about the mesa-commit
mailing list