Skip to contentSkip to conversation

Heavy artifacts during hw accelerated playback of wmv files

DISCUSSION Jan Burgmeier 3 participants 4 messages Mar 30, 2017 – Mar 31, 2017

lore
Share & tools
lore

Jan Burgmeier

author Reviewed-by Alex Deucher
#0 lore raw

Hi,

with versions newer than libdrm-2.4.66 I have heavy artifacts during hw accelerated playback of wmv files vaapi/vdpau tested with gstreamer- 0.10 and ffmpeg based mpv.

Bisect result:
db138b9ba12a0de5d6140832c0679c2418e3e7e0 is the first bad commit commit db138b9ba12a0de5d6140832c0679c2418e3e7e0
Author: Michel Dänzer <[email protected]>
Date:   Thu Jan 21 18:08:49 2016 +0900

    radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE ioctl

    Not doing so makes it impossible for radeon_bo_open callers to set any
    RADEON_GEM_* flags for the newly created BO.

If I revert this commit on the current master branch the artefacts are gone.

System environment:
-- chipset: AMD GX-217GA SOC with Radeon(tm) HD Graphics -- system architecture: 32-bit
-- xserver: 1.19.1
-- mesa: 13.0.3, 13.0.6, 17.0.2
-- libdrm: 2.4.74
-- kernel: 4.4.11
-- Linux distribution: eLux
-- Machine or mobo model: HP t620 dual core thin client

Regards,
Jan Burgmeier
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw
Quoted 15 lines · Jan Burgmeier

Hi,

with versions newer than libdrm-2.4.66 I have heavy artifacts during hw accelerated playback of wmv files vaapi/vdpau tested with gstreamer- 0.10 and ffmpeg based mpv.

Bisect result:
db138b9ba12a0de5d6140832c0679c2418e3e7e0 is the first bad commit commit db138b9ba12a0de5d6140832c0679c2418e3e7e0

Author: Michel Dänzer <[email protected]>
Date:   Thu Jan 21 18:08:49 2016 +0900

radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE
ioctl

Quoted 8 lines

Not doing so makes it impossible for radeon_bo_open callers to set
any
RADEON_GEM_* flags for the newly created BO.

If I revert this commit on the current master branch the artefacts are gone.

Without this change, the flags passed to radeon_bo_open are ignored. The question is which flag passed from where is causing the trouble.

Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to Jan Burgmeier

Hi Jan,

very interesting. Sounds like we somehow mess up the buffer placement so that it won't work any more with UVD.

But this only happens with WMV files? Not with H264 or anything else?

Anyway please open up a bug report on https://bugs.freedesktop.org/.

Thanks,
Christian.

Am 30.03.2017 um 14:16 schrieb Jan Burgmeier:

Quoted 34 lines

Hi,

with versions newer than libdrm-2.4.66 I have heavy artifacts during hw accelerated playback of wmv files vaapi/vdpau tested with gstreamer- 0.10 and ffmpeg based mpv.

Bisect result:
db138b9ba12a0de5d6140832c0679c2418e3e7e0 is the first bad commit commit db138b9ba12a0de5d6140832c0679c2418e3e7e0

Author: Michel Dänzer <[email protected]>
Date:   Thu Jan 21 18:08:49 2016 +0900

radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE
ioctl

Not doing so makes it impossible for radeon_bo_open callers to set
any
RADEON_GEM_* flags for the newly created BO.

If I revert this commit on the current master branch the artefacts are gone.

System environment:
-- chipset: AMD GX-217GA SOC with Radeon(tm) HD Graphics -- system architecture: 32-bit
-- xserver: 1.19.1
-- mesa: 13.0.3, 13.0.6, 17.0.2
-- libdrm: 2.4.74
-- kernel: 4.4.11
-- Linux distribution: eLux
-- Machine or mobo model: HP t620 dual core thin client

Quoted 6 lines

Regards,
Jan Burgmeier
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Hi,

the error only occurs with wmv, h264 works.

I created a bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=100510

Regards,
Jan

Quoted 6 lines · Christian König

Hi Jan,

very interesting. Sounds like we somehow mess up the buffer placement so
that it won't work any more with UVD.

Quoted 55 lines

But this only happens with WMV files? Not with H264 or anything else?

Anyway please open up a bug report on https://bugs.freedesktop.org/.

Thanks,
Christian.

Am 30.03.2017 um 14:16 schrieb Jan Burgmeier:

Quoted 45 lines

Hi,

with versions newer than libdrm-2.4.66 I have heavy artifacts during hw
accelerated playback of wmv files vaapi/vdpau tested with gstreamer-
0.10 and ffmpeg based mpv.

Bisect result:
db138b9ba12a0de5d6140832c0679c2418e3e7e0 is the first bad commit commit db138b9ba12a0de5d6140832c0679c2418e3e7e0
Author: Michel Dänzer <[email protected]>
Date:   Thu Jan 21 18:08:49 2016 +0900

     radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE
ioctl

     Not doing so makes it impossible for radeon_bo_open callers to set
any
     RADEON_GEM_* flags for the newly created BO.

If I revert this commit on the current master branch the artefacts are
gone.

System environment:
-- chipset: AMD GX-217GA SOC with Radeon(tm) HD Graphics -- system architecture: 32-bit
-- xserver: 1.19.1
-- mesa: 13.0.3, 13.0.6, 17.0.2
-- libdrm: 2.4.74
-- kernel: 4.4.11
-- Linux distribution: eLux
-- Machine or mobo model: HP t620 dual core thin client

Regards,
Jan Burgmeier
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel