svga: silence some MSVC signed/unsigned comparison warnings

This commit is contained in:
Brian Paul 2012-10-16 17:54:37 -06:00
parent 4d0458dc6e
commit 25cd2c2a8a
11 changed files with 13 additions and 11 deletions

View File

@ -63,7 +63,7 @@ fail:
void svga_hwtnl_destroy( struct svga_hwtnl *hwtnl )
{
int i, j;
unsigned i, j;
for (i = 0; i < PIPE_PRIM_MAX; i++) {
for (j = 0; j < IDX_CACHE_MAX; j++) {

View File

@ -59,7 +59,7 @@ svga_user_buffer_range(struct svga_context *svga,
unsigned instance_count)
{
const struct pipe_vertex_element *ve = svga->curr.velems->velem;
int i;
unsigned i;
/*
* Release old uploaded range (if not done already) and

View File

@ -75,7 +75,7 @@ static void svga_set_framebuffer_state(struct pipe_context *pipe,
struct svga_context *svga = svga_context(pipe);
struct pipe_framebuffer_state *dst = &svga->curr.framebuffer;
boolean propagate = FALSE;
int i;
unsigned i;
dst->width = fb->width;
dst->height = fb->height;

View File

@ -133,7 +133,7 @@ svga_transfer_dma(struct svga_context *svga,
}
}
else {
unsigned y, h, srcy;
int y, h, srcy;
unsigned blockheight = util_format_get_blockheight(st->base.resource->format);
h = st->hw_nblocksy * blockheight;
srcy = 0;

View File

@ -172,7 +172,8 @@ svga_validate_sampler_view(struct svga_context *svga, struct svga_sampler_view *
struct svga_texture *tex = svga_texture(v->texture);
unsigned numFaces;
unsigned age = 0;
int i, k;
int i;
unsigned k;
assert(svga);

View File

@ -190,7 +190,7 @@ svga_update_state(struct svga_context *svga, unsigned max_level)
{
struct svga_screen *screen = svga_screen(svga->pipe.screen);
enum pipe_error ret = PIPE_OK;
int i;
unsigned i;
/* Check for updates to bound textures. This can't be done in an
* atom as there is no flag which could provoke this test, and we

View File

@ -165,7 +165,7 @@ make_fs_key(const struct svga_context *svga,
struct svga_fragment_shader *fs,
struct svga_fs_compile_key *key)
{
int i;
unsigned i;
int idx = 0;
memset(key, 0, sizeof *key);

View File

@ -37,7 +37,7 @@
void svga_cleanup_tss_binding(struct svga_context *svga)
{
int i;
unsigned i;
unsigned count = MAX2( svga->curr.num_sampler_views,
svga->state.hw_draw.num_views );

View File

@ -177,7 +177,7 @@ svga_vbuf_submit_state( struct svga_vbuf_render *svga_render )
struct svga_context *svga = svga_render->svga;
SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS];
enum pipe_error ret;
int i;
unsigned i;
/* if the vdecl or vbuf hasn't changed do nothing */
if (!svga->swtnl.new_vdecl)

View File

@ -156,7 +156,8 @@ svga_swtnl_update_vdecl( struct svga_context *svga )
struct svga_fragment_shader *fs = svga->curr.fs;
int offset = 0;
int nr_decls = 0;
int src, i;
int src;
unsigned i;
memset(vinfo, 0, sizeof(*vinfo));
memset(vdecl, 0, sizeof(vdecl));

View File

@ -3098,7 +3098,7 @@ static boolean emit_inverted_texcoords( struct svga_shader_emitter *emit )
static INLINE boolean
needs_to_create_zero( struct svga_shader_emitter *emit )
{
int i;
unsigned i;
if (emit->unit == PIPE_SHADER_FRAGMENT) {
if (emit->key.fkey.light_twoside)