Bug 110984 - Vulkan shows stuttering issues on Vega 10 w/ gnome-shell on Wayland
Summary: Vulkan shows stuttering issues on Vega 10 w/ gnome-shell on Wayland
Status: RESOLVED NOTOURBUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: DRI git
Hardware: Other All
: medium major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-24 18:48 UTC by Lyude Paul
Modified: 2019-06-27 09:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Lyude Paul 2019-06-24 18:48:07 UTC
When testing the latest kernel from drm-tip (as of writing, this is 294d5056c1f3 ("drm-tip: 2019y-06m-24d-17h-20m-57s UTC integration manifest") ), running vulkan-cube on a gnome-shell wayland session (so, since vulkan-cube doesn't support native wayland this means it's running through Xwayland) shows pretty significant stuttering issues. See the video here for what it looks like:

https://people.freedesktop.org/~lyudess/archive/06-24-2019/VID_20190624_140614.mp4

This was reproduced with a Vega 10 Pro SSG:

26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XT [Radeon PRO SSG] [1002:6862]

Mesa version: 19.0.6-1.fc30
gnome-shell version: 3.32.2-2.fc30
Xwayland version: 1.20.4-3.fc30
Comment 1 Michel Dänzer 2019-06-25 08:49:41 UTC
This is an Xwayland issue, due to it only using a single buffer for sending contents to the Wayland server.
Comment 2 Olivier Fourdan 2019-06-26 06:43:08 UTC
(In reply to Michel Dänzer from comment #1)
> This is an Xwayland issue, due to it only using a single buffer for sending
> contents to the Wayland server.

Xwayland being hardware agnostic, if Xwayland was the problem, I'd expect the issue to occur with any hardware., and yet I don't see this on intel for example.

Lyude, you mention this is with drm-tip, can you confirm if this started with the DRM update or does it occur with the current stable code as well?

Last thing, with single buffer, I would expect tearing more than stuttering, from the screencast, it looks like it's flipping to a back buffer which wasn't updated in time.
Comment 3 Olivier Fourdan 2019-06-26 06:49:11 UTC
, I can reproduce on intel(In reply to Olivier Fourdan from comment #2)
> Xwayland being hardware agnostic, if Xwayland was the problem, I'd expect
> the issue to occur with any hardware., and yet I don't see this on intel for
> example.

I take that back, I reproduced on intel as well.
Comment 4 Michel Dänzer 2019-06-26 08:39:26 UTC
(In reply to Olivier Fourdan from comment #2)
> Last thing, with single buffer, I would expect tearing more than stuttering,

It's a race between the Wayland server reading from the buffer and Xwayland drawing to it. This can result in tearing if those two operations can actually run concurrently, which is the case with amdgpu, but not yet with most other drivers AFAIK.

Either way, it can result in the Wayland server already displaying a client frame too early sometimes, hence the stuttering.
Comment 5 Olivier Fourdan 2019-06-27 09:47:51 UTC
Moved to https://gitlab.freedesktop.org/xorg/xserver/issues/835


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.