nv40: s/free/FREE/
authorBen Skeggs <skeggsb@gmail.com>
Fri, 21 Mar 2008 11:01:22 +0000 (22:01 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 21 Mar 2008 11:01:22 +0000 (22:01 +1100)
src/gallium/drivers/nv40/nv40_context.c
src/gallium/drivers/nv40/nv40_draw.c
src/gallium/drivers/nv40/nv40_fragprog.c
src/gallium/drivers/nv40/nv40_miptree.c
src/gallium/drivers/nv40/nv40_query.c
src/gallium/drivers/nv40/nv40_vertprog.c

index 58627443b80521334babca813cdb015bba75e11e..7fcf8b86197c42dfca9e6ff3d317539f9a427878 100644 (file)
@@ -40,7 +40,7 @@ nv40_destroy(struct pipe_context *pipe)
 
        if (nv40->draw)
                draw_destroy(nv40->draw);
-       free(nv40);
+       FREE(nv40);
 }
 
 struct pipe_context *
index eb4f2395c4811e9a2f0683487e14a535a5a68c03..7c5e0df5b85acb23f7d2d79c3937f92f1d53dde5 100644 (file)
@@ -158,7 +158,7 @@ nv40_render_reset_stipple_counter(struct draw_stage *draw)
 static void
 nv40_render_destroy(struct draw_stage *draw)
 {
-       free(draw);
+       FREE(draw);
 }
 
 static INLINE void
index 33aac37d569fcdc3fc2f1d5f97ddb2c519ea9192..2d82f86ef5c2721a42531ec080228ed4938d8a03 100644 (file)
@@ -801,7 +801,7 @@ nv40_fragprog_translate(struct nv40_context *nv40,
        fp->translated = TRUE;
 out_err:
        tgsi_parse_free(&parse);
-       free(fpc);
+       FREE(fpc);
 }
 
 static void
@@ -903,7 +903,7 @@ nv40_fragprog_destroy(struct nv40_context *nv40,
                      struct nv40_fragment_program *fp)
 {
        if (fp->insn_len)
-               free(fp->insn);
+               FREE(fp->insn);
 }
 
 struct nv40_state_entry nv40_state_fragprog = {
index 01b3952fe665753b229aa6a3523f5c41833361f2..215b91fcd08003aea34daa9482bd2b812f9ba630 100644 (file)
@@ -72,7 +72,7 @@ nv40_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt)
        mt->buffer = ws->buffer_create(ws, 256, PIPE_BUFFER_USAGE_PIXEL,
                                       mt->total_size);
        if (!mt->buffer) {
-               free(mt);
+               FREE(mt);
                return NULL;
        }
 
@@ -93,9 +93,9 @@ nv40_miptree_release(struct pipe_screen *pscreen, struct pipe_texture **pt)
                pipe_buffer_reference(ws, &nv40mt->buffer, NULL);
                for (l = 0; l <= mt->last_level; l++) {
                        if (nv40mt->level[l].image_offset)
-                               free(nv40mt->level[l].image_offset);
+                               FREE(nv40mt->level[l].image_offset);
                }
-               free(nv40mt);
+               FREE(nv40mt);
        }
 }
 
index 03178456246cefb263cea0a055b7289e7b563a02..a0a30724066c0819bfc6de76ea3732eba80c85ae 100644 (file)
@@ -34,7 +34,7 @@ nv40_query_destroy(struct pipe_context *pipe, struct pipe_query *pq)
 
        if (q->object)
                nv40->nvws->res_free(&q->object);
-       free(q);
+       FREE(q);
 }
 
 static void
index 9f1ee575ce9d0b4cf9ac57b048acca52c3fd236b..385c8aa07806a4473528ca272e76aac6e4f21e2b 100644 (file)
@@ -572,7 +572,7 @@ nv40_vertprog_translate(struct nv40_context *nv40,
        vpc->high_temp = -1;
 
        if (!nv40_vertprog_prepare(vpc)) {
-               free(vpc);
+               FREE(vpc);
                return;
        }
 
@@ -628,7 +628,7 @@ nv40_vertprog_translate(struct nv40_context *nv40,
        vp->translated = TRUE;
 out_err:
        tgsi_parse_free(&parse);
-       free(vpc);
+       FREE(vpc);
 }
 
 static boolean
@@ -805,9 +805,9 @@ void
 nv40_vertprog_destroy(struct nv40_context *nv40, struct nv40_vertex_program *vp)
 {
        if (vp->nr_consts)
-               free(vp->consts);
+               FREE(vp->consts);
        if (vp->nr_insns)
-               free(vp->insns);
+               FREE(vp->insns);
 }
 
 struct nv40_state_entry nv40_state_vertprog = {