[Mesa-dev] [PATCH 0/4] Add some memory alloc/free debuging to the r600 driver
marvin24 at gmx.de
marvin24 at gmx.de
Sat Jun 12 13:13:31 PDT 2010
Hi,
patches below add some memory debuging functions to the r600 driver.
Unavoidably, some radeon/common code is also touched. I'm willing to update
the other radeon drivers if this patch is acceptable.
The last patch fix some warnings, hope it is correct.
I tested the patch here and it compiles and seems to run well.
Marc
Marc (4):
add some malloc debug functions
replace malloc/free with debug MACROS
replace reallocs with MACRO
fix warnings
src/mesa/drivers/dri/r600/r600_cmdbuf.c | 40 +++++++-------
src/mesa/drivers/dri/r600/r700_assembler.c | 27 +++------
src/mesa/drivers/dri/r600/r700_oglprog.c | 2 +-
src/mesa/drivers/dri/r600/r700_vertprog.c | 2 +-
src/mesa/drivers/dri/radeon/radeon_bo_legacy.c | 22 ++++----
.../drivers/dri/radeon/radeon_buffer_objects.c | 2 +-
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c | 28 +++++-----
src/mesa/drivers/dri/radeon/radeon_debug.h | 61 ++++++++++++++++++++
src/mesa/drivers/dri/radeon/radeon_fbo.c | 4 +-
src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c | 14 ++--
src/mesa/drivers/dri/radeon/radeon_queryobj.c | 4 +-
src/mesa/drivers/dri/radeon/radeon_screen.c | 4 +-
src/mesa/drivers/dri/radeon/radeon_texture.c | 4 +-
src/mesa/main/imports.h | 2 +
14 files changed, 136 insertions(+), 80 deletions(-)
More information about the mesa-dev
mailing list