diff options
author | Brian Paul <[email protected]> | 2011-10-07 10:38:30 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-10-07 10:38:30 -0600 |
commit | cea946307f319cc7cf3e2cf730be34cd51047965 (patch) | |
tree | 0f0099adb2643fa0835b2c94e3add57b727a67e2 /src | |
parent | e967c5b38fcde15a7e78910239735d851e7a7e40 (diff) |
i965: make swizzle_for_size() return unsigned
Silences a warning about comparing to an unsigned variable. It looks like
the result of swizzle_for_size() is always assigned to unsigned vars.
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 1caf1a66513..eae841c6d03 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -47,10 +47,10 @@ class dst_reg; * channels, as that will tell optimization passes that those other * channels are used. */ -static int +static unsigned swizzle_for_size(int size) { - static const int size_swizzles[4] = { + static const unsigned size_swizzles[4] = { BRW_SWIZZLE4(SWIZZLE_X, SWIZZLE_X, SWIZZLE_X, SWIZZLE_X), BRW_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y), BRW_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_Z), |