Bug 1203029

Summary: Mesa driver graphics artifacts with Intel HD Graphics 515
Product: [openSUSE] openSUSE Distribution Reporter: Giacomo Comes <comes>
Component: X.OrgAssignee: Gfx Bugs <gfx-bugs>
Status: RESOLVED FIXED QA Contact: Gfx Bugs <gfx-bugs>
Severity: Normal    
Priority: P3 - Medium    
Version: Leap 15.4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Giacomo Comes 2022-09-01 14:28:11 UTC
On a computer with Intel Core m3-6Y30 CPU and Intel HD Graphics 515 I get graphics artifacts.
For example when typing in konsole, the characters appear and disappear in slow motion with "fade-in" and "fade-out". The same fading process happens when I move
the cursor over the decorations of a window.
There were recently fixes for boo#1200965 and boo#1202850 but none of them did address my problem. Testing with different Mesa versions, I saw that my issue is fixed in Mesa 21.3.0 and later versions.

inxi -aG -y 80:

Graphics:
  Device-1: Intel HD Graphics 515 driver: i915 v: kernel bus-ID: 00:02.0
  chip-ID: 8086:191e class-ID: 0300
  Display: x11 server: X.Org 1.20.3 compositor: kwin_x11 driver:
  loaded: modesetting unloaded: fbdev,vesa alternate: intel display-ID: :0
  screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5")
  s-diag: 1165mm (45.9")
  Monitor-1: HDMI-1 res: 3840x2160 hz: 30 dpi: 52
  size: 1872x1053mm (73.7x41.5") diag: 2148mm (84.6")
  OpenGL: renderer: Mesa Intel HD Graphics 515 (SKL GT2) v: 4.6 Mesa 21.2.4
  direct render: Yes
Comment 1 Stefan Dirsch 2022-09-01 14:46:01 UTC
Slowness is a duplicate of boo#1202850.

*** This bug has been marked as a duplicate of bug 1202850 ***
Comment 2 Stefan Dirsch 2022-09-01 14:47:27 UTC
But could be that for better results you need "iris" driver of Mesa >= 21.3.0 ...
Comment 3 Giacomo Comes 2022-09-01 15:27:10 UTC
This bug is not a duplicate of boo#1202850. The slowness related to boo#1202850 was about slow video playback (see boo#1202954) which was related to the llvmpipe render.
After the boo#1202850 fix the render is again Mesa and I still have the problem.
As I said elsewhere, I have fixed my problem using Mesa 21.3.9.  
On the same hardware I did not have problems with Leap 15.3 (Mesa 20.2.4).
This bug entry is there in case somebody else reports the same issue.
Comment 4 Stefan Dirsch 2022-09-01 15:39:47 UTC
Hmm. On Leap 15.3 "i965" driver is being used on your hardware. On Leap 15.4 now it's back from "swrast" (broken state) to "iris". But I've created another update for Leap 15.4 to go back to "i965"  on 'older' hardware like yours (which was the initial purpose of the update). So the next Mesa update for Leap 15.4 may even fix your issues.
Comment 5 Giacomo Comes 2022-09-01 16:34:31 UTC
(In reply to Stefan Dirsch from comment #4)
> Hmm. On Leap 15.3 "i965" driver is being used on your hardware. On Leap 15.4
> now it's back from "swrast" (broken state) to "iris". But I've created
> another update for Leap 15.4 to go back to "i965"  on 'older' hardware like
> yours (which was the initial purpose of the update). So the next Mesa update
> for Leap 15.4 may even fix your issues.

Mmm. I though the last Mesa update which just come out on the mirrors contained the fix you described in boo#1202850#c33, but it does not. Let's wait for the next update. I'll report here what I get when the next update is available.
Comment 6 Stefan Dirsch 2022-09-01 21:18:16 UTC
(In reply to Giacomo Comes from comment #5)
> (In reply to Stefan Dirsch from comment #4)
> > Hmm. On Leap 15.3 "i965" driver is being used on your hardware. On Leap 15.4
> > now it's back from "swrast" (broken state) to "iris". But I've created
> > another update for Leap 15.4 to go back to "i965"  on 'older' hardware like
> > yours (which was the initial purpose of the update). So the next Mesa update
> > for Leap 15.4 may even fix your issues.
> 
> Mmm. I thought the last Mesa update which just come out on the mirrors
> contained the fix you described in boo#1202850#c33, but it does not. 

No, it does not (yet). Just a revert of the previous change.

> Let's wait for the next update. I'll report here what I get when the next update
> is available.

Thanks!. That would be useful! :-)
Comment 7 Giacomo Comes 2022-09-20 15:51:58 UTC
The mesa update did come out and here is my test report.
The good news is that with the computer with Intel HD Graphics 515, the new mesa update fixes the problem. The graphics artifacts visible when I type in konsole are gone.
The bad news is that in another laptop the fix does not help.
The problem I observe in the laptop is that when I open dolphin and I resize its window, there are visible artifacts around the icons.
Mesa 21.3.9 works fine instead.

inxi -aG -y 80:
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:9a49 class-ID: 0300
  Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
  bus-ID: 3-6:5 chip-ID: 0c45:6725 class-ID: 0e02
  Display: x11 server: X.Org 1.20.3 compositor: kwin_x11 driver:
  loaded: modesetting unloaded: fbdev,vesa alternate: intel display-ID: :0
  screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
  s-diag: 582mm (22.9")
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 158 size: 309x174mm (12.2x6.9")
  diag: 355mm (14")
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.3.9
  direct render: Yes
Comment 8 Stefan Dirsch 2022-09-20 17:36:04 UTC
(In reply to Giacomo Comes from comment #7)
> The mesa update did come out and here is my test report.
> The good news is that with the computer with Intel HD Graphics 515, the new
> mesa update fixes the problem. The graphics artifacts visible when I type in
> konsole are gone.

Ok. This is the switch from "iris" to "i965" driver for Intel Gen8-Gen11 GPUs. That's good.

> The bad news is that in another laptop the fix does not help.
> The problem I observe in the laptop is that when I open dolphin and I resize
> its window, there are visible artifacts around the icons.
> Mesa 21.3.9 works fine instead.
> 
> inxi -aG -y 80:
> Graphics:
>   Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Dell
>   driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:9a49 class-ID: 0300
>   Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
>   bus-ID: 3-6:5 chip-ID: 0c45:6725 class-ID: 0e02
>   Display: x11 server: X.Org 1.20.3 compositor: kwin_x11 driver:
>   loaded: modesetting unloaded: fbdev,vesa alternate: intel display-ID: :0
>   screens: 1
>   Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
>   s-diag: 582mm (22.9")
>   Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 158 size: 309x174mm (12.2x6.9")
>   diag: 355mm (14")
>   OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.3.9
>   direct render: Yes

This is Tigerlake (Intel Gen12 GPU). It has used "iris" driver before and after the update. The Mesa update didn't include any "iris" driver fixes from a newer Mesa version than 21.2.4 like 21.3.9. We don't know what fixes are. We would need to bisect this. Not a trivial task. But we plan a Mesa version upgrade to 22.x for Leap 15.5. :-)