[Mesa-dev] [PATCH v3] vl/dri3: use external texture as back buffers(v3)

Leo Liu leo.liu at amd.com
Mon Nov 7 15:01:02 UTC 2016



On 11/05/2016 02:44 AM, Nayan Deshmukh wrote:
> Hi Leo,
>
> Thanks for the reference patch.
>
>       There are only a number of output surfaces taking turns as the
> mixer render targets, so we probably can use the same pixmap
>       corresponding to each of output surface texture.
>
> The mixer renders to a VdpOutputSurface which is provided to it by the
> application, so we can't make any assumptions on the surface that will
> be provided it may or may not be the same. Instead we could have
> additional fields in vlVdpOutputSurface which stores the handle and
> pixamp of the texture.

What I meant is in vl dri3 to store certain numbers of pixmaps, and 
update them when texture, handle, size
changed by calling "pixmap_from_buffer", if the same buffer got reused, 
and then we just can use the same pixmap
for present.

I just tried the mpv, if no resizing, there are only 3 textures in turn.

I think we should avoid this "creating new pixmap frame by frame", what 
do you think?

Regards,
Leo

>
> Regards,
> Nayan



More information about the mesa-dev mailing list