From: José Fonseca Date: Sun, 25 Sep 2011 10:48:00 +0000 (+0100) Subject: llvmpipe: Always use memory allocation macros. X-Git-Tag: 062012170305~4244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6921d4cd57927da779b4ff773ba85cfb67c7f7f1;p=profile%2Fivi%2Fmesa.git llvmpipe: Always use memory allocation macros. --- diff --git a/src/gallium/drivers/llvmpipe/lp_tile_image.c b/src/gallium/drivers/llvmpipe/lp_tile_image.c index 0938f7a..4d53cde 100644 --- a/src/gallium/drivers/llvmpipe/lp_tile_image.c +++ b/src/gallium/drivers/llvmpipe/lp_tile_image.c @@ -33,6 +33,7 @@ #include "util/u_format.h" +#include "util/u_memory.h" #include "lp_tile_soa.h" #include "lp_tile_image.h" @@ -313,7 +314,7 @@ test_tiled_linear_conversion(void *data, unsigned wt = (width + TILE_SIZE - 1) / TILE_SIZE; unsigned ht = (height + TILE_SIZE - 1) / TILE_SIZE; - uint8_t *tiled = malloc(wt * ht * TILE_SIZE * TILE_SIZE * 4); + uint8_t *tiled = MALLOC(wt * ht * TILE_SIZE * TILE_SIZE * 4); /*unsigned tiled_stride = wt * TILE_SIZE * TILE_SIZE * 4;*/ @@ -323,6 +324,6 @@ test_tiled_linear_conversion(void *data, lp_tiled_to_linear(tiled, data, 0, 0, width, height, format, stride, wt); - free(tiled); + FREE(tiled); }