https://bugs.freedesktop.org/show_bug.cgi?id=107428
Bug ID: 107428 Summary: Flickering artifacts in OpenRA with Vega 56 Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: isaaccurtis1@gmail.com
Created attachment 140898 --> https://bugs.freedesktop.org/attachment.cgi?id=140898&action=edit Capture of artifacts during menu screen.
System is Arch Linux running kernel 4.17.10 with Mesa 18.1.4.
glinfo line: GL_VERSION: 3.1 Mesa 18.1.4 GL_RENDERER: Radeon RX Vega (VEGA10, DRM 3.25.0, 4.17.10-1-zen, LLVM 6.0.1) GL_VENDOR: X.Org GL_SHADING_LANGUAGE_VERSION = 1.40 GLU_VERSION: 1.3 GLU_EXTENSIONS: GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess GLUT_API_VERSION: 4 GLUT_XLIB_IMPLEMENTATION: 13
When opening the game a large number of blocky artifacts appear making fonts unintelligible and the game unplayable. The artifacts are not static and move around, much like static.
OpenRA is an open source game engine. This is a new bug that has been isolated to a particular commit: https://github.com/OpenRA/OpenRA/commit/bfcbe8c0043bfadd1b38c4987f133e29aa54...
However, this is the only GPU that currently displays this bug that has been found.
https://bugs.freedesktop.org/show_bug.cgi?id=107428
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |git Product|DRI |Mesa QA Contact| |dri-devel@lists.freedesktop | |.org Component|DRM/AMDgpu |Drivers/Gallium/radeonsi
--- Comment #1 from Michel Dänzer michel@daenzer.net --- Mesa seems more likely than the kernel for this.
https://bugs.freedesktop.org/show_bug.cgi?id=107428
--- Comment #2 from Isaac Curtis isaaccurtis1@gmail.com --- A second machine works just fine without the artifacts. Same kernel, same Mesa version.
Glinfo: GL_VERSION: 3.0 Mesa 18.1.4 GL_RENDERER: Mesa DRI Intel(R) Haswell Mobile GL_VENDOR: Intel Open Source Technology Center GL_SHADING_LANGUAGE_VERSION = 1.30 GLU_VERSION: 1.3 GLU_EXTENSIONS: GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess GLUT_API_VERSION: 4 GLUT_XLIB_IMPLEMENTATION: 13
https://bugs.freedesktop.org/show_bug.cgi?id=107428
--- Comment #3 from Isaac Curtis isaaccurtis1@gmail.com --- Created attachment 140900 --> https://bugs.freedesktop.org/attachment.cgi?id=140900&action=edit video of artifacts
I captured a small video to show the nature of the artifacts.
https://bugs.freedesktop.org/show_bug.cgi?id=107428
Isaac Curtis isaaccurtis1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #4 from Isaac Curtis isaaccurtis1@gmail.com --- The bug has been identified. It can be seen on Lines 40-53 of https://github.com/OpenRA/OpenRA/blob/bfcbe8c0043bfadd1b38c4987f133e29aa5427...
Basically, it was a floating point comparison bug. It checked for samplerIndex a float that takes int values, against 1.0, 2.0, etc. However, sometimes 1 is less than 1 due to floating point issues. Changing samplerIndex < 1.0 to samplerIndex < 0.5 fixes the issue.
It turns out that AMDGPU drivers seem to be the only implementation that experience this particular issue.
This case is resolved. I don't see anything to fix in the drivers here.
dri-devel@lists.freedesktop.org