svga: silence some MSVC signed/unsigned comparison warnings
This commit is contained in:
parent
4d0458dc6e
commit
25cd2c2a8a
|
@ -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++) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue