Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

DRI3 plus TearFree (workaround)

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

DRI3 plus TearFree (workaround)

#1 Post by bester69 »

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
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: DRI3 plus TearFree (workaround)

#2 Post by gradinaruvasile »

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
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: DRI3 plus TearFree (workaround)

#3 Post by debiman »

if it works for you, it's valid.

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: DRI3 plus TearFree (workaround)

#4 Post by gradinaruvasile »

debiman wrote:if it works for you, it's valid.
I meant i use DRI3 WITHOUT any workarounds and have no tearing.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: DRI3 plus TearFree (workaround)

#5 Post by debiman »

and i meant it as an answer to OPs question.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: DRI3 plus TearFree (workaround)

#6 Post by stevepusser »

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.
MX Linux packager and developer

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: DRI3 plus TearFree (workaround)

#7 Post by bester69 »

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..).
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: DRI3 plus TearFree (workaround)

#8 Post by Head_on_a_Stick »

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...
deadbang

Post Reply