View previous topic :: View next topic |
Author |
Message |
saeidscorp n00b
Joined: 06 Jun 2018 Posts: 2
|
Posted: Wed Jun 06, 2018 3:32 pm Post subject: screen stutter modesetting intel and AMDGPU hybrid graphics |
|
|
Hi, After some time, yesterday I decided to put my dedicated GPU into good use :)
I have an Intel Haswell HD 4400 integrated graphics and a Radeon R5 M255 (GCN 3 - Topaz).
Reading the wikis, I figured I need to install intel modesetting ddx driver alongside amdgpu.
I embedded topaz firmwares inside the kernel and upgraded my packages. After a restart, the startx would constantly crash on a llvm invalid pipe assertion error thing.
Upgraded kernel to 4.16.14 and startx finally loaded my plasma desktop successfully.
BUT, the issue is the that the screen feels sluggish, mouse movement and scrolling is not instant and it leaves a short trail (like motion blur). It's like as if there is a constant amount of delay (and blending) for each frame. Movie playback also has the same motion blur effect, plus, it has random stuttering as well.
However, Dota 2 and TF2 games play smoothly.
/etc/portage/make.conf:
Code: | USE="... glamor ..."
VIDEO_CARDS="intel i965 amdgpu radeonsi"
|
package versions:
Code: | [saeid:~] % emerge -pvt xorg-drivers xorg-server xf86-video-amdgpu xf86-video-ati mesa llvm
[ebuild R ] x11-base/xorg-drivers-1.19::gentoo INPUT_DEVICES="evdev synaptics -elographics -joystick -keyboard -libinput -mouse -tslib -vmmouse -void -wacom" VIDEO_CARDS="amdgpu i965 intel radeonsi -ast -dummy -fbdev (-freedreno) (-geode) -glint -i915 -mga (-newport) -nouveau -nv -nvidia (-omap) -qxl -r128 -radeon -siliconmotion (-tdfx) (-tegra) (-vc4) -vesa -via -virtualbox -vmware (-voodoo)" 0 KiB
[ebuild R ] x11-drivers/xf86-video-ati-18.0.1-r1::gentoo USE="glamor udev" 0 KiB
[ebuild R ] x11-drivers/xf86-video-amdgpu-18.0.1::gentoo 0 KiB
[ebuild R ] x11-base/xorg-server-1.19.5-r2:0/1.19.5::gentoo USE="glamor ipv6 suid udev xorg xvfb -debug -dmx -doc -kdrive -libressl -minimal (-selinux) -static-libs -systemd -tslib -unwind -wayland -xcsecurity -xephyr -xnest" 0 KiB
[ebuild R ] media-libs/mesa-17.3.9::gentoo USE="classic d3d9 dri3 egl gallium gbm gles2 llvm nptl wayland -bindist -debug -gles1 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -unwind -vaapi -valgrind -vdpau -vulkan -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="i965 intel radeonsi (-freedreno) -i915 (-imx) -nouveau -r100 -r200 -r300 -r600 -radeon (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild R ] sys-devel/llvm-5.0.1:5::gentoo USE="libffi ncurses -debug -doc -gold -libedit {-test}" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" 0 KiB
|
PCI cards:
Code: | 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz PRO [Radeon R5 M255]
|
xrandr providers:
Code: | [saeid:~] 1 % xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x66 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x3f cap: 0xd, Source Output, Source Offload, Sink Offload crtcs: 0 outputs: 0 associated providers: 0 name:AMD Radeon R5 M255 @ pci:0000:0a:00.0
|
glxinfo renderer:
Code: | [saeid:~] % glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
|
with PRIME:
Code: | [saeid:~] % DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon R5 M255 (ICELAND / DRM 3.23.0 / 4.16.14-gentoo, LLVM 5.0.1)
|
looks good so far.
Now the fishy thing to my eyes is that it shows dri3 enabled for screen:
libGL debug for intel:
Code: | [saeid:~] % LIBGL_DEBUG=verbose glxinfo | grep libGL
libGL: Can't open configuration file /home/saeid/.drirc: No such file or directory.
libGL: pci id for fd 4: 8086:0a16, driver i965
libGL: OpenDriver: trying /usr/lib64/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so
libGL: Can't open configuration file /home/saeid/.drirc: No such file or directory.
libGL: Using DRI3 for screen 0
libGL: Can't open configuration file /home/saeid/.drirc: No such file or directory.
libGL: Can't open configuration file /home/saeid/.drirc: No such file or directory.
libGL: Can't open configuration file /home/saeid/.drirc: No such file or directory.
|
libGL debug for amd:
Code: | [saeid:~] 1 % LIBGL_DEBUG=verbose DRI_PRIME=1 glxinfo | grep libGL
libGL: pci id for fd 5: 1002:6901, driver radeonsi
libGL: OpenDriver: trying /usr/lib64/dri/tls/radeonsi_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/radeonsi_dri.so
libGL: Can't open configuration file /home/saeid/.drirc: No such file or directory.
/usr/share/libdrm/amdgpu.ids version: 1.0.0
libGL: Can't open configuration file /home/saeid/.drirc: No such file or directory.
libGL: Using DRI3 for screen 0
|
But looking at the Xorg logs, it has no indication of DRI3! (only 2). (or I'm wrong?)
The glamor also looks enabled. but in the output of glxinfo OpenGL renderer line, glamor or gallium was not mentioned.
/var/log/Xorg.0.log:
full log: on gist, on pastebin
the interesting parts:
Code: | [ 3279.434] (II) glamor: EGL version 1.5 (DRI2):
...
[ 3279.386] (II) Loading sub module "dri2"
[ 3279.386] (II) LoadModule: "dri2"
[ 3279.386] (II) Module "dri2" already built-in
[ 3279.432] (II) Loading sub module "glamoregl"
[ 3279.432] (II) LoadModule: "glamoregl"
[ 3279.432] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 3279.432] (II) Module glamoregl: vendor="X.Org Foundation"
[ 3279.432] compiled for 1.19.5, module version = 1.0.0
[ 3279.432] ABI class: X.Org ANSI C Emulation, version 0.4
[ 3279.432] (II) glamor: OpenGL accelerated X.org driver based.
[ 3279.434] (II) glamor: EGL version 1.5 (DRI2):
...
[ 3279.435] (II) AMDGPU(G0): [DRI2] Setup complete
[ 3279.435] (II) AMDGPU(G0): [DRI2] DRI driver: radeonsi
[ 3279.435] (II) AMDGPU(G0): [DRI2] VDPAU driver: radeonsi
[ 3279.435] (II) AMDGPU(G0): Front buffer pitch: 4096 bytes
[ 3279.435] (==) AMDGPU(G0): Backing store enabled
[ 3279.435] (II) AMDGPU(G0): Direct rendering enabled
[ 3279.459] (II) AMDGPU(G0): Use GLAMOR acceleration.
[ 3279.459] (II) AMDGPU(G0): Acceleration enabled
[ 3279.459] (==) AMDGPU(G0): DPMS enabled
[ 3279.459] (==) AMDGPU(G0): Silken mouse enabled
...
[ 3279.529] (==) modeset(0): Backing store enabled
[ 3279.529] (==) modeset(0): Silken mouse enabled
[ 3279.529] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 3279.589] (==) modeset(0): DPMS enabled
[ 3279.589] (II) modeset(0): [DRI2] Setup complete
[ 3279.589] (II) modeset(0): [DRI2] DRI driver: i965
[ 3279.589] (II) modeset(0): [DRI2] VDPAU driver: i965
|
Do you have any idea where I should start digging? :?
Thanks in advance! |
|
Back to top |
|
|
saeidscorp n00b
Joined: 06 Jun 2018 Posts: 2
|
Posted: Fri Jun 22, 2018 3:02 pm Post subject: |
|
|
UPDATE:
I experienced further issues like:
- sudden system thrashing and complete system unresponsiveness for unknown causes (for example when I start NetworkManager service, WTF???)
- display artifacts on TF2 game
So I reverted all that and now I use the sane and good intel modesetting driver. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|