571b5f5000
When dealing with debug logging, it's useful to track when an object's construction is finished and it's now visible to the client. We can detect this pretty easily by setting a flag the first time foo_to_handle is called. As long as drivers only ever call that function at the end of object construction (they all do to my knowledge), this should be a reliable mechanism for detecting when a client knows about a handle. Tested-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13045>