mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 23:28:12 +02:00
This change is inspired from iris_destroy_context().
For instance, this issue is triggered with
"piglit/bin/glsl-1.50-gs-max-output -scan 1 20 -auto -fbo":
Direct leak of 320 byte(s) in 2 object(s) allocated from:
#0 0x7f34fc769987 in calloc (/usr/lib64/libasan.so.6+0xb1987)
#1 0x7f34f4fa168a in bo_calloc ../src/gallium/drivers/crocus/crocus_bufmgr.c:288
#2 0x7f34f4fa168a in alloc_fresh_bo ../src/gallium/drivers/crocus/crocus_bufmgr.c:350
#3 0x7f34f4fa168a in bo_alloc_internal ../src/gallium/drivers/crocus/crocus_bufmgr.c:419
#4 0x7f34f4fe50a9 in crocus_get_scratch_space ../src/gallium/drivers/crocus/crocus_program.c:2678
#5 0x7f34f55e8954 in crocus_upload_dirty_render_state ../src/gallium/drivers/crocus/crocus_state.c:6871
#6 0x7f34f55e8954 in crocus_upload_render_state ../src/gallium/drivers/crocus/crocus_state.c:7812
#7 0x7f34f5d9f680 in crocus_simple_draw_vbo ../src/gallium/drivers/crocus/crocus_draw.c:332
#8 0x7f34f5d9f680 in crocus_draw_vbo ../src/gallium/drivers/crocus/crocus_draw.c:438
#9 0x7f34f1d2eeba in tc_call_draw_single ../src/gallium/auxiliary/util/u_threaded_context.c:3735
#10 0x7f34f1d12e03 in batch_execute ../src/gallium/auxiliary/util/u_threaded_context.c:394
#11 0x7f34f1d12e03 in tc_batch_execute ../src/gallium/auxiliary/util/u_threaded_context.c:445
#12 0x7f34f1d22c9a in _tc_sync ../src/gallium/auxiliary/util/u_threaded_context.c:680
#13 0x7f34f1d238f8 in tc_texture_map ../src/gallium/auxiliary/util/u_threaded_context.c:2754
#14 0x7f34f120b9d9 in pipe_texture_map_3d ../src/gallium/auxiliary/util/u_inlines.h:579
#15 0x7f34f120b9d9 in st_ReadPixels ../src/mesa/state_tracker/st_cb_readpixels.c:530
#16 0x7f34f10d7355 in read_pixels ../src/mesa/main/readpix.c:1178
#17 0x7f34f10d7355 in _mesa_ReadnPixelsARB ../src/mesa/main/readpix.c:1195
#18 0x7f34f10d7e10 in _mesa_ReadPixels ../src/mesa/main/readpix.c:1210
Fixes:
|
||
|---|---|---|
| .. | ||
| ci | ||
| crocus_batch.c | ||
| crocus_batch.h | ||
| crocus_blit.c | ||
| crocus_blorp.c | ||
| crocus_blt.c | ||
| crocus_bufmgr.c | ||
| crocus_bufmgr.h | ||
| crocus_clear.c | ||
| crocus_context.c | ||
| crocus_context.h | ||
| crocus_defines.h | ||
| crocus_disk_cache.c | ||
| crocus_draw.c | ||
| crocus_fence.c | ||
| crocus_fence.h | ||
| crocus_fine_fence.c | ||
| crocus_fine_fence.h | ||
| crocus_formats.c | ||
| crocus_genx_macros.h | ||
| crocus_genx_protos.h | ||
| crocus_monitor.c | ||
| crocus_monitor.h | ||
| crocus_perf.c | ||
| crocus_perf.h | ||
| crocus_performance_query.c | ||
| crocus_pipe.h | ||
| crocus_pipe_control.c | ||
| crocus_program.c | ||
| crocus_program_cache.c | ||
| crocus_query.c | ||
| crocus_resolve.c | ||
| crocus_resource.c | ||
| crocus_resource.h | ||
| crocus_screen.c | ||
| crocus_screen.h | ||
| crocus_state.c | ||
| crocus_todo.txt | ||
| driinfo_crocus.h | ||
| gen4_blorp_exec.h | ||
| meson.build | ||