Bug 2247117

Summary: Regression in Mesa 23.2.1 prevents 3D accelerated UTM virtualization
Product: [Fedora] Fedora Reporter: Stephen Gallagher <sgallagh>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 39CC: ajax, bskeggs, geno1520, igor.raits, jexposit, j, kparal, lbrabec, lyude, mail, rhughes, rstrode, tstellar, walter.pete
Target Milestone: ---Keywords: CommonBugs, Desktop, Regression
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard: https://discussion.fedoraproject.org/t/95026
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-12 10:18:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2143447    

Description Stephen Gallagher 2023-10-30 18:58:51 UTC
As documented in the UTM upstream issue tracker: https://github.com/utmapp/UTM/issues/5749

A regression in Mesa 23.2.1 causes any attempt to boot a Fedora 39 virtual image on UTM (a QEmu-based virtual machine for OSX) to fail with the error "EMU exited from an error: GL_ARB_clear_texture".

A patch is available upstream to correct this issue: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25580

Reproducible: Always

Steps to Reproduce:
1. Create a Fedora 39 virtual machine on an Apple Silicon-based OSX system using UTM
2. Configure the VM to use 3D acceleration
Actual Results:  
The image will not load due to a GL error.

Expected Results:  
A usable virtual machine.

Comment 1 Fedora Blocker Bugs Application 2023-10-30 19:10:53 UTC
Proposed as a Freeze Exception for 39-final by Fedora user sgallagh using the blocker tracking app because:

 Apple Silicon machines are very popular and UTM is the most popular open-source virtualization tool for them. Without backporting this virgl fix in mesa, Fedora 39 install media will be unusable unless end-users are instructed to disable 3D acceleration in the virtual machines. Aside from being inconvenient, this will give a very poor initial experience for anyone using Live media to evaluate Fedora.

Comment 2 Stephen Gallagher 2023-10-31 18:14:25 UTC
Making things worse, a trivial backport isn't enough because Mesa won't build against LLVM 17 right now due to https://releases.llvm.org/17.0.1/docs/ReleaseNotes.html#changes-to-llvm-infrastructure

Comment 3 Kamil Páral 2024-01-12 11:15:52 UTC
This should be fixed with Mesa 23.3.2. More details are available here:
https://discussion.fedoraproject.org/t/fedora-39-images-crash-in-utm-virtualization-when-3d-acceleration-is-enabled/95026