<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - VLC video has corrupted colors when using VDPAU output on Radeon SI"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99637#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - VLC video has corrupted colors when using VDPAU output on Radeon SI"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99637">bug 99637</a>
from <span class="vcard"><a class="email" href="mailto:nayan26deshmukh@gmail.com" title="Nayan Deshmukh <nayan26deshmukh@gmail.com>"> <span class="fn">Nayan Deshmukh</span></a>
</span></b>
<pre>The problem is already fixed in the master branch. This patch fixes the issue.
Commit: 31908d6a4a3309f4cd4b953d6eecdf41595b1299
st/vdpau: only send buffers with B8G8R8A8 format to X
PresentPixmap only works if the pixmap depth matches with the
window depth, otherwise it returns a BadMatch protocol error.
Even if the depths match, the result won't look correctly
if the VDPAU RGB component order doesn't match the X11 one so
we only allow the X11 format.
For other buffers we copy them to a buffer which is send to X.
v2: only send buffers with format VDP_RGBA_FORMAT_B8G8R8A8
v3: reword commit message
v4: add comment explaining the code
Signed-off-by: Nayan Deshmukh <<a href="mailto:nayan26deshmukh@gmail.com">nayan26deshmukh@gmail.com</a>>
Reviewed-by: Christian König <<a href="mailto:christian.koenig@amd.com">christian.koenig@amd.com</a>>
Can you test with this patch?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>