Skip to contentSkip to conversation

Flickering artifacts in OpenRA with Vega 56

Bug 107428 [email protected] 1 participant 5 messages Jul 30, 2018 – Sep 24, 2018

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]

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/bfcbe8c0043bfadd1b38c4987f133e29aa54275c

However, this is the only GPU that currently displays this bug that has been found.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=107428

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Version|unspecified                 |git
            Product|DRI                         |Mesa
         QA Contact|                            |[email protected]
                   |                            |.org
          Component|DRM/AMDgpu                  |Drivers/Gallium/radeonsi

--- Comment #1 from Michel Dänzer <[email protected]> --- Mesa seems more likely than the kernel for this.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107428

--- Comment #2 from Isaac Curtis <[email protected]> ---
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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107428

--- Comment #3 from Isaac Curtis <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107428

Isaac Curtis <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #4 from Isaac Curtis <[email protected]> --- The bug has been identified. It can be seen on Lines 40-53 of
https://github.com/OpenRA/OpenRA/blob/bfcbe8c0043bfadd1b38c4987f133e29aa54275c/glsl/shp.frag

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel