Doomed_Daniel, (edited )
@Doomed_Daniel@mastodon.gamedev.place avatar

If anyone has a recent AMD (i)GPU and is running Linux, can you do me a favor and test something? Only takes one or two minutes:
$ wget https://github.com/dhewm/dhewm3/releases/download/1.5.3/dhewm3-1.5.3try2_Linux_amd64.tar.gz
$ tar xf dhewm3-1.5.3try2_Linux_amd64.tar.gz
$ cd dhewm3/
$ wget https://files.holarse-linuxgaming.de/native/Spiele/Doom%203/Demo/doom3-linux-1.1.1286-demo.x86.run
$ sh doom3-linux-1.1.1286-demo.x86.run --tar xf demo/
$ ./dhewm3

Once the mars globe in the main menu is at full size, on my Laptop (with Ryzen 7640U w/ RDNA3) I get these blue flickering specks; I wonder if everyone gets them.

Thanks in advance! :)

keltar,

@Doomed_Daniel I see this problem with discrete RX 7900 GRE, but it is fine on renoir APU. Both on X11. Haven't checked on more modern APU on 7950X - ping me if you're interested, I'm not sure how to test it properly without replugging monitor to motherboard display port, so haven't done it.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@keltar thank you very much, this is very helpful!

if it's not too much work, checking the 7950X APU would be quite interesting, because I haven't had a report from any RDNA2 APU yet :)

keltar,

@Doomed_Daniel booted with integrated graphics, no problem there. OpenGL renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 17.0.6, DRM 3.57, 6.8.8-gentoo)

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@keltar awesome, thank you!

so it looks like this problem only affects RDNA3, both integrated and dedicated

emeb,
@emeb@society.oftrolls.com avatar

@Doomed_Daniel Tried it out on my AMD Ryzen 5 5600U with Radeon Graphics under Fedora 38 and it worked fine - no obvious blue flecks.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@emeb
good to know, thank you :)

byczech,
@byczech@witter.cz avatar

@Doomed_Daniel No, I have no flickers on my PC (AMD Ryzen 7 5700G).

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@byczech thank you! :)

GeorgePieVG,
@GeorgePieVG@mastodon.social avatar

@Doomed_Daniel Ryzen 7 5800H, RDNA2, Fedora 40, Wayland. Works fine, both windowed and fullscreen. Not that recent iGPU, but I hope this helps!

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@GeorgePieVG
Thank you very much!

Doesn't the Ryzen 7 5800H have a GCN 5 (Vega) iGPU, which is the predecessor to RDNA1?

GeorgePieVG,
@GeorgePieVG@mastodon.social avatar

@Doomed_Daniel Yes, indeed. I confused it with my discrete GPU. Sorry!

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@GeorgePieVG
no problem - but if you have a discrete AMD GPU (esp. one with RDNA), I'd be very interested if the bug happens there :)

GeorgePieVG,
@GeorgePieVG@mastodon.social avatar

@Doomed_Daniel Just checked, no bugs again. BTW, the dGPU is RX 6700M. Thanks for your hard work on the source port!

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@GeorgePieVG
thanks a lot for testing, and I'm glad you like the source port :)

shinyshinken,
@shinyshinken@mastodon.gamedev.place avatar

@Doomed_Daniel Tested on a 4800H w/ iGPU (Vega 7) on Manjaro Linux (X11).

Tested at default windowed resolution as well as 1920x1080 fullscreen. No blue dots to be seen.

I could test on a Steam Deck OLED later this weekend if necessary.

OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, LLVM 16.0.6, DRM 3.54, 6.6.26-1-MANJARO)

model name : AMD Ryzen 7 4800H with Radeon Graphics

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@shinyshinken Thank you very much!

Steam Deck OLED would be very interesting, as it has a RDNA2 GPU, which is only one generation behind my RDNA3 GPU (and at least two generations newer than the Vega GPU in the 4800H)

shinyshinken,
@shinyshinken@mastodon.gamedev.place avatar

@Doomed_Daniel Heya, late reply but finally managed to test it.

No artifacts to speak of.

One in windowed with default resolution, one in fullscreen (1280x800 steam deck resolution).

image/png

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@shinyshinken Thank you very much! :)
Good to know Steam Deck isn't affected.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

