Martin Peres <martin.pe...@linux.intel.com> writes:

> This mirrors the codepath taken by DRI2 in IntelSetTexBuffer2() and
> fixes many applications when using DRI3:
>  - Totem with libva on hw-accelerated decoding
>  - obs-studio, using Window Capture (Xcomposite) as a Source
>  - gstreamer with VAAPI
>
> Cc: mesa-sta...@lists.freedesktop.org
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71759
> Tested-by: Fabrice Bellet <fabr...@bellet.info>
> Signed-off-by: Martin Peres <martin.pe...@linux.intel.com>
> ---
>
> I have been testing the patch on my main desktop for a day and did not
> encounter any issue with it. This is however quite a corner case and
> most people never had this issue anyway.
>
> If this patch is not accepted, then we will need to change the loader's
> GetBuffers() method so as it either does not import the buffers or takes
> the context as a parameter.

Not sure if you've seen, but the gallium drivers are doing an fstat on
the DRM fd, hashing the st_dev/st_ino/st_rdev, and reusing an existing
screen when it matches.  This might be really useful for Intel, too.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to