Skip to content

zink: stop leaking buffers on replacement

Mike Blumenkrantz requested to merge zmike/mesa:zink-leak2 into main

I tried to be pointlessly clever here to avoid an atomic op, but the move() here ended up leaking a ref in some cases (descriptor bind + multiple replacements in same cmdbuf)

more importantly, it's a stupid idea now that zink_resource_object structs are entirely owned by the driver, meaning their refcounts are never altered in threads, and thus the atomic ops are just regular ops

Merge request reports