DRI3 plus TearFree (workaround)

Kernels & Hardware, configuring network, installing services

DRI3 plus TearFree (workaround)

Postby bester69 » 2017-03-11 04:57

Can you verify this workaround is valid?? :idea:


For intel:
I found out a workaround to be able to enjoy dri3 and get away with tears in movies. I tested and it seems to work, tears dissapears once i disable dri3 with environment option.

I think Tearfree is only available in "sna" method, so we set:
/usr/share/X11/xorg.conf.d/20-intel.conf
Code: Select all
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "sna"
   Option      "DRI"    "3"
   Option      "TearFree" "true"
 EndSection


Then as DRI3 bypass Tearfree filter, we'll just have to disable it for media players:
Examples:
LIBGL_DRI3_DISABLE=1 kodi
LIBGL_DRI3_DISABLE=1 mpv myvideo.mp4

youplay.sh youtubeurl
Code: Select all
export  LIBGL_DRI3_DISABLE=1
gnome-mpv   $(youtube-dl -g -f best $1) &


You can test if dri3 is active or disable with prefix:
LIBGL_DEBUG=verbose <<command>>

-----------------------------------------
by the way i also found out, that to enjoy DRI3 acceleration in chrome based on we must use theses flags: (--ignore-gpu-blacklist --disable-gpu-sandbox):
test:
LIBGL_DEBUG=verbose chrome/chromium --ignore-gpu-blacklist --disable-gpu-sandbox
User avatar
bester69
 
Posts: 815
Joined: 2015-04-02 13:15

Re: DRI3 plus TearFree (workaround)

Postby gradinaruvasile » 2017-03-11 08:16

I use Debian Testing with SNA+TearFree and it does not tear with DRI3. I use mpv+smplayer with vo=vaapi and hwdec=vaapi and there is no tearing. But playback on Chrome (Youtube and Amazon player) is tear free too (i have "Override software rendering list" enabled).
Maybe it depends also on the DE used, i use MATE.

Edit: I use no workarounds and have no tearing. If it matters the hardware is Intel 530 from the i7-6820HQ cpu.
Last edited by gradinaruvasile on 2017-03-11 18:03, edited 2 times in total.
User avatar
gradinaruvasile
 
Posts: 928
Joined: 2010-01-31 22:03
Location: Cluj, Romania

Re: DRI3 plus TearFree (workaround)

Postby debiman » 2017-03-11 09:11

if it works for you, it's valid.
User avatar
debiman
 
Posts: 1017
Joined: 2013-03-12 07:18

Re: DRI3 plus TearFree (workaround)

Postby gradinaruvasile » 2017-03-11 18:01

debiman wrote:if it works for you, it's valid.

I meant i use DRI3 WITHOUT any workarounds and have no tearing.
User avatar
gradinaruvasile
 
Posts: 928
Joined: 2010-01-31 22:03
Location: Cluj, Romania

Re: DRI3 plus TearFree (workaround)

Postby debiman » 2017-03-11 19:36

and i meant it as an answer to OPs question.
User avatar
debiman
 
Posts: 1017
Joined: 2013-03-12 07:18

Re: DRI3 plus TearFree (workaround)

Postby stevepusser » 2017-03-11 20:50

I use the same 20-intel.conf file on a Jessie base with the updated backports mesa and intel xorg driver on a 4.9 (currently) backported Liquorix kernel with Skylake 520 graphics. So far I have not seen anything that requires me to do those other tweaks.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.0.6, Pale Moon 27.3.0, Liquorix kernel 4.11-9, mpv 0.25.0, Kodi 17.3, Ksnip 1.3.1, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8337
Joined: 2009-10-06 05:53

Re: DRI3 plus TearFree (workaround)

Postby bester69 » 2017-03-12 17:41

stevepusser wrote:I use the same 20-intel.conf file on a Jessie base with the updated backports mesa and intel xorg driver on a 4.9 (currently) backported Liquorix kernel with Skylake 520 graphics. So far I have not seen anything that requires me to do those other tweaks.


I suppose it has to be with the model graphics card or/and the intel driver, In Strecth; Intel GM45 chipset get tears in videos with DRI3 enabled with all knowed configurations (sna/uxa/modesetting..).
User avatar
bester69
 
Posts: 815
Joined: 2015-04-02 13:15

Re: DRI3 plus TearFree (workaround)

Postby Head_on_a_Stick » 2017-03-12 17:57

I have finally noticed tearing with my modesetting DDX driver in stretch (HD4600) and I find that this removes it completely with no other driver options required:
Code: Select all
compton -b --backend glx --vsync opengl-mswc

https://packages.debian.org/stretch/compton

EDIT: this is in a simple Openbox/tint2 desktop, probably won't work for Plasma or GNOME...
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to System configuration

Who is online

Users browsing this forum: kopper and 3 guests

fashionable