projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7c5e9b
)
llvmpipe: use unsigned type to avoid warnings
author
Brian Paul
<brianp@vmware.com>
Fri, 16 Apr 2010 19:01:18 +0000
(13:01 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 16 Apr 2010 19:01:18 +0000
(13:01 -0600)
src/gallium/drivers/llvmpipe/lp_bld_depth.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_bld_depth.c
b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
index a181a037f8df3a53b9d903418edff14edfba8789..afdf4009af0436dc143b292ac92648bb57bc0a25 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_bld_depth.c
+++ b/
src/gallium/drivers/llvmpipe/lp_bld_depth.c
@@
-383,7
+383,7
@@
get_z_shift_and_mask(const struct util_format_description *format_desc,
{
const unsigned total_bits = format_desc->block.bits;
unsigned z_swizzle;
-
int
chan;
+
unsigned
chan;
unsigned padding_left, padding_right;
assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS);
@@
-427,7
+427,7
@@
get_s_shift_and_mask(const struct util_format_description *format_desc,
unsigned *shift, unsigned *mask)
{
unsigned s_swizzle;
-
int
chan, sz;
+
unsigned
chan, sz;
s_swizzle = format_desc->swizzle[1];