[Mesa-dev] [PATCH 2/3] gallium: add a pipe_context parameter to resource_get_handle
Roland Scheidegger
sroland at vmware.com
Wed Aug 24 15:31:26 UTC 2016
Am 24.08.2016 um 11:22 schrieb Marek Olšák:
> On Wed, Aug 24, 2016 at 2:02 AM, Roland Scheidegger <sroland at vmware.com> wrote:
>> I admit I'm not familiar with the interopability stuff.
>> But how is the coherency stuff handled after you get the handle?
>> Does this also work if you've got multiple users of resource_get_handle?
>
> Basically, radeonsi just makes sure the resource contents are
> decompressed before sharing and flushes the context. After that, the
> resource is ready for sharing and can be re-exported any number of
> times.
>
Ok. I was just thinking of situations where you could share the same
resource between more than two contexts, and not all having the same
requirements (e.g. decompression not always be necessary).
But if the api is flexible enough to handle such things it should be ok.
Roland
More information about the mesa-dev
mailing list