You are not logged in.

#1 2020-04-10 00:45:30

sfifwpaattsotwnwky
Member
Registered: 2019-12-20
Posts: 10

[Solved] Intel comet lake graphical glitches in OpenGL programs

On my HP Intel comet lake laptop (model 15-dr1023nr) OpenGL programs produce graphical glitches. Alternating frames appear rendered in the wrong size/position. The glitch does not always appear when running the same program, but resizing the window will eventually cause it to happen. In glxgears the gears don't turn or alternate two frames of the animation. Sample programs rendering rectangles in SDL and SFML have the glitch. I tried a number of games that use SDL in the repository and all the ones with resizeable windows (except freeciv) are garbled or nonfunctional.

I am sorry if pertinent information is lacking, I am not sure where to begin here.

Last edited by sfifwpaattsotwnwky (2020-04-10 22:23:11)

Offline

#2 2020-04-10 11:42:03

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,096

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

post full lspci -knn , dmesg and/or journalctl -b outputs .
Also xorg log and glxinfo -B (install mesa-demos if needed)

Several of those outputs will probably be large, use a pastebin for those.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-04-10 14:18:17

sfifwpaattsotwnwky
Member
Registered: 2019-12-20
Posts: 10

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

I uploaded all three outputs here.

Offline

#4 2020-04-10 20:08:06

sfifwpaattsotwnwky
Member
Registered: 2019-12-20
Posts: 10

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

I tried booting a couple of other live linux distributions, the only ones I tried where the problem occurred where arch based. I have linux 5.6.3.arch1-1 installed and of those without the problem opensuse was the most up to date at 5.6.2, so I tried arch with the kernel/modules from that version but it did not resolve the issue.

I also tried another example program using glfw and it also suffers from the same issue.

Offline

#5 2020-04-10 20:14:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

More likely an issue with the new default driver in mesa: https://wiki.archlinux.org/index.php/In … ver_(i965) try exporting that in /etc/profile or so. Also if xf86-video-intel is installed try removing it.

Offline

#6 2020-04-10 20:16:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,050

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

https://bugs.archlinux.org/task/66029 ?

Edit: ninja'd…

Last edited by seth (2020-04-10 20:17:27)

Online

#7 2020-04-10 21:17:50

sfifwpaattsotwnwky
Member
Registered: 2019-12-20
Posts: 10

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

I had tried the environmental variable MESA_LOADER_DRIVER_OVERRIDE and a dri configuration file, but both don't seem to have an effect.

If I uninstall xf86-video-intel then x doesn't start.

Setting the option for DRI2 or LIBGL_DRI3_DISABLE environmental variable causes all the programs that had the issue to be completely responsive then segfault.

Also if remove the line that sets TearFree to true then no windows are drawn at all, but the bg color is set and the wm is responsive to closing it by button press.

Offline

#8 2020-04-10 21:38:20

sfifwpaattsotwnwky
Member
Registered: 2019-12-20
Posts: 10

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

I found setting the option DRI to False fixes the issue.

To cover the other things I tried: setting NoAccel to True prevents x from starting one time I tried it, and had the same glitch another. Setting the option AccelMethod to uxa keeps x from starting, and blt has the same glitch.

Offline

#9 2020-04-10 21:42:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

Remove your configuration and xf86-video-intel. Without any configuration forcing the intel driver xorgs built in modesetting should load which is much more actively developed.

Last edited by V1del (2020-04-10 21:43:14)

Offline

#10 2020-04-10 22:11:52

sfifwpaattsotwnwky
Member
Registered: 2019-12-20
Posts: 10

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

Sorry, I didn't look at the error log to realize it was the config file that was causing x not to load after I tried removing xf86-video-intel. Removing xf86-video-intel fixed the issue. I then got some of the other graphical glitches, but switching the AccelMethod to uxa fixed those.

Thanks for the help!

Offline

#11 2020-04-11 05:58:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,050

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

Removing xf86-video-intel fixed the issue. I then got some of the other graphical glitches, but switching the AccelMethod to uxa fixed those.

Afair, the modesetting driver only supports "glamor" or "none" - you should check the xorg log on whether this disabled acceleration altogether.

Online

#12 2020-04-12 00:59:34

sfifwpaattsotwnwky
Member
Registered: 2019-12-20
Posts: 10

Re: [Solved] Intel comet lake graphical glitches in OpenGL programs

You are right, it just turned acceleration off. Using the modesetting driver and reverting to i965 fixed all the issues with acceleration still being on.

Thanks everyone again for your help.

Offline

Board footer

Powered by FluxBB