From: moosotc@gmail.com
To: intel-gfx@lists.freedesktop.org
Subject: Re: Modesetting tearing without compositor
Date: Sun, 16 Jul 2017 01:02:26 +0300 [thread overview]
Message-ID: <87a845e4ul.fsf@gmail.com> (raw)
In-Reply-To: <87d1934pl0.fsf@gmail.com> (moosotc@gmail.com's message of "Fri, 14 Jul 2017 07:20:11 +0300")
moosotc@gmail.com writes:
> Hello,
>
> By default tearing is evident when running full-screen OpenGL
> applications such as [1] or playing one of the numerous tearing test
> videos from youtube in mpv (with mpv's xv, opengl or vaapi video output
> drivers, I guess glamor implements xv via OpenGL so no surprise there).
>
> By accident I've discovered that enabling frame buffer compression
> (i915's enable_fbc parameter) before X is started stops tearing.
>
> There are ways to get tearing again though, for instance: if full-screen
> OpenGL window is present, being constantly redrawn and window in an
> override redirect state[2] is mapped atop of it. Tear free operation can
> be restored in my setup by playing with xrandr ("xrandr -x; xrandr -x"
> for instance) or switching to a spare VT and then back to X.
>
> The full-screen+override-redirect way of "enabling tearing" works for
> normal and inverted orientations (xrandr -o [normal|inverted]) but not
> reflected or left|right rotated.
>
FWIW thea above method of "enabling tearing" does not work if
LIBGL_DRI3_DISABLE was set prior to running offending applications (mpv
or sdl2.c) IOW tearing is defeated.
Leaves big fat "wtf?" question open though.
Several questions are open in fact:
Why tearing avoidance via enable_fbc works and what other effects (other
than tainting kernel) does it have?
Why override-redirect windows cause tearing when DRI3 is used?
Why having the screen reflected, left right rotated defeats tearing even
with DRI3?
Why does "xrandr -y; xrandr -y" after tearing begins brings things back
to normal?
[..snip..]
Any insights it would be most appreciated given that using module
parameters that taint kernel and setting environment variables that
"degrade" (at least in numerical value) supported feature set feel.
rather dirty and unscientific as it were.
--
mailto:moosotc@gmail.com
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-07-15 22:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 4:20 Modesetting tearing without compositor moosotc
2017-07-15 22:02 ` moosotc [this message]
2017-07-23 5:57 ` Modesetting tearing moosotc
2017-07-23 6:16 ` moosotc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a845e4ul.fsf@gmail.com \
--to=moosotc@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox