From 2dbffb30f05fcf67658c64b8101e9efaf07ca388 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 27 Jun 2005 00:34:17 +0000 Subject: Get rid of the MESA_PBUFFER_ALLOC/FREE() macros. If that stuff is still needed, lots of other updates are needed anyway. Also, some misc MALLOC/FREE -> _mesa_malloc/free() changes. --- src/mesa/drivers/dri/unichrome/via_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/dri/unichrome') diff --git a/src/mesa/drivers/dri/unichrome/via_fb.c b/src/mesa/drivers/dri/unichrome/via_fb.c index e1215585ae..e07c200b32 100644 --- a/src/mesa/drivers/dri/unichrome/via_fb.c +++ b/src/mesa/drivers/dri/unichrome/via_fb.c @@ -156,7 +156,7 @@ via_alloc_texture(struct via_context *vmesa, } else if (t->memType == VIA_MEM_SYSTEM) { - t->bufAddr = MESA_PBUFFER_ALLOC(t->size); + t->bufAddr = _mesa_malloc(t->size); if (!t->bufAddr) goto cleanup; @@ -226,8 +226,8 @@ via_free_texture(struct via_context *vmesa, struct via_tex_buffer *t) else if (t->memType == VIA_MEM_SYSTEM) { remove_from_list(t); vmesa->total_alloc[t->memType] -= t->size; - MESA_PBUFFER_FREE(t->bufAddr); - FREE(t); + _mesa_free(t->bufAddr); + _mesa_free(t); } else if (t->index && viaCheckBreadcrumb(vmesa, t->lastUsed)) { via_do_free_texture( vmesa, t ); -- cgit v1.2.3