summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/pipe/i965simple/brw_tex_layout.c2
-rw-r--r--src/mesa/pipe/i965simple/brw_winsys.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/i965simple/brw_tex_layout.c b/src/mesa/pipe/i965simple/brw_tex_layout.c
index 7d6e2851b1..2b2bf16f1b 100644
--- a/src/mesa/pipe/i965simple/brw_tex_layout.c
+++ b/src/mesa/pipe/i965simple/brw_tex_layout.c
@@ -237,7 +237,7 @@ static boolean brw_miptree_layout(struct pipe_context *pipe, struct brw_texture
unsigned nr_images = pt->target == PIPE_TEXTURE_3D ? depth : 6;
int x = 0;
int y = 0;
- int q, j;
+ uint q, j;
intel_miptree_set_level_info(tex, level, nr_images,
0, tex->total_height,
diff --git a/src/mesa/pipe/i965simple/brw_winsys.h b/src/mesa/pipe/i965simple/brw_winsys.h
index 49a12a1c27..253599896c 100644
--- a/src/mesa/pipe/i965simple/brw_winsys.h
+++ b/src/mesa/pipe/i965simple/brw_winsys.h
@@ -190,7 +190,7 @@ static inline boolean brw_batchbuffer_data(struct brw_winsys *winsys,
unsigned bytes)
{
static const unsigned incr = sizeof(unsigned);
- int i;
+ uint i;
const unsigned *udata = (const unsigned*)(data);
unsigned size = bytes/incr;
for (i = 0; i < size; ++i) {