Bug 99008 - Some video flickers on kodi. Found bad commit.
Summary: Some video flickers on kodi. Found bad commit.
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-06 19:02 UTC by Marcoz
Modified: 2019-11-19 07:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Marcoz 2016-12-06 19:02:34 UTC
Some videos play very bad with driver version 7.8.0 on Kodi.
Video flickers and when I exit, Kodi interface flickers as well, many artefacts form when moving the cursor with the keyboard.
I am on Archlinux with kernel 4.8.12-2-ARCH.
My card: 
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8330]

The problem appears both with vdpau enabled and disabled from Kodi settings.
I bisected and found that the first bad commit is:

aa07b365d7b0610411e118f105e49daff5f5a5cf
Comment 1 Rafał Miłecki 2016-12-06 19:40:52 UTC
The commit you bisected looks unlikely, it's:
https://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=aa07b365d7b0610411e118f105e49daff5f5a5cf
aa07b365d7b ("Add .editorconfig file")
Comment 2 Marcoz 2016-12-06 20:41:23 UTC
Hi Rafał, you are right. It seemed to me quite strange to me but it was the first time bisecting for me and that's what git told me.

However, I spotted that one very close commit is to enable DRI 3 by default.
Overriding this in xorg.conf and forcing DRI 2 seems to solve the problem...
Is there a way to make DRI 3 work or my card is a too lame?

As I said it is a Radeon HD 8330 which is integrated on my board: 
Asrock qc500-itx.
Comment 3 Marcoz 2016-12-06 20:58:43 UTC
One followup:
If I enable TearFree and DRI 3 the problem is solved at the expenses of a less smooth playback.
With only DRI 2 in xorg.conf and without specifying any TearFree option the video playback is much better.
Comment 4 Michel Dänzer 2016-12-07 08:30:47 UTC
I can't reproduce this with kodi 17.0 beta 5 and current Mesa Git master. It sounds like it's most likely due to your version of kodi making incorrect assumptions about the contents of the back buffer after glXSwapBuffers.

There are two possible workarounds:
* In kodi, set Settings / System / Display / "Number of buffers used by graphics driver" to 3
* Start kodi like this to disable DRI3 for it: LIBGL_DRI3_DISABLE=1 kodi
Comment 5 Martin Peres 2019-11-19 07:58:08 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/166.


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.