FS#66029 - [mesa] screen tearing issues with firefox
Attached to Project:
Arch Linux
Opened by singe infini (singeinfini) - Monday, 30 March 2020, 16:01 GMT
Last edited by Laurent Carlier (lordheavy) - Monday, 04 May 2020, 08:10 GMT
Opened by singe infini (singeinfini) - Monday, 30 March 2020, 16:01 GMT
Last edited by Laurent Carlier (lordheavy) - Monday, 04 May 2020, 08:10 GMT
|
Details
Description:
i encounter screen tearing issues when scrolling a page in Firefox with the last version of mesa. The bug disappears when reverting to version 19.3.4-2 Additional info: * firefox 74.0-2 * mesa 20.0.2-1 $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake) (rev 02) $ modinfo i915 filename: /lib/modules/5.4.28-1-lts/kernel/drivers/gpu/drm/i915/i915.ko.xz license: GPL and additional rights description: Intel Graphics author: Intel Corporation author: Tungsten Graphics, Inc. firmware: i915/bxt_dmc_ver1_07.bin firmware: i915/skl_dmc_ver1_27.bin firmware: i915/kbl_dmc_ver1_04.bin firmware: i915/glk_dmc_ver1_04.bin firmware: i915/cnl_dmc_ver1_07.bin firmware: i915/icl_dmc_ver1_07.bin firmware: i915/tgl_dmc_ver2_04.bin firmware: i915/skl_huc_ver01_07_1398.bin firmware: i915/skl_guc_33.0.0.bin firmware: i915/bxt_huc_ver01_8_2893.bin firmware: i915/bxt_guc_33.0.0.bin firmware: i915/kbl_huc_ver02_00_1810.bin firmware: i915/kbl_guc_33.0.0.bin firmware: i915/glk_huc_ver03_01_2893.bin firmware: i915/glk_guc_33.0.0.bin firmware: i915/kbl_huc_ver02_00_1810.bin firmware: i915/kbl_guc_33.0.0.bin firmware: i915/icl_huc_ver8_4_3238.bin firmware: i915/icl_guc_33.0.0.bin srcversion: B8247AAF27DB3848029CB3A (...) From journalctl: (...) Mar 30 17:24:29 mycomputer kernel: [drm] Initialized i915 1.6.0 20190822 for 0000:00:02.0 on minor 0 (no error messages shown) |
This task depends upon
Closed by Laurent Carlier (lordheavy)
Monday, 04 May 2020, 08:10 GMT
Reason for closing: Fixed
Additional comments about closing: mesa-20.0.5-1
Monday, 04 May 2020, 08:10 GMT
Reason for closing: Fixed
Additional comments about closing: mesa-20.0.5-1
All of my KDE Plasma environment is impacted by screen tearing.
Downgrade to previous mesa version resolving the issue.
It looked like that https://imgur.com/FvdE4P2
Downgrade fixed everything
Easy to reproduce by hovering over the packages on https://www.archlinux.org/packages/ , watch the yellow bar.
Scrolling through chats in telegram desktop was another very obvious one. Easy to spot.
For workarounds I've tested both suggested solutions:
works: rolling mesa back to 19.3.4-2
works: adding MESA_LOADER_DRIVER_OVERRIDE=i965 to /etc/environment
Indeed disabling hardware acceleration in Firefox removes the garble.
Works using mesa 20.0.2-1 and setting MESA_LOADER_DRIVER_OVERRIDE=i965 in /etc/environment
Doesn't work using mesa 20.0.2-1 and adding export MESA_LOADER_DRIVER_OVERRIDE=i965 in ~/.xinitrc
Works using mesa 19.3.4-2
singeinfini reported it upstream in https://gitlab.freedesktop.org/mesa/mesa/-/issues/2721
In my case, overriding the driver via MESA_LOADER_DRIVER_OVERRIDE did not fix the problem. Instead, I used the method described here https://gitlab.freedesktop.org/mesa/mesa/issues/1893 and created a file in /usr/share/drirc.d, replacing 'value="iris"' by 'value="i965"'.
The driver in use can be seen in /var/log/Xorg.0.log:
(II) modeset(0): [DRI2] Setup complete
(II) modeset(0): [DRI2] DRI driver: iris
(II) modeset(0): [DRI2] VDPAU driver: va_gl
<driconf>
<device driver="loader" kernel_driver="i915">
<option name="dri_driver" value="i965" />
</device>
</driconf>
in /usr/share/drirc.d/01-no_iris.conf did the job for me.
However, creating ~/.drirc (as also proposed in the referred issue) did not.
For me setting the environment (MESA_LOADER_DRIVER_OVERRIDE=i965) variable in "/etc/environment" fixed the issue.