mt->buffer = ws->buffer_create(ws, 256, PIPE_BUFFER_USAGE_PIXEL,
mt->total_size);
if (!mt->buffer) {
- free(mt);
+ FREE(mt);
return NULL;
}
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);
}
}
vpc->high_temp = -1;
if (!nv40_vertprog_prepare(vpc)) {
- free(vpc);
+ FREE(vpc);
return;
}
vp->translated = TRUE;
out_err:
tgsi_parse_free(&parse);
- free(vpc);
+ FREE(vpc);
}
static boolean
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 = {