d3d12: Suppress expected leak reports

Such leaks are expected and intended ones

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6395>
This commit is contained in:
Seungha Yang 2024-03-16 22:37:46 +09:00 committed by GStreamer Marge Bot
parent a1c8fc6163
commit 6de5eab1e4
3 changed files with 12 additions and 0 deletions

View file

@ -207,6 +207,8 @@ gst_d3d12_command_allocator_pool_acquire (GstD3D12CommandAllocatorPool * pool,
}
new_cmd = gst_d3d12_command_allocator_new (ca.Get (), priv->cmd_type);
if (GST_OBJECT_FLAG_IS_SET (pool, GST_OBJECT_FLAG_MAY_BE_LEAKED))
GST_MINI_OBJECT_FLAG_SET (new_cmd, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
}
new_cmd->pool = (GstD3D12CommandAllocatorPool *) gst_object_ref (pool);

View file

@ -210,6 +210,8 @@ gst_d3d12_command_list_pool_acquire (GstD3D12CommandListPool * pool,
}
new_cmd = gst_d3d12_command_list_new (cl.Get (), priv->cmd_type);
if (GST_OBJECT_FLAG_IS_SET (pool, GST_OBJECT_FLAG_MAY_BE_LEAKED))
GST_MINI_OBJECT_FLAG_SET (new_cmd, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
} else {
new_cmd->cl->QueryInterface (IID_PPV_ARGS (&cl));
hr = cl->Reset (ca, nullptr);

View file

@ -738,6 +738,14 @@ gst_d3d12_device_new_internal (const GstD3D12DeviceConstructData * data)
priv->rtv_inc_size =
device->GetDescriptorHandleIncrementSize (D3D12_DESCRIPTOR_HEAP_TYPE_RTV);
GST_OBJECT_FLAG_SET (priv->direct_queue, GST_OBJECT_FLAG_MAY_BE_LEAKED);
GST_OBJECT_FLAG_SET (priv->direct_cl_pool, GST_OBJECT_FLAG_MAY_BE_LEAKED);
GST_OBJECT_FLAG_SET (priv->direct_ca_pool, GST_OBJECT_FLAG_MAY_BE_LEAKED);
GST_OBJECT_FLAG_SET (priv->copy_queue, GST_OBJECT_FLAG_MAY_BE_LEAKED);
GST_OBJECT_FLAG_SET (priv->copy_cl_pool, GST_OBJECT_FLAG_MAY_BE_LEAKED);
GST_OBJECT_FLAG_SET (priv->copy_ca_pool, GST_OBJECT_FLAG_MAY_BE_LEAKED);
return self;
error: