diff options
author | Keith Whitwell <[email protected]> | 2009-12-24 12:45:42 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-12-24 12:53:06 +0000 |
commit | 6c30e17f9eb572f1bb9b80652a8c6c0d838d0498 (patch) | |
tree | 63189c7962a4aa837a208383ea83a8371363f533 /src | |
parent | e4069d07ddd8c2afa5378e54710e19e7517d43d6 (diff) |
i965g: strict aliasing changes
Diffstat (limited to 'src')
-rw-r--r-- | 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 211be881789..452e1e89f93 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 ); } } |