diff options
author | Tapani Pälli <[email protected]> | 2017-10-27 12:54:02 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2017-10-27 13:49:13 +0300 |
commit | 0b131ca427d788ae08426bdeddb8f4bd3c7da202 (patch) | |
tree | 1df29f236e1eea8d7208a4ffcdedf25f5c7e3dd8 /configure.ac | |
parent | eeb3515c3f6ae0eac891559b2f7f8af0659ce5eb (diff) |
i965: unref push_const_bo in intelDestroyContext
Valgrind shows that leak is caused by gen6_upload_push_constant, add
unref push_const_bo per stage to destructor to fix this (like done for
scratch_bo).
==10952== 144 bytes in 1 blocks are definitely lost in loss record 44 of 66
==10952== at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==10952== by 0x8C02847: bo_alloc_internal.constprop.10 (brw_bufmgr.c:344)
==10952== by 0x8C425C4: intel_upload_space (intel_upload.c:101)
==10952== by 0x8C22ED0: gen6_upload_push_constants (gen6_constant_state.c:154)
v2: remove if conditions, brw_bo_unreference handles NULL (Ken, Emil)
Fixes: 24891d7c05 ("i965: Store per-stage push constant BO pointers.")
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: [email protected]
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions