summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nv30/nv30_context.c2
-rw-r--r--src/gallium/drivers/nv30/nv30_draw.c2
-rw-r--r--src/gallium/drivers/nv30/nv30_fragprog.c4
-rw-r--r--src/gallium/drivers/nv30/nv30_miptree.c6
-rw-r--r--src/gallium/drivers/nv30/nv30_query.c2
-rw-r--r--src/gallium/drivers/nv30/nv30_state.c4
-rw-r--r--src/gallium/drivers/nv30/nv30_vertprog.c8
7 files changed, 14 insertions, 14 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c
index 1e729d789b..b8e8b86d99 100644
--- a/src/gallium/drivers/nv30/nv30_context.c
+++ b/src/gallium/drivers/nv30/nv30_context.c
@@ -41,7 +41,7 @@ nv30_destroy(struct pipe_context *pipe)
nvws->grobj_free(&nv30->rankine);
- free(nv30);
+ FREE(nv30);
}
static boolean
diff --git a/src/gallium/drivers/nv30/nv30_draw.c b/src/gallium/drivers/nv30/nv30_draw.c
index 59a7265799..8ec0835225 100644
--- a/src/gallium/drivers/nv30/nv30_draw.c
+++ b/src/gallium/drivers/nv30/nv30_draw.c
@@ -40,7 +40,7 @@ nv30_draw_reset_stipple_counter(struct draw_stage *draw)
static void
nv30_draw_destroy(struct draw_stage *draw)
{
- free(draw);
+ FREE(draw);
}
struct draw_stage *
diff --git a/src/gallium/drivers/nv30/nv30_fragprog.c b/src/gallium/drivers/nv30/nv30_fragprog.c
index 6f61d36f4e..51000bd6fc 100644
--- a/src/gallium/drivers/nv30/nv30_fragprog.c
+++ b/src/gallium/drivers/nv30/nv30_fragprog.c
@@ -753,7 +753,7 @@ nv30_fragprog_translate(struct nv30_context *nv30,
fp->on_hw = FALSE;
out_err:
tgsi_parse_free(&parse);
- free(fpc);
+ FREE(fpc);
}
void
@@ -829,6 +829,6 @@ nv30_fragprog_destroy(struct nv30_context *nv30,
struct nv30_fragment_program *fp)
{
if (fp->insn_len)
- free(fp->insn);
+ FREE(fp->insn);
}
diff --git a/src/gallium/drivers/nv30/nv30_miptree.c b/src/gallium/drivers/nv30/nv30_miptree.c
index 6fdcf42a24..afb05fdd2b 100644
--- a/src/gallium/drivers/nv30/nv30_miptree.c
+++ b/src/gallium/drivers/nv30/nv30_miptree.c
@@ -72,7 +72,7 @@ nv30_miptree_create(struct pipe_screen *screen, 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 @@ nv30_miptree_release(struct pipe_screen *screen, struct pipe_texture **pt)
pipe_buffer_reference(ws, &nv30mt->buffer, NULL);
for (l = 0; l <= mt->last_level; l++) {
if (nv30mt->level[l].image_offset)
- free(nv30mt->level[l].image_offset);
+ FREE(nv30mt->level[l].image_offset);
}
- free(nv30mt);
+ FREE(nv30mt);
}
}
diff --git a/src/gallium/drivers/nv30/nv30_query.c b/src/gallium/drivers/nv30/nv30_query.c
index e19cb455dc..0c2d941562 100644
--- a/src/gallium/drivers/nv30/nv30_query.c
+++ b/src/gallium/drivers/nv30/nv30_query.c
@@ -35,7 +35,7 @@ nv30_query_destroy(struct pipe_context *pipe, struct pipe_query *pq)
if (q->object)
nv30->nvws->res_free(&q->object);
- free(q);
+ FREE(q);
}
static void
diff --git a/src/gallium/drivers/nv30/nv30_state.c b/src/gallium/drivers/nv30/nv30_state.c
index 983638adcc..620038fa64 100644
--- a/src/gallium/drivers/nv30/nv30_state.c
+++ b/src/gallium/drivers/nv30/nv30_state.c
@@ -486,7 +486,7 @@ nv30_vp_state_delete(struct pipe_context *pipe, void *hwcso)
struct nv30_vertex_program *vp = hwcso;
nv30_vertprog_destroy(nv30, vp);
- free(vp);
+ FREE(vp);
}
static void *
@@ -522,7 +522,7 @@ nv30_fp_state_delete(struct pipe_context *pipe, void *hwcso)
struct nv30_fragment_program *fp = hwcso;
nv30_fragprog_destroy(nv30, fp);
- free(fp);
+ FREE(fp);
}
static void
diff --git a/src/gallium/drivers/nv30/nv30_vertprog.c b/src/gallium/drivers/nv30/nv30_vertprog.c
index e9b62ff48b..fe1a467565 100644
--- a/src/gallium/drivers/nv30/nv30_vertprog.c
+++ b/src/gallium/drivers/nv30/nv30_vertprog.c
@@ -578,7 +578,7 @@ nv30_vertprog_translate(struct nv30_context *nv30,
vpc->high_temp = -1;
if (!nv30_vertprog_prepare(vpc)) {
- free(vpc);
+ FREE(vpc);
return;
}
@@ -634,7 +634,7 @@ nv30_vertprog_translate(struct nv30_context *nv30,
vp->translated = TRUE;
out_err:
tgsi_parse_free(&parse);
- free(vpc);
+ FREE(vpc);
}
void
@@ -790,8 +790,8 @@ void
nv30_vertprog_destroy(struct nv30_context *nv30, struct nv30_vertex_program *vp)
{
if (vp->nr_consts)
- free(vp->consts);
+ FREE(vp->consts);
if (vp->nr_insns)
- free(vp->insns);
+ FREE(vp->insns);
}