Am 29.01.21 um 15:17 schrieb Simon Ser:
On Friday, January 29th, 2021 at 3:13 PM, Pekka Paalanen <ppaalanen@xxxxxxxxx> wrote:
Re-importing it adds quite a huge CPU overhead to both userspace as well
as the kernel.
Perhaps, but so far it seems no-one has noticed the overhead, with Mesa
at least.
I happily stand corrected.
Note, all of this doesn't mean that compositors will stop keeping
DMA-BUF FDs around. They may want to keep them open for other purposes
like importing them into KMS or other EGL displays as needed.
Correct and that's a perfectly valid use case. Just re-importing it on
every frame is something we should really try to avoid.
At least with debugging enabled it's massive overhead and maybe even
performance penalty when we have to re-create device page tables all the
time.
But thinking more about that it is possible that we short-cut this step
as long as the original import was still referenced. Otherwise we
probably would have noticed this much earlier.
Regards,
Christian.
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel