You are not logged in.

#1 2021-02-26 19:22:08

feskowvega
Member
Registered: 2021-02-26
Posts: 5

OpenGL 3D artefacts

Hello. I've updated last month and started noticing visual glitches in 3D renders.
After I tried to reinstall Arch Linux, glitches are still present.

What's happening is there are glitches in models of 3D objects, like the top side of the cube is divided by glitched diagonal line, as if there is calculation error in the triangle coordinates. I also ran 'glxgears' to test render there and got glitched green gear near the connection with the red one.

I have tried downgrading (each one individually) mesa to 2020.01.31 version and xf86-video-intel to 2 month ago and it did not fix the issue. I could not find anyone having the same problem, perhaps it's just me or I'm googling wrong.

RAM: 2 GiB
CPU: Intel Pentium(R) N3540 2.16GHz x 4
GPU: Intel HD Graphics (tho XFCE says its Intel Bay Trail (1.5 GiB)
Linux version 5.11.1-arch1-1 (me@me) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Tue, 23 Feb 2021 14:05:30 +0000

Screenshots with glitches: (collab: https://imgur.com/a/hXpMKOs)
Glxgears https://i.imgur.com/H8yAdaO.png
Blender cubes with artifacts https://i.imgur.com/d0SKidh.png
Blender cubes up in close without glitches https://i.imgur.com/q8OSTuz.png

Last edited by feskowvega (2021-02-26 21:12:45)

Offline

#2 2021-02-26 19:49:32

seth
Member
Registered: 2012-09-03
Posts: 51,302

Re: OpenGL 3D artefacts

https://bugs.archlinux.org/task/69557

On a limb: https://wiki.archlinux.org/index.php/In … ver_(i965) ?

Edit: also please replace the images with links and/or thumbnails (200x200 max)

Last edited by seth (2021-02-26 19:56:01)

Online

#3 2021-02-26 20:06:01

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

Re: OpenGL 3D artefacts

Out of curiosity, what is the output of glxinfo -B?
And also some drm messages perhaps i.e. journalctl / dmesg | grep drm.

Offline

#4 2021-02-26 21:25:46

feskowvega
Member
Registered: 2021-02-26
Posts: 5

Re: OpenGL 3D artefacts

Posting command outputs for d_fajardo
https://gist.github.com/affirVega/780f5 … fe26731ab2

Offline

#5 2021-02-26 21:41:32

feskowvega
Member
Registered: 2021-02-26
Posts: 5

Re: OpenGL 3D artefacts

This is close representation of artifacts I was experiencing in Minecraft too! That's a good match, thank you a lot.


seth wrote:

On a limb: https://wiki.archlinux.org/index.php/In … ver_(i965) ?

Something quite interesting has happened. First I did 'pacman -Syyu', then added the env variable to my .xinitrc and started glxgears, the artifacts were present. I decided to give it a shot and set it to empty string, and suddenly artifacts have dissapeared and FPS were much higher.
Screenshot: https://imgur.com/a9sOLsB

Update. I have found that exporting variable `MESA_LOADER_DRIVER_OVERRIDE=` makes glxgears to fail to load driver /usr/lib/dri/_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri) and gears look clean.

Last edited by feskowvega (2021-02-26 21:51:44)

Offline

#6 2021-02-26 21:51:35

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: OpenGL 3D artefacts

feskowvega wrote:

First I did 'pacman -Syyu'

Who told you that that was a good idea?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2021-02-26 21:57:18

feskowvega
Member
Registered: 2021-02-26
Posts: 5

Re: OpenGL 3D artefacts

Slithery wrote:
feskowvega wrote:

First I did 'pacman -Syyu'

Who told you that that was a good idea?

I saw this command in this post (https://bbs.archlinux.org/viewtopic.php?id=130138) so I assumed it's not a bad thing to execute it.
What did I do wrong so I can avoid it?

Offline

#8 2021-02-27 07:24:46

seth
Member
Registered: 2012-09-03
Posts: 51,302

Re: OpenGL 3D artefacts

man pacman

Check what "-yy" actually does.

You're probably now using the software rasterizer?
Check glxinfo.

You might want to try to remove xf86-video-intel (and use the modsetting driver on top of the kernel module, xf86-video-intel recently caused a lot of misbehavior)

Edit: as you can read in the posted screenshots, the (likely) software implementation simply doesn't sync to vblank and thus exceeds 60Hz… which is not impressive)

Last edited by seth (2021-02-27 07:26:41)

Online

#9 2021-02-27 13:54:57

feskowvega
Member
Registered: 2021-02-26
Posts: 5

Re: OpenGL 3D artefacts

seth wrote:
man pacman

You're probably now using the software rasterizer?
Check glxinfo.

glxinfo have changed when MESA_LOADER_DRIVER_OVERRIDE was set to invalid. For example, when it is not set, glxinfo output is

    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) HD Graphics (BYT) (0xf31)

while with invalid flag it's output is

    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 11.1.0, 128 bits) (0xffffffff)

Here are full and brief outputs from the command: https://gist.github.com/affirVega/0aaad … 9d994a5c09


seth wrote:

You might want to try to remove xf86-video-intel (and use the modsetting driver on top of the kernel module, xf86-video-intel recently caused a lot of misbehavior)

I have set modesetting to be the driver, seems to be working exactly the same. Thanks you for the suggestion.

Offline

#10 2021-02-27 14:02:56

seth
Member
Registered: 2012-09-03
Posts: 51,302

Re: OpenGL 3D artefacts

seth kinda wrote:

You're now using the software rasterizer.

That's not a solution.

Online

Board footer

Powered by FluxBB