nv50: pass vtxbuf index as unsigned
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Jan 2014 16:55:52 +0000 (16:55 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 18 Jan 2014 19:17:28 +0000 (19:17 +0000)
The index passed to the function is already unsigned, and internally
we threat it as unsigned.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_vbo.c

index 1dcccfe0806585d4759bf26172759f52ec9a70da..208c116b567f56ac48a1214646a9d2664dc4f062 100644 (file)
@@ -189,7 +189,7 @@ nv50_emit_vtxattr(struct nv50_context *nv50, struct pipe_vertex_buffer *vb,
 }
 
 static INLINE void
-nv50_user_vbuf_range(struct nv50_context *nv50, int vbi,
+nv50_user_vbuf_range(struct nv50_context *nv50, unsigned vbi,
                      uint32_t *base, uint32_t *size)
 {
    assert(vbi < PIPE_MAX_ATTRIBS);