You are not logged in.

#1 2020-04-15 10:53:28

new_duck
Member
Registered: 2020-04-15
Posts: 7

Texture compression (S3TC possibly) broken for Mesa >= 20.0

Since around 2 weeks ago after updating (pacman -Syu), all games (3d and 2d) I try to play (through Steam or just running binaries) have broken textures. They'll be miscolored, offset, just generally glitched and weird. I've tried restarting, updating, installing mesa-git instead of mesa (thought that might be the problem), still nothing has worked.

Anyone have any ideas on how to troubleshoot and fix it?

System Specs:
WM: i3
Kernel: 5.6.3-arch1-1
CPU: AMD Athlon 300U with Radeon Vega Mobile Gfx (4) @ 2.400GHz
GPU: AMD ATI 03:00.0 Picasso
RAM: 6GB / VRAM: 2GB

Mesa version: 20.0.4-1

Last edited by new_duck (2020-06-06 23:47:41)

Offline

#2 2020-04-15 11:04:07

new_duck
Member
Registered: 2020-04-15
Posts: 7

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

Screenshots:
Factorio: https://cdn.discordapp.com/attachments/ … nknown.png
European Truck Simulator 2: https://cdn.discordapp.com/attachments/ … 0027_1.jpg

Mod note: Replaced oversized images with URLs. Please read the Code of Conduct and adhere to the image posting guidelines.

Last edited by WorMzy (2020-04-15 12:06:20)

Offline

#3 2020-04-15 12:41:56

new_duck
Member
Registered: 2020-04-15
Posts: 7

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

I've managed to fix it by downgrading mesa to an older version.

Offline

#4 2020-04-15 12:45:22

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,952

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

EDIT: that is at best a workaround , not  a solution .


If you want to investigate further :
end-of-edit

post lspci -knn , glxinfo -B , glxinfo32 -B , dmesg and/or journalctl -b .
(glxinfo comes with mesa-demos , glxinfo32 with lib32-mesa-demos )

Do linux native games like xonotic, supertux, supertuxkart also have this problem ?

Last edited by Lone_Wolf (2020-04-15 12:46:41)


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


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2020-04-15 12:51:53

new_duck
Member
Registered: 2020-04-15
Posts: 7

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

Tracked it down to any mesa version >=20.0.0 (latest that works is 19.3.4-2) is broken for me.

Last edited by new_duck (2020-04-15 12:58:02)

Offline

#6 2020-04-15 12:55:49

new_duck
Member
Registered: 2020-04-15
Posts: 7

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

The games I've tried are with native binaries fyi, but haven't checked yet for those games you listed.

lspci -knn: https://pastie.io/wedchl.sql
glxinfo -B: https://pastie.io/swyzyi.yml
glxinfo32 -B: https://pastie.io/nzbgta.yml

Offline

#7 2020-04-15 13:48:50

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,952

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

The main thing is that you tested with programs that didn't use steam, proton , wine or other layers but opengl .

The outputs you posted look ok, make sure mesa & lib32-mesa are same versions.

dmesg / journal and xorg log would be next ones to look into.


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


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2020-06-06 23:37:53

new_duck
Member
Registered: 2020-04-15
Posts: 7

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

Okay apologies I got locked out of my forum account. I've tracked down the issue to texture compression (S3TC pretty sure). No idea where to go from here now though.

Offline

#9 2020-06-07 13:51:18

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,952

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

I've tracked down the issue to texture compression (S3TC pretty sure)

Please share how you arrived at that conclusion (preferably with log output ).

https://gitlab.freedesktop.org/mesa/mesa/-/issues/2908 has many similarities with your issue :
mesa 19.x.y worked, mesa 20.0.1 didn't
The submitter uses a Ryzen 3200 with a Radeon Vega Mobile Gfx .

It does list a workaround, try running

$ AMD_DEBUG=nodmacopyimage program_with_texture_issues

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


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#10 2020-06-07 13:58:43

new_duck
Member
Registered: 2020-04-15
Posts: 7

Re: Texture compression (S3TC possibly) broken for Mesa >= 20.0

That works! Thank you so much.

I don't have any logs or anything but it's because in Factorio there's an option for texture compression, and the graphics issues were fixed when I turned it off

Offline

Board footer

Powered by FluxBB