projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e967c5b
)
i965: make swizzle_for_size() return unsigned
author
Brian Paul
<brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000
(10:38 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000
(10:38 -0600)
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 <chad@chad-versace.us>
src/mesa/drivers/dri/i965/brw_vec4.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4.h
b/src/mesa/drivers/dri/i965/brw_vec4.h
index 1caf1a665134c12929ce2b02cde6a1fc8e873951..eae841c6d036444a3a751138b2bc69fe552e86aa 100644
(file)
--- 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),