Skip to content

gallium/u_threaded: fix pipe_resource leak for staging transfer

In 2900f82e I mistakenly used tc_set_resource_reference in both tc_transfer_unmap and tc_call_transfer_unmap.

This causes a leak because tc_call_transfer_unmap clears dst before acquiring a reference, so it must only be used when initializing tc_payloads.

This fixes the perf drop reported by Marek in MR 7098.

Fixes: 2900f82e ("gallium/u_threaded: fix staging and non-staging conflicts")

Merge request reports