[Mesa-dev] [PATCH 1/2] gallium: add usage flags to resource_get_handle

Axel Davy axel.davy at ens.fr
Wed Feb 24 23:23:41 UTC 2016


On 25/02/2016 00:10, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This will help differentiate between window-system framebuffers and other
> buffers.
>
> PIPE_HANDLE_USAGE_EXPLICIT_FLUSH should yield higher performance (e.g. allows
> delayed clears), but PIPE_HANDLE_USAGE_COHERENT is more flexible.
>
> Sadly, it looks like st/dri can't distinguish between a DRI3 framebuffer
> and EGL image export.
> ---
Hi,

Here was my old patch serie to solve the same issue a different way:

https://lists.freedesktop.org/archives/mesa-dev/2015-October/097917.html

About my patch serie, the first patch was proposed again by Michel 
Dänzer, but was nacked.

For the rest of the serie, I think the only issue was if you have a 
texture converted to EGLImage and then exported.
Other EGLImage exports were handled right if I remember.

Don't hesitate adapt/improve patches from it to fully solve the problem !

Yours,

Axel


More information about the mesa-dev mailing list