Bug 96600 - [RV630]: a lot of artifacts appears on a screen playing some videos through VDPAU with hardware acceleration
Summary: [RV630]: a lot of artifacts appears on a screen playing some videos through V...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-20 15:56 UTC by Eugene
Modified: 2017-01-19 09:13 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
video with artifacts screen shot (219.83 KB, image/png)
2016-06-20 15:56 UTC, Eugene
Details
dmesg (74.42 KB, text/plain)
2016-06-20 16:04 UTC, Eugene
Details
glxinfo (98.21 KB, text/plain)
2016-06-20 16:04 UTC, Eugene
Details
syslog (36.21 KB, text/plain)
2016-06-20 16:05 UTC, Eugene
Details
Xorg log (34.85 KB, text/plain)
2016-06-20 16:05 UTC, Eugene
Details
glitch (444.58 KB, image/jpeg)
2016-06-21 04:45 UTC, Vladimir Usikov
Details

Description Eugene 2016-06-20 15:56:54 UTC
Created attachment 124617 [details]
video with artifacts screen shot

Using mpv player:

mpv -vo vdpau -hwdec=vdpau file.wmv

I'm expiriencing a lot of artifacts appears on a screen during playback. Please see screenshot in attachment.

With next options:

mpv - vo vdpau -hwdec=no file.wmv

it plays good without any distortions.

So it seems the artifacts appears only with hardware acceleration enabled.

Note that the same issue us not only with git drivers but with stable too.

Linux 4.6.2-040602-generic x86_64
Kubuntu 16.04 LTS

mesa-vdpau-drivers: 12.1~git1606191930.154c0a~gd~x
xserver-xorg-video-radeon: 7.7.99+git1606011933.0945db~gd~x


$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.1.0-devel (git-154c0a4 2016-06-19 xenial-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.0 Mesa 12.1.0-devel (git-154c0a4 2016-06-19 xenial-oibaf-ppa)
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.1.0-devel (git-154c0a4 2016-06-19 xenial-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Comment 1 Eugene 2016-06-20 16:01:57 UTC
$ lspci | grep -i vga
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV630 XT [Radeon HD 2600 XT]

In attachment is a screen shot of this video: http://www.educationalquestions.com/video/ELL_PART_5_768k.wmv
Comment 2 Eugene 2016-06-20 16:04:33 UTC
Created attachment 124618 [details]
dmesg
Comment 3 Eugene 2016-06-20 16:04:53 UTC
Created attachment 124619 [details]
glxinfo
Comment 4 Eugene 2016-06-20 16:05:10 UTC
Created attachment 124620 [details]
syslog
Comment 5 Eugene 2016-06-20 16:05:29 UTC
Created attachment 124621 [details]
Xorg log
Comment 6 Christian König 2016-06-20 18:23:52 UTC
The hardware is just to old to take a look into this.

It's most likely just that the player doesn't correctly checks if the file can be played by the hardware or not.

Please provide the output of vdpauinfo.
Comment 7 Eugene 2016-06-20 22:20:58 UTC
$ vdpauinfo
display: :0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420     8192  8192  NV12 YV12 
422     8192  8192  UYVY YUYV 
444     8192  8192  Y8U8V8A8 V8U8Y8A8 

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                    3  9216  2048  1152
MPEG2_MAIN                      3  9216  2048  1152
H264_BASELINE                  41  9216  2048  1152
H264_MAIN                      41  9216  2048  1152
H264_HIGH                      41  9216  2048  1152
VC1_SIMPLE                      1  9216  2048  1152
VC1_MAIN                        2  9216  2048  1152
VC1_ADVANCED                    4  9216  2048  1152
MPEG4_PART2_SP                 --- not supported ---
MPEG4_PART2_ASP                --- not supported ---
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
R8G8B8A8          8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
R10G10B10A2       8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
B10G10R10A2       8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          8192  8192
R8G8B8A8          8192  8192
R10G10B10A2       8192  8192
B10G10R10A2       8192  8192
A8                8192  8192

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y
Comment 8 Eugene 2016-06-20 22:24:41 UTC
Note that VLC also plays with artifacts. And  in earlier distro versions, 14.04LTS - 15.10 there was no such issues playing such files.
Comment 9 Vladimir Usikov 2016-06-21 04:45:01 UTC
Created attachment 124632 [details]
glitch

I have same bug in my Radeon 7950. Looks like its not r600g driver only, more complex problem.
During playbaсk in radeontop Graphics pipe loaded on 95-100%. And litle glitch appears in right corner.
Comment 10 Christian König 2016-06-21 08:17:32 UTC
Indeed the clip causes problems even on newer hardware as well. Going to take a look.
Comment 11 russianneuromancer 2016-12-15 10:37:27 UTC
Hi
Any progress on this?
Comment 12 Vladimir Usikov 2017-01-08 05:16:05 UTC
No more artifacts in this video on mesa-git 1d529cba02
Comment 13 Nicolai Hähnle 2017-01-19 09:13:58 UTC
Closing per comment #12.


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.