[Mesa-dev] [PATCH 2/3] gallium: add a pipe_context parameter to resource_get_handle
Marek Olšák
maraeo at gmail.com
Wed Aug 24 16:31:48 UTC 2016
On Wed, Aug 24, 2016 at 5:56 PM, Roland Scheidegger <sroland at vmware.com> wrote:
> Am 24.08.2016 um 17:42 schrieb Marek Olšák:
>> On Wed, Aug 24, 2016 at 5:31 PM, Roland Scheidegger <sroland at vmware.com> wrote:
>>> 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.
>>
>> All resources are trivially sharable as long as they are managed by
>> the same pipe_screen. This change is for the kind of sharing that
>> involves an out-of-tree driver component (e.g. OpenCL) or a different
>> process (the EGL DMABUF extension).
>>
>
> So you always need to decompress for that?
Not always, but usually yes.
Marek
More information about the mesa-dev
mailing list