Bug 2224773

Summary: Waydroid 3D Rendering broken on Radeon GPUs
Product: [Fedora] Fedora Reporter: klaussemmler
Component: waydroidAssignee: Alessandro Astone <ales.astone>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: ales.astone
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Rush Rally 3
none
Blue Archive none

Description klaussemmler 2023-07-22 17:42:31 UTC
Created attachment 1977082 [details]
Rush Rally 3

Created attachment 1977082 [details]
Rush Rally 3

Description of problem:

When running applications that uses 3d accelerated rendering, the rendered apps are unusable because the app contents are corrupted (see screenshots).

Version-Release number of selected component (if applicable):

Waydroid 1.4.1

How reproducible:

It is always reproducible with 3d accelerated apps like Blue Archive and Rush Rally 3.

Steps to Reproduce:
1. Open the waydroid overview.
2. Launch one of the listed applications.
3.1 For Blue Archive, launching it will show a black or translucent window, rendering the app unusable.
3.2 For Rush Rally 3, start the app and start a race or use the integrated graphics settings detection.

Actual results:

The apps are unusable because of the garbled rendering.

Expected results:

The apps render properly and are usable.

Additional info:

System Specs

OS: Fedora 38
Desktop: Gnome 44 (also happens with KDE Plasma 5.27)
Kernel Version: 6.3.12
Mesa Version: 23.1.3
GPU: Radeon RX6600 (also happens with RX6800XT)

Comment 1 klaussemmler 2023-07-22 17:43:09 UTC
Created attachment 1977083 [details]
Blue Archive

Comment 2 klaussemmler 2023-07-23 13:11:10 UTC
I found a workaround for Rush Rally 3 by limiting the Framerate to 60. This fixed the rendering issues. But this is just a workaround as only very few applications offer this option and waydroid does not offer global frame limiting options. It could be an AMD specific issue as this seems similar to this reports:

https://bugzilla.redhat.com/show_bug.cgi?id=2188449
https://gitlab.freedesktop.org/mesa/mesa/-/issues/9189

A possible patch can be found here:

https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23965