ROCm / ROCK-Kernel-Driver

AMDGPU Driver with KFD used by the ROCm project. Also contains the current Linux Kernel that matches this base driver
Other
333 stars 101 forks source link

Odd graphical glitches with specific hardware using AMDgpu #140

Closed MkThUnderwd closed 2 years ago

MkThUnderwd commented 2 years ago

Hello.

This bug is revealed in the game Apex Legends on Steam. It is free to play so easier to test by anyone.

I have tested two different AMD graphics cards in the same system on Windows 10 and Ubuntu Linux using Xorg and AMDgpu kernel driver. The only test of the four that fails is with the older card listed below on Ubuntu Linux.

lspci entry for the older card: 06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] (rev f1) (prog-if 00 [VGA controller]) Subsystem: PC Partner Limited / Sapphire Technology Radeon R9 380 Nitro 4G D5 Flags: bus master, fast devsel, latency 0, IRQ 59, IOMMU group 2 Memory at d0000000 (64-bit, prefetchable) [size=256M] Memory at e0000000 (64-bit, prefetchable) [size=2M] I/O ports at f000 [size=256] Memory at fcf00000 (32-bit, non-prefetchable) [size=256K] Expansion ROM at 000c0000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: amdgpu Kernel modules: amdgpu

X.org 1.21.1.3 Linux 5.15.0-47-generic

The glitch: Certain map geometry appears to be unanchored and flail about making parts of the map see through that should not be and makes gameplay impossible due to all the stretched polygons in the player's face. The glitch does not occur in the firing range.

An example of what is happening is in this post and two others were seeing it with the same card: https://www.reddit.com/r/ApexLegendsOnLinux/comments/thqgwj/strange_visual_glitches/ I will be updating this post with more information including pictures and video links. My recording of the glitch (flashing images warning): https://youtu.be/XiRMm1Yw-r4

If you have any ideas for how to search for a solution to this, I am all ears. I am willing to test if someone is willing to take a crack at the coding portion.

kentrussell commented 2 years ago

ROCm is primarily focused on the Compute side of things. For a graphical issue like this, it will be addressed far more quickly by opening a Bug Report at https://gitlab.freedesktop.org/drm/amd/-/issues . A full dmesg is good, as well as if there is any sort of regression point (a certain ROCm release, a certain base Ubuntu kernel, etc).

While we share the kernel code with amdgpu, our developers are all focused on the compute side and don't have much graphical expertise. The gitlab link above will get a report created and direct it right to the display guys, which will ensure that you get some help quickly. The other thing that I'd recommend is ensuring that you have the latest VBIOS from Sapphire . Though I can't seem to find the R9 285/290 on their product page, so contacting them at https://support.sapphiretech.com/Default.asp?lang=eng to get any VBIOS updates might help too. Hopefully between those 2 options, you can get squared away and get Apex Legends working.

For reference, all of the info here is great and you can just copy/paste that into the bug report at Gitlab. Just make sure to add a full dmesg (after running the game and getting the flashing) just to give some additional info, and let them know any other kernel packages you've tried (successfully or otherwise). Good luck!

MkThUnderwd commented 2 years ago

Thank you. https://gitlab.freedesktop.org/drm/amd/-/issues/2172