On my laptop this happens with Ubuntu 24.04 and also a very recent Arch Linux live image.

It does not happen on my old laptop with Intel GPU (with same Mesa and Kernel version), and not on my Desktop with nvidia GPU.
A friend couldn't reproduce it with his Radeon 5700 either.

But so far no one has tested it with RDNA3 (or even RDNA2), or AMD iGPUs in general (except for me on my Framework 13 AMD Laptop).
I wonder if this is a driver bug or maybe defective hardware or something.

Doomed_Daniel, (edited )
@Doomed_Daniel@mastodon.gamedev.place avatar

Doesn't happen on my secondary desktop with Radeon RX 580 (with the same Arch live system) either.

On the laptop the issue happens with X11, Wayland and XWayland.

Anyway, I'd be thankful about any reports, including "works on my system", ideally with information on your Linux kernel and Mesa version ($ glxinfo | grep "OpenGL renderer string") and which GPU/CPU your device has (for CPU: $ grep "model name" /proc/cpuinfo | head -n 1).

hugin,
@hugin@mastodon.social avatar

@Doomed_Daniel works on my Stinkpad T14

uname -a: Linux ******** 6.8.8-artix1-1 #1 SMP PREEMPT_DYNAMIC Mon, 29 Apr 2024 18:38:04 +0000 x86_64 GNU/Linux

OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.57, 6.8.8-artix1-1)

model name : AMD Ryzen 7 PRO 4750U with Radeon Graphics

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@hugin thank you, good to know! :)

hugin,
@hugin@mastodon.social avatar

@Doomed_Daniel that's a 1280x720 window, I selected 1600x900 fullscreen and it reverted to 640x420 (or something like that) windowed

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@hugin
that's weird - did it print any relevant warnings to the terminal?

Doomed_Daniel, (edited )
@Doomed_Daniel@mastodon.gamedev.place avatar

Github issue for this: https://github.com/dhewm/dhewm3/issues/574

So far the issue could only be reproduced on Ryzen 7x40 CPUs - it doesn't seem to happen with GCN5/Vega iGPUs (in Ryzen 4000 and 5000 APUs), nor with dedicated Navi/RDNA1 or RDNA2 GPUs (like RX 5700 or RX6700M).

I'm still especially interested in:

  • RDNA2 iGPUs (Ryzen 6000 mobile or 7000 desktop)
  • RDNA3 iGPUs (mobile Ryzen 7x40 and 8x40 and 8x00G for desktop), esp. in other devices than Framework laptops
  • dedicated RDNA3 GPUs (Radeon RX 7xxx)
danil,
@danil@mastodon.gamedev.place avatar

@Doomed_Daniel I may be not correct - in Vega iGPU NAN and INF from shaders were "red" on screen when screen connected to GPU, but latter they removed this feature from drivers, now it black.
Maybe it also something to do with nan or inf.

And if it Vulkan - there many "hidden" coflicts with memory types for AMD drivers, and validation layers dont catch that, AMD very strict with it - maybe somewhere in code used VK_ATTACHMENT_LOAD_OP_DONT_CARE instead of VK_ATTACHMENT_LOAD_OP_CLEAR.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@danil Hmm, it's neither red nor black (but it's not Vega but RDNA3, maybe there it's blue), but maybe it could be that NAN or INF are involved - though OTOH, shouldn't that cause glitches on other GPUs/drivers as well?

This isn't Vulkan, but OpenGL 1.4 with ARB assembly shaders

danil,
@danil@mastodon.gamedev.place avatar

@Doomed_Daniel >shouldn't that cause glitches on other GPUs/drivers as well?

INF and NAN is - undefined behavior, it can be anything, Nvidia display it as black color.

>This isn't Vulkan, but OpenGL 1.4

OpenGL driver... were always broken on AMD, you should be surprised it even work.
AMD have this https://community.amd.com/t5/opengl-vulkan/amd-gles2-depth-write-broken/m-p/279353 - may be related to your case, look screenshot there.

danil,
@danil@mastodon.gamedev.place avatar

@Doomed_Daniel >OpenGL 1.4

it does not have inf and nan support.
You need to "catch them" https://www.shadertoy.com/view/lsjBDy - look there define isNaN/inf - this you can use to catch them in old graphic api.

But - in general shaders translated/compiled to same "binary" - and modern GPU do not have support for 8-bit float and 16-bit float, only 32-bit, and maybe your shaders logic include some 8 or16 bit hardcoded logic that break on 32-bit shaders.
RDNA3 - is architecture with only 32-bit floats.

danil,
@danil@mastodon.gamedev.place avatar

@Doomed_Daniel But more realistically - I think it just "broken OpenGL drivers in AMD"... if you try to fix this bug - you will run in million other bugs.

As option that may work - try zink, that is OpenGL to Vulkan translation - zink work on Windows also it just opengl dll that you put at exe. But zink not always work, so try. It junk-solution ofc.

Ofc ultimate solution should be - just port/move to Vulkan.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@danil
I don't think so, AMDs open source Linux OpenGL implementation is generally really good, huge difference to their Windows driver.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

It looks like the bug only affects AMD RDNA3 GPUs (both iGPUs and dedicated ones), no RDNA2 or any other chips (or vendors) seem to be affected.

I created a Mesa bugreport: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11144

Thanks a lot to everyone who replied! :)

danil,
@danil@mastodon.gamedev.place avatar

@Doomed_Daniel I read your comment about pow and clamp
what if you replace clamp(0.,1.) with clamp(0.001, 1.) - still bug?
clamp should always return 0. positive that equal to lower clamp region, but maybe there some weird stuff that made clamp return negative 0 somehow, I can be wrong ofc just guess.

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@danil yeah, I actually tried:
PARAM d3_almost_zero = {0.01, 0.01, 0.01, 0.01};
MUL dhewm3tmpres.xyz, program.env[4], dhewm3tmpres;
MAX dhewm3tmpres.xyz, d3_almost_zero, dhewm3tmpres;

instead of MUL_SAT, didn't make a difference

danil,
@danil@mastodon.gamedev.place avatar

@Doomed_Daniel I see.
Have you tested shadertoy shaders, is there some weird bugs? Because many shaders use pow and clamp.

May be it another bug in shader compiler so it should affect all shaders..

what you see on this shader?
https://www.shadertoy.com/view/lfKSRV
On Nvidia left is red 0, right is gray 0

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@danil thanks for the testcase, looks good, I think:

danil,
@danil@mastodon.gamedev.place avatar

@Doomed_Daniel yes look same, so idk, need to test on your hardware that I dont have, so have fun xD

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@danil
I hope that some AMD driver developer figures this out =)

I guess if POW was generally broken someone would have noticed by now, but if the issue is OpenGL ARB shader specific, it's more likely that no one noticed because those are pretty rare (and it's not like POW always turns the pixels blue, only some of them, and they change all the time, giving a flickering effect)

slembcke,
@slembcke@mastodon.gamedev.place avatar

@Doomed_Daniel I have a 7840 Framework running Fedora. Think that’s different enough to warrant testing?

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@slembcke definitely - I wanna rule out that my hardware is broken

(and so far no one has been able to reproduce my glitches - but so far no one tested with a RDNA iGPU, the closest was a RX 6700M RDNA2 dGPU)

slembcke,
@slembcke@mastodon.gamedev.place avatar

@Doomed_Daniel Confirmed:

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@slembcke thanks, that's good to know - at least my hardware is (likely) not broken =)

Of course it's still unclear if it's framework-specific, Ryzen 7040 specific, RDNA3-specific (or just RDNA3 iGPU)... but I'm glad that someone can reproduce it at all

slembcke,
@slembcke@mastodon.gamedev.place avatar

@Doomed_Daniel Probably redundant info for you, but I posted this on the GH issue: https://github.com/dhewm/dhewm3/issues/574#issuecomment-2105260098

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@slembcke I wonder if Frameworks firmware could somehow cause this - it's known to be a bit wonky and there were GPU-related issues that were supposed to be fixed with BIOS updates (e.g. https://community.frame.work/t/tracking-graphical-corruption-in-fedora-39-amd-3-03-bios/39073/260 ), so it doesn't seem impossible..

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Durango
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • ethstaker
  • JUstTest
  • InstantRegret
  • Leos
  • normalnudes
  • everett
  • khanakhh
  • osvaldo12
  • cisconetworking
  • modclub
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines