diff options
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_vtxfmt.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_vtxfmt.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_vtxfmt.c b/src/mesa/drivers/dri/radeon/radeon_vtxfmt.c index 537a1c0352..3b3f459dff 100644 --- a/src/mesa/drivers/dri/radeon/radeon_vtxfmt.c +++ b/src/mesa/drivers/dri/radeon/radeon_vtxfmt.c @@ -1039,7 +1039,7 @@ static void free_funcs( struct dynfn *l ) foreach_s (f, tmp, l) { remove_from_list( f ); _mesa_exec_free( f->code ); - FREE( f ); + _mesa_free( f ); } } diff --git a/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h b/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h index a7d5b8334d..a656e49e44 100644 --- a/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h +++ b/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h @@ -56,8 +56,8 @@ do { \ char *end = (char *)&FUNC##_end; \ insert_at_head( &CACHE, dfn ); \ dfn->key = key; \ - dfn->code = _mesa_exec_malloc( end - start ); \ - memcpy (dfn->code, start, end - start); \ + dfn->code = _mesa_exec_malloc( end - start ); \ + _mesa_memcpy(dfn->code, start, end - start); \ } \ while ( 0 ) |