From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110659] pageflipping seems to cause jittering on mouse input when running Hitman 2 in Wine/DXVK with amdgpu.dc=1 Date: Wed, 29 May 2019 18:05:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1073940313==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 6298A6E083 for ; Wed, 29 May 2019 18:05:54 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1073940313== Content-Type: multipart/alternative; boundary="15591531540.7cA96fB37.4585" Content-Transfer-Encoding: 7bit --15591531540.7cA96fB37.4585 Date: Wed, 29 May 2019 18:05:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110659 --- Comment #19 from Nicholas Kazlauskas --- (In reply to tempel.julian from comment #18) > Huh, with modesetting driver, those patches eliminate the stutter when new > windows are shown. Does the xf86-video-amdgpu driver need adjustments for > this? It should eliminate stuttering for that case in xf86-video-amdgpu if it's t= he problem I think it is (double buffering the cursor). >=20 > However, turning on nightlight in Plasma Wayland still causes stutter, wh= ich > is not there with amdgpu.dc=3D0. 1. Gamma updates are slow updates that do a lot of register programming. Nightlight and RedShift issue a lot of these updates. 2. Gamma updates, like everything that isn't a cursor update, currently tar= get the next vblank period. 3. If the pageflip is in a separate commit or update than the gamma update, then it'll need to wait for the gamma update to finish and for the next vbl= ank interval. If this takes too long then we might miss the next vblank interval and have to wait for the one after that. I think it's a combination of these 3 issues. Even though it's Wayland and should be using the full atomic API, I'm not sure if plasma is actually iss= uing all that state in the same commit or not. My guess would be no, since you're seeing the stuttering. We do have a bug = with (2) for legacy gamma updates, since there isn't really any reason those sho= uld be waiting for the next flip / vblank other than to be consistent with the = rest of the atomic commit framework. > RedShift btw. is completely broken with amdgpu.dc=3D1 + modesetting DDX, = it > simply has no effect anymore (not related to the experimental atomic > modesetting patches). Not sure what the issue here would be. Gamma seems to work fine for legacy = and atomic on amdgpu (we pass the IGT tests for this) and it works fine in lega= cy desktops like GNOME on Xorg with the xf86-video-amdgpu DDX. Was this still on Plasma, but on X? --=20 You are receiving this mail because: You are the assignee for the bug.= --15591531540.7cA96fB37.4585 Date: Wed, 29 May 2019 18:05:54 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 19 on bug 11065= 9 from Nicholas Kazlauskas<= /a>
(In reply to tempel.julian from comment #18)
> Huh, with modesetting driver, those patches elim=
inate the stutter when new
> windows are shown. Does the xf86-video-amdgpu driver need adjustments =
for
> this?

It should eliminate stuttering for that case in xf86-video-amdgpu if it's t=
he
problem I think it is (double buffering the cursor).

>=20
> However, turning on nightlight in Plasma Wayland still causes stutter,=
 which
> is not there with amdgpu.dc=3D0.

1. Gamma updates are slow updates that do a lot of register programming.
Nightlight and RedShift issue a lot of these updates.

2. Gamma updates, like everything that isn't a cursor update, currently tar=
get
the next vblank period.

3. If the pageflip is in a separate commit or update than the gamma update,
then it'll need to wait for the gamma update to finish and for the next vbl=
ank
interval. If this takes too long then we might miss the next vblank interval
and have to wait for the one after that.

I think it's a combination of these 3 issues. Even though it's Wayland and
should be using the full atomic API, I'm not sure if plasma is actually iss=
uing
all that state in the same commit or not.

My guess would be no, since you're seeing the stuttering. We do have a bug =
with
(2) for legacy gamma updates, since there isn't really any reason those sho=
uld
be waiting for the next flip / vblank other than to be consistent with the =
rest
of the atomic commit framework.

> RedShift btw. is completely broken with amdgpu.d=
c=3D1 + modesetting DDX, it
> simply has no effect anymore (not related to the experimental atomic
> modesetting patches).

Not sure what the issue here would be. Gamma seems to work fine for legacy =
and
atomic on amdgpu (we pass the IGT tests for this) and it works fine in lega=
cy
desktops like GNOME on Xorg with the xf86-video-amdgpu DDX.

Was this still on Plasma, but on X?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15591531540.7cA96fB37.4585-- --===============1073940313== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1073940313==--