[Mesa-dev] [PATCH v2] vc4: add hash table look-up for exported dmabufs
Eric Anholt
eric at anholt.net
Tue Jul 26 01:38:58 UTC 2016
Rob Clark <robdclark at gmail.com> writes:
> On Mon, Jul 25, 2016 at 8:47 PM, Eric Anholt <eric at anholt.net> wrote:
>> Rob Herring <robh at kernel.org> writes:
>>
>>> It is necessary to reuse existing BOs when dmabufs are imported. There
>>> are 2 cases that need to be handled. dmabufs can be created/exported and
>>> imported by the same process and can be imported multiple times.
>>> Copying other drivers, add a hash table to track exported BOs so the
>>> BOs get reused.
>>>
>>> Cc: Eric Anholt <eric at anholt.net>
>>> Signed-off-by: Rob Herring <robh at kernel.org>
>>
>> Looks good to me, other than a bit of funny whitespace that I'll fix up.
>> I built a piglit test for this today (want to go take a look at those?),
>> and once I get a piglit run through, I'll push the change.
>
> I don't suppose you have a branch somewhere? I should probably give
> that a try.. I've had
> https://trello.com/c/x34U0kTQ/114-teach-piglit-about-libdrm-freedreno-for-dmabuf-tests
> on my todo list for a while (but a generic gbm based solution seems
> even better than teaching piglit about libdrm_$drivername ;-))
https://cgit.freedesktop.org/~anholt/piglit/log/?h=dmabuf-refcount
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160725/bc037fc9/attachment.sig>
More information about the mesa-dev
mailing list