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++) {
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
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;
}
}
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;
struct svga_texture *tex = svga_texture(v->texture);
unsigned numFaces;
unsigned age = 0;
- int i, k;
+ int i;
+ unsigned k;
assert(svga);
{
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
struct svga_fragment_shader *fs,
struct svga_fs_compile_key *key)
{
- int i;
+ unsigned i;
int idx = 0;
memset(key, 0, sizeof *key);
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 );
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)
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));
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)