Skip to content

mesa: fix refcnt imbalance related to _mesa_delete_semaphore_object()

Patrick Lerda requested to merge noblock/mesa:mesafixdeletesemaphoreobject into main

What does this MR do and why?

Indeed, the fence reference was not freed.

For instance, this issue is triggered with "piglit/bin/ext_external_objects-vk-semaphores-2 -auto -fbo" while setting GALLIUM_REFCNT_LOG=refcnt.log.

Fixes: 7b6cd912a59a ("mesa/st: get rid of ST_CALLOC_STRUCT use CALLOC_STRUCT")

Signed-off-by: Patrick Lerda <patrick9876@free.fr>

This MR was tested:

  • manually tested on my development machine(s) with the following:
  • repeatedly tested since there is a risk of introducing flakes
  • not applicable

Merge request reports