* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
@ 2017-09-12 16:28 bugzilla-daemon
2017-09-13 2:05 ` bugzilla-daemon
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-12 16:28 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 3313 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
Bug ID: 102681
Summary: OpenGL applications not vsyncing correctly when the
window size doesn't perfectly match the screen
Product: Mesa
Version: 17.2
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel@lists.freedesktop.org
Reporter: bugs.freedesktop@haasn.xyz
QA Contact: dri-devel@lists.freedesktop.org
I'm not exactly sure how to debug this; but basically, when I run OpenGL
applications in windowed mode (i.e. not stretched over the entire rect), I get
misaligned vsync (horizontal tearing). It still syncs to the monitor rate - it
just misses the actual vblank by quite a bit.
The horizontal tear location depends on the size and position of the window.
For small enough window sizes, the issue becomes les pronounced and eventually
goes away completely. I can reproduce it in at least two applications - mpv (my
primary testing method) and glxgears (although it's more difficult to spot in
glxgears due to the less ideal motion). The easiest way for me to reproduce it
is by just running `mpv --no-config https://0x0.st/7AL.mkv`.
I've tested a couple of mesa versions ranging from 17.0 to git master and could
not identify a difference, so I'm not sure if it's a regression or just a plain
bug. I'm also not sure if it's an issue in mesa or in the GPU driver. I did
notice a lot of dmesg spam after startup, but that seems to be “normal”:
e.g.
[ +0.000304] DMAR: DRHD: handling fault status reg 2
[ +0.000102] DMAR: [DMA Read] Request device [04:00.0] fault addr f4001aa000
[fault reason 06] PTE Read access is not set
[ +0.000170] DMAR: [DMA Read] Request device [04:00.0] fault addr f4001af000
[fault reason 06] PTE Read access is not set
[ +0.000169] DMAR: [DMA Read] Request device [04:00.0] fault addr f4001b5000
[fault reason 06] PTE Read access is not set
...
[ +0.068389] amdgpu: [powerplay] [AVFS] Something is broken. See log!
[ +0.002866] amdgpu: [powerplay] Can't find requested voltage id in
vdd_dep_on_sclk table!
[ +0.001712] amdgpu: [powerplay] VDDCI is larger than max VDDCI in VDDCI
Voltage Table!
[ +0.000152] amdgpu: [powerplay] VDDCI is larger than max VDDCI in VDDCI
Voltage Table!
I also noticed this error showing up relatively often (several times a day,
even while the machine is not in use):
[Sep12 17:58] DMAR: DRHD: handling fault status reg 40
[Sep12 17:59] DMAR: DRHD: handling fault status reg 40
Not sure if that's related to anything. The device I'm using is a Sapphire RX
560, the kernel version is 4.12.4. I have no ~/.drirc and the `amdgpu` module
settings are all left default.
P.s. I also noticed a strange issue where starting mpv in fullscreen and then
dragging the window to be slightly bigger causes it to start miscalculating the
texture stride and dumping garbage data onto the screen. Unfortunately, I can't
take a screenshot. I'm not sure if this is related, or a separated issue, but
it may provide a hint.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 4752 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
@ 2017-09-13 2:05 ` bugzilla-daemon
2017-09-13 2:06 ` bugzilla-daemon
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:05 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 335 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
--- Comment #1 from Niklas Haas <bugs.freedesktop@haasn.xyz> ---
Seems like this is an expected behavior when TearFree is disabled. Manually
enabling TearFree in xorg.conf appears to solve my issue.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1222 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
2017-09-13 2:05 ` bugzilla-daemon
@ 2017-09-13 2:06 ` bugzilla-daemon
2017-09-13 2:07 ` bugzilla-daemon
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:06 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 234 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
--- Comment #2 from Niklas Haas <bugs.freedesktop@haasn.xyz> ---
(Including the P.s., I might add)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1121 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
2017-09-13 2:05 ` bugzilla-daemon
2017-09-13 2:06 ` bugzilla-daemon
@ 2017-09-13 2:07 ` bugzilla-daemon
2017-09-13 2:21 ` bugzilla-daemon
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:07 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 437 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
Niklas Haas <bugs.freedesktop@haasn.xyz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTABUG
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1321 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
` (2 preceding siblings ...)
2017-09-13 2:07 ` bugzilla-daemon
@ 2017-09-13 2:21 ` bugzilla-daemon
2017-09-13 2:34 ` bugzilla-daemon
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:21 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 482 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
--- Comment #3 from Alex Deucher <alexdeucher@gmail.com> ---
(In reply to Niklas Haas from comment #1)
> Seems like this is an expected behavior when TearFree is disabled. Manually
> enabling TearFree in xorg.conf appears to solve my issue.
You can dynamically enable tearfree per output using randr rather than messing
with your xorg.conf.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1495 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
` (3 preceding siblings ...)
2017-09-13 2:21 ` bugzilla-daemon
@ 2017-09-13 2:34 ` bugzilla-daemon
2017-09-13 2:42 ` bugzilla-daemon
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:34 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 474 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
--- Comment #4 from Niklas Haas <bugs.freedesktop@haasn.xyz> ---
How does this work? I'm not seeing anything related to TearFree or driver
options in `xrandr --help`.
(Avoiding the use of a xorg.conf would indeed be nice, since it would prevent
me from having to mess around with symlinks when switching between AMD and
nvidia GPUs)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1417 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
` (4 preceding siblings ...)
2017-09-13 2:34 ` bugzilla-daemon
@ 2017-09-13 2:42 ` bugzilla-daemon
2017-09-13 2:46 ` bugzilla-daemon
2017-09-13 2:46 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:42 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 695 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
--- Comment #5 from Alex Deucher <alexdeucher@gmail.com> ---
(In reply to Niklas Haas from comment #4)
> How does this work? I'm not seeing anything related to TearFree or driver
> options in `xrandr --help`.
>
> (Avoiding the use of a xorg.conf would indeed be nice, since it would
> prevent me from having to mess around with symlinks when switching between
> AMD and nvidia GPUs)
`xrandr --verbose` and look for the tearfree output property. Then use xrandr
to adjust the property. This was enabled fairly recently so your ddx may be
too old.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1720 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
` (5 preceding siblings ...)
2017-09-13 2:42 ` bugzilla-daemon
@ 2017-09-13 2:46 ` bugzilla-daemon
2017-09-13 2:46 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:46 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 413 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
--- Comment #6 from Niklas Haas <bugs.freedesktop@haasn.xyz> ---
Neat, thanks!
(I also noticed an _ICC_PROFILE setting there, I wonder if that refers to the
X11 atom or if there's some sort of built-in ICC profile querying mechanism
inherent to RandR.... anyway, offtopic)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1356 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
` (6 preceding siblings ...)
2017-09-13 2:46 ` bugzilla-daemon
@ 2017-09-13 2:46 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-09-13 2:46 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 301 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=102681
--- Comment #7 from Michel Dänzer <michel@daenzer.net> ---
With xf86-video-amdgpu 1.3.0 or newer:
xrandr --output <output name> --set TearFree on # or off / auto
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1245 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2017-09-13 2:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-12 16:28 [Bug 102681] OpenGL applications not vsyncing correctly when the window size doesn't perfectly match the screen bugzilla-daemon
2017-09-13 2:05 ` bugzilla-daemon
2017-09-13 2:06 ` bugzilla-daemon
2017-09-13 2:07 ` bugzilla-daemon
2017-09-13 2:21 ` bugzilla-daemon
2017-09-13 2:34 ` bugzilla-daemon
2017-09-13 2:42 ` bugzilla-daemon
2017-09-13 2:46 ` bugzilla-daemon
2017-09-13 2:46 ` bugzilla-daemon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.