llvmpipe: Portability fixes.

This commit is contained in:
José Fonseca 2010-04-22 19:24:30 +01:00
parent ccdc6b5913
commit cdaceaafee
2 changed files with 4 additions and 4 deletions

View File

@ -123,8 +123,8 @@ lp_rast_end( struct lp_rasterizer *rast )
rast->curr_scene = NULL;
if (0)
printf("Post render scene: tile read: %d tile write: %d\n",
tile_read_count, tile_write_count);
debug_printf("Post render scene: tile read: %d tile write: %d\n",
tile_read_count, tile_write_count);
}

View File

@ -85,7 +85,7 @@ alloc_layout_array(unsigned num_slices, unsigned width, unsigned height)
assert(LP_TEX_LAYOUT_NONE == 0); /* calloc'ing LP_TEX_LAYOUT_NONE here */
return (enum lp_texture_layout *)
calloc(num_slices * tx * ty, sizeof(enum lp_texture_layout));
CALLOC(num_slices * tx * ty, sizeof(enum lp_texture_layout));
}
@ -265,7 +265,7 @@ llvmpipe_resource_destroy(struct pipe_screen *pscreen,
/* free layout flag arrays */
for (level = 0; level < Elements(lpr->tiled); level++) {
free(lpr->layout[level]);
FREE(lpr->layout[level]);
lpr->layout[level] = NULL;
}
}