GL clients never show up in VMware [VMWare: No 3D enabled (0, Success).]

Bug #1647416 reported by Andreas Pokorny
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Confirmed
Undecided
Unassigned
mir (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce:
* install vmware workstation player
* setup an ubuntu image with the zesty iso image for amd64
* apt install mir-demos
* run sudo miral-shell --arw-file --vt 2 -f /tmp/mir_socket
* mir_demo_client_eglplasma -m /tmp/mir_socket

The client application exits and in the terminal output you should see:
VMWare: No 3D enabled (0, Success).

That message is from the mesa vmware driver:

https://github.com/mesa3d/mesa/blob/master/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c#L880

The ioctl seems to complete successfully but yields the wrong result.

The same can be experienced with miral-shell running in X11.
GL clients within X11 work. EGL on DRM seems to work - since mir_proving_server on DRM works too.

Update: The problem seems to be related to dmabuf fds. The error message mentioned above does not seem to stop the egl initialization. So later in the process when mirclient receives the buffers the driver fails to import the dmabuf fds. So maybe the interrupted initialization leaves the egl structures in a state incapable to perform the dmabuf fd to drm handle mapping.

Tags: vm
tags: added: vm
description: updated
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

On VMWare running on Windows 10, using zesty iso image (make sure to blacklist intel_powerclamp as specified here: http://pubs.vmware.com/Release_Notes/en/workstation/12pro/workstation-1251-release-notes.html)

I get a crash with egl clients:

http://pastebin.ubuntu.com/23584267/

Revision history for this message
Alberto Aguirre (albaguirre) wrote :
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

" buffers->back = ((struct gbm_dri_bo *)dri2_surf->back->bo)->image;"

Looks like the gbm_dri_bo pointer is null:

http://pastebin.ubuntu.com/23584509/

description: updated
Changed in mir:
status: New → Confirmed
summary: - vmwares mesa driver fails on mir platform during init
+ GL clients never show up in VMware [VMWare: No 3D enabled (0, Success).]
Revision history for this message
Michał Sawicz (saviq) wrote :

Syncing task from Mir.

Changed in mir (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.