[Mesa-dev] [PATCH v2] st/vdpau: only send buffers with B8G8R8A8 format to X

Christian König deathsimple at vodafone.de
Thu Jan 19 09:13:14 UTC 2017


Am 19.01.2017 um 07:45 schrieb Michel Dänzer:
> On 19/01/17 02:10 PM, Nayan Deshmukh wrote:
>> PresentPixmap only works if the pixmap depth and format matches
>> with the window, otherwise it returns a BadMatch protocol error.
> Nitpick: PresentPixmap only returns BadMatch if the depths don't match.
> It doesn't know anything about formats, so if the VDPAU format doesn't
> match the window visual, PresentPixmap will "work" but the result will
> have incorrect colours.
>
>
> Other than that, looks good to me.
Additional to what Michel wrote, please add this comment to the code and 
not only the commit message.

Apart from that it looks good to me as well.

Regards,
Christian.


More information about the mesa-dev mailing list