Summary: | VLC video has corrupted colors when using VDPAU output on Radeon SI | ||
---|---|---|---|
Product: | Mesa | Reporter: | Matt Whitlock <freedesktop> |
Component: | Drivers/Gallium/radeonsi | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | Default DRI bug account <dri-devel> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 17.0 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Matt Whitlock
2017-02-02 01:19:06 UTC
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 <nayan26deshmukh@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Can you test with this patch? (In reply to Nayan Deshmukh from comment #1) > Can you test with this patch? Applying the patch to 17.0.0 RC2 solves the problem. Thanks. This report should remain open until the fix lands on the 17.0 branch. (In reply to Michel Dänzer from comment #3) > This report should remain open until the fix lands on the 17.0 branch. I will nominate the patch for the 17.0 branch. The patch has landed on 17.0.0-rc3. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.