CRSAM
Contributor
Contributor

No 3D accelerction from the host

Software : VMware Workstation Pro 16.1.0 for linux

CPU & GPU: AMD Ryzen 7-4700U with Radeon Graphics

OS : Gentoo Linux x64

Kernel : Linux 5.11.0-zen2 AuthenticAMD GNU/Linux  

the host os can use 3D acceleration

Spoiler
glxinfo | grep direct 
direct rendering: Yes
   GL_AMD_gpu_shader_int64, GL_AMD_multi_draw_indirect,  
   GL_ARB_depth_clamp, GL_ARB_derivative_control, GL_ARB_direct_state_access,  
   GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect,  
   GL_ARB_indirect_parameters, GL_ARB_instanced_arrays,  
   GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multi_draw_indirect,  
   GL_AMD_multi_draw_indirect, GL_AMD_performance_monitor,  
   GL_ARB_direct_state_access, GL_ARB_draw_buffers,  
   GL_ARB_draw_indirect, GL_ARB_draw_instanced, GL_ARB_enhanced_layouts,  
   GL_ARB_indirect_parameters, GL_ARB_instanced_arrays,  
   GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multi_draw_indirect,  
   GL_EXT_copy_texture, GL_EXT_depth_bounds_test, GL_EXT_direct_state_access,

vmware.log:

Spoiler
$ cat vmware.log | grep mks
2021-03-28T09:51:04.214+08:00| vmx| I005: DICT              mks.enable3d = "TRUE"
2021-03-28T09:51:04.452+08:00| mks| I005: VTHREAD 140657866950208 "mks" tid 27024
2021-03-28T09:51:04.452+08:00| mks| I005: MKS thread is alive
2021-03-28T09:51:04.452+08:00| mks| I005: MKS: SSE2=1, SSSE3=1, SSE4_1=1
2021-03-28T09:51:04.452+08:00| mks| I005: MKS-RenderMain: PowerOn allowed MKSBasicOps GLRenderer GLBasic VKRenderer  
2021-03-28T09:51:04.452+08:00| mks| I005: MKS-RenderMain: Collecting RenderOps caps from GLRenderer
2021-03-28T09:51:04.452+08:00| mks| I005: MKS-RenderMain: Starting GLRenderer
2021-03-28T09:51:04.453+08:00| mks| I005: MKSXInput: XI major version 2, minor version 3
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: DISPLAY: ":0" has an unsupported driver.
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: GLX ClientString: Mesa Project and SGI
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: Disabling 3D on this display due to presence of an unsupported graphics driver.
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: Set the config option mks.gl.allowUnsupportedDrivers=TRUE to override.
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: Console display (:0) does not support direct rendering.
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: env DISPLAY (:0) matches console display.
2021-03-28T09:51:04.456+08:00| mks| I005: GLHostX11: DISPLAY: "unix:0" has an unsupported driver.
2021-03-28T09:51:04.456+08:00| mks| I005: GLHostX11: GLX ClientString: Mesa Project and SGI
2021-03-28T09:51:04.456+08:00| mks| I005: GLHostX11: Disabling 3D on this display due to presence of an unsupported graphics driver.
2021-03-28T09:51:04.456+08:00| mks| I005: GLHostX11: Set the config option mks.gl.allowUnsupportedDrivers=TRUE to override.
2021-03-28T09:51:04.456+08:00| mks| W003: GLHostX11: GLX_Init error: No X11 Display is available!
2021-03-28T09:51:04.456+08:00| mks| W003: GLWindow: GLHost init failed
2021-03-28T09:51:04.456+08:00| mks| I005: MKS-RenderMain: Failed to start the renderer GLRenderer
2021-03-28T09:51:04.456+08:00| mks| I005: MKS-RenderMain: Collecting RenderOps caps from VKRenderer
2021-03-28T09:51:04.456+08:00| mks| I005: MKS-RenderMain: Starting VKRenderer
2021-03-28T09:51:04.471+08:00| mks| I005: Vulkan Renderer: Using device 0 of 1
2021-03-28T09:51:04.473+08:00| mks| W003: Vulkan Renderer: VK_EXT_line_rasterization extension not supported. Line stipple and smoothing may n
ot work.
2021-03-28T09:51:04.479+08:00| mks| I005: Vulkan Renderer: VKRDevice_Create: Succeeded with DISPLAY=:0
2021-03-28T09:51:04.479+08:00| mks| I005: Vulkan Renderer: AMD GPUs not supported at this time.
2021-03-28T09:51:04.481+08:00| mks| I005: MKS-RenderMain: Failed to start the renderer VKRenderer
2021-03-28T09:51:04.481+08:00| mks| I005: MKS-RenderMain: Collecting RenderOps caps from GLBasic
2021-03-28T09:51:04.481+08:00| mks| I005: MKS-RenderMain: Starting GLBasic
2021-03-28T09:51:04.481+08:00| mks| I005: MKSXInput: XI major version 2, minor version 3
2021-03-28T09:51:04.483+08:00| mks| I005: GLHostX11: DISPLAY: ":0" has an unsupported driver.
2021-03-28T09:51:04.483+08:00| mks| I005: GLHostX11: GLX ClientString: Mesa Project and SGI
2021-03-28T09:51:04.483+08:00| mks| I005: GLHostX11: Disabling 3D on this display due to presence of an unsupported graphics driver.
2021-03-28T09:51:04.483+08:00| mks| I005: GLHostX11: Set the config option mks.gl.allowUnsupportedDrivers=TRUE to override.
2021-03-28T09:51:04.483+08:00| mks| I005: GLHostX11: Console display (:0) does not support direct rendering.
2021-03-28T09:51:04.483+08:00| mks| I005: GLHostX11: env DISPLAY (:0) matches console display.
2021-03-28T09:51:04.484+08:00| mks| I005: GLHostX11: DISPLAY: "unix:0" has an unsupported driver.
2021-03-28T09:51:04.484+08:00| mks| I005: GLHostX11: GLX ClientString: Mesa Project and SGI
2021-03-28T09:51:04.484+08:00| mks| I005: GLHostX11: Disabling 3D on this display due to presence of an unsupported graphics driver.
2021-03-28T09:51:04.484+08:00| mks| I005: GLHostX11: Set the config option mks.gl.allowUnsupportedDrivers=TRUE to override.
2021-03-28T09:51:04.484+08:00| mks| W003: GLHostX11: GLX_Init error: No X11 Display is available!
2021-03-28T09:51:04.484+08:00| mks| I005: GLBasic: Failed to start GLBasic
2021-03-28T09:51:04.484+08:00| mks| I005: MKS-RenderMain: Failed to start the renderer GLBasic
2021-03-28T09:51:04.484+08:00| mks| I005: MKS-RenderMain: Collecting RenderOps caps from MKSBasicOps
2021-03-28T09:51:04.484+08:00| mks| I005: MKS-RenderMain: Starting MKSBasicOps
2021-03-28T09:51:04.484+08:00| mks| I005: MKS-RenderMain: Started MKSBasicOps
2021-03-28T09:51:04.484+08:00| mks| I005: MKS-RenderMain: Found Full Renderer: MKSBasicOps
2021-03-28T09:51:04.484+08:00| mks| I005: MKS-RenderMain: MinimalCaps: maxTextureSize=32768
2021-03-28T09:51:04.484+08:00| mks| I005: SOCKET creating new socket listening on /tmp/vmware-{an_user_name_here}/mksctrl/mksctrl-0000026972-000-fa7d8f02
2021-03-28T09:51:04.484+08:00| mks| I005: SOCKET 1 (95) creating new listening socket on port -1
2021-03-28T09:51:04.484+08:00| mks| I005: KHBKL: Unable to parse keystring at: ''
2021-03-28T09:51:04.485+08:00| mks| I005: MKSRemoteMgr: Set default display name: Windows 7
2021-03-28T09:51:04.485+08:00| mks| I005: MKSRemoteMgr: Loading VNC Configuration from VM config file
2021-03-28T09:51:04.491+08:00| vmx| I005: [msg.mks.no3D] No 3D support is available from the host. The 3D features of the virtual machine will
be disabled.
2021-03-28T09:51:04.677+08:00| mks| I005: MKSControlMgr: connected
2021-03-28T09:51:04.691+08:00| mks| I005: SWBWindow: Number of MKSWindows changed: 1 rendering MKSWindow(s) of total 1.
2021-03-28T09:51:04.691+08:00| mks| I005: MKSXInput: XI major version 2, minor version 3
2021-03-28T09:51:04.692+08:00| mks| I005: XINFO X fd is 17
2021-03-28T09:51:04.692+08:00| mks| I005: XINFO depth 24 bpp 32 class 4
2021-03-28T09:51:04.692+08:00| mks| I005: XINFO  ServerVendor: "The X.Org Foundation"
2021-03-28T09:51:04.692+08:00| mks| I005: XINFO VendorRelease: 12010000
2021-03-28T09:51:04.693+08:00| mks| I005: XINFO XKB available, version 1.0
2021-03-28T09:51:04.693+08:00| mks| I005: XINFO XTEST available, version 2.2
2021-03-28T09:51:04.693+08:00| mks| I005: XINFO Xinerama available
2021-03-28T09:51:04.694+08:00| mks| I005: XKeymap_PowerOn: use evdev keycode mapping.
2021-03-28T09:51:04.694+08:00| mks| I005: X11-Backend: successfully started by HWinMux to do window composition.
2021-03-28T09:51:04.694+08:00| mks| I005: X11-Backend: XINFO SHM available, version 1.2, shared pixmaps
2021-03-28T09:51:04.695+08:00| mks| I005: MKS-HWinMux: Started X11 presentation backend.
2021-03-28T09:51:04.702+08:00| mks| I005: KHBKL: Unable to parse keystring at: ''
2021-03-28T09:51:04.736+08:00| mks| I005: SWBWindow: Number of MKSWindows changed: 1 rendering MKSWindow(s) of total 2.
2021-03-28T09:51:09.714+08:00| mks| I005: SWBWindow: Number of MKSWindows changed: 0 rendering MKSWindow(s) of total 1.
2021-03-28T09:51:09.714+08:00| mks| I005: X11-Backend: stopped by HWinMux to do window composition.
2021-03-28T09:51:09.715+08:00| mks| I005: SWBWindow: Number of MKSWindows changed: 0 rendering MKSWindow(s) of total 0.
2021-03-28T09:51:09.722+08:00| mks| I005: MKSControlMgr: disconnected
2021-03-28T09:51:09.722+08:00| mks| I005: MKS-RenderMain: Stopped MKSBasicOps
2021-03-28T09:51:09.722+08:00| mks| I005: MKS PowerOff
2021-03-28T09:51:09.722+08:00| mks| I005: MKS thread is exiting


$ cat vmware.log | grep 3d
2021-03-28T09:51:04.214+08:00| vmx| I005: DICT              mks.enable3d = "TRUE"
2021-03-28T09:51:04.518+08:00| vmx| I005: SVGA3dClamp: Renderer Provides     BC67Level:     0 (    0,     0)
2021-03-28T09:51:04.518+08:00| vmx| I005: SVGA3dClamp: Renderer Provides BaseCapsLevel:     0 (    0,     0)
2021-03-28T09:51:04.518+08:00| vmx| I005: SVGA3dClamp: Renderer Provides    ClampLevel:     0 (    0,     0)
2021-03-28T09:51:04.518+08:00| vmx| I005: SVGA3dCaps: host, at power on (3d enabled)
2021-03-28T09:51:04.519+08:00| vmx| I005: SVGA3dClamp:     Host Provides     BC67Level:     0 (    0,     0)
2021-03-28T09:51:04.519+08:00| vmx| I005: SVGA3dClamp:     Host Provides BaseCapsLevel:     0 (    0,     4)
2021-03-28T09:51:04.519+08:00| vmx| I005: SVGA3dClamp:     Host Provides    ClampLevel:     0 (    0,     0)
2021-03-28T09:51:04.519+08:00| vmx| I005: SVGA3dCaps: guest, compatibility level: 9
2021-03-28T09:51:04.520+08:00| vmx| I005: SVGA3dClamp:    Guest Requires     BC67Level:     0 (    0,     0)
2021-03-28T09:51:04.520+08:00| vmx| I005: SVGA3dClamp:    Guest Requires BaseCapsLevel:     0 (    0,     0)
2021-03-28T09:51:04.520+08:00| vmx| I005: SVGA3dClamp:    Guest Requires    ClampLevel:     0 (    0,     0)
2021-03-28T09:51:04.562+08:00| vmx| I005: Capability Found: cpuid.3dnprefetch = 1
2021-03-28T09:51:04.562+08:00| vmx| I005: VM Features Required: cpuid.3dnprefetch - Bool:Min:1
2021-03-28T09:51:04.564+08:00| vmx| I005: OvhdMem OvhdUser_VmxMks3d                   :  483328 483328      - |      0      0      -
2021-03-28T09:51:07.841+08:00| vcpu-0| I005: DDB: "longContentID" = "f3971470bd93a53ec3355929de3ee73d" (was "9ed8b6601168ce40446091a03e6013a8")
2021-03-28T09:51:09.716+08:00| vmx| I005: OvhdMem OvhdUser_VmxMks3d                   :  483328 483328      - |      0      0      -

vm.vmx

Spoiler
#!/usr/bin/vmware
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "18"
mks.enable3d = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
nvram = "Windows 7.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "soft"
powerType.suspend = "soft"
powerType.reset = "soft"
displayName = "Windows 7"
usb.vbluetooth.startConnected = "TRUE"
firmware = "efi"
guestOS = "windows7-64"
tools.syncTime = "FALSE"
sound.autoDetect = "TRUE"
sound.virtualDev = "hdaudio"
sound.fileName = "-1"
sound.present = "TRUE"
numvcpus = "8"
cpuid.coresPerSocket = "8"
memsize = "3072"
mem.hotadd = "TRUE"
scsi0.virtualDev = "lsisas1068"
scsi0.present = "TRUE"
sata0.present = "TRUE"
scsi0:0.fileName = "Windows 7.vmdk"
scsi0:0.present = "TRUE"
sata0:1.deviceType = "cdrom-image"
sata0:1.fileName = "/usr/lib/vmware/isoimages/windows.iso"
sata0:1.present = "TRUE"
usb.present = "TRUE"
ethernet0.connectionType = "custom"
ethernet0.addressType = "generated"
ethernet0.virtualDev = "e1000"
serial0.fileType = "thinprint"
serial0.fileName = "thinprint"
ethernet0.present = "TRUE"
serial0.present = "TRUE"
extendedConfigFile = "Windows 7.vmxf"
floppy0.present = "FALSE"
numa.autosize.cookie = "80082"
numa.autosize.vcpu.maxPerVirtualNode = "8"
uuid.bios = "56 4d fa c9 a1 fa 52 d5-ac 57 99 30 50 2e 60 ce"
uuid.location = "56 4d fa c9 a1 fa 52 d5-ac 57 99 30 50 2e 60 ce"
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "160"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
sound.pciSlotNumber = "34"
vmci0.pciSlotNumber = "35"
sata0.pciSlotNumber = "36"
scsi0.sasWWID = "50 05 05 69 a1 fa 52 d0"
svga.vramSize = "268435456"
vmotion.checkpointFBSize = "8388608"
vmotion.checkpointSVGAPrimarySize = "268435456"
vmotion.svga.mobMaxSize = "1073741824"
vmotion.svga.graphicsMemoryKB = "131072"
vmotion.svga.supports3D = "0"
vmotion.svga.baseCapsLevel = "0"
vmotion.svga.maxPointSize = "0"
vmotion.svga.maxTextureSize = "0"
vmotion.svga.maxVolumeExtent = "0"
vmotion.svga.maxTextureAnisotropy = "0"
vmotion.svga.lineStipple = "0"
vmotion.svga.dxMaxConstantBuffers = "0"
vmotion.svga.dxProvokingVertex = "0"
vmotion.svga.sm41 = "0"
vmotion.svga.multisample2x = "0"
vmotion.svga.multisample4x = "0"
vmotion.svga.msFullQuality = "0"
vmotion.svga.logicOps = "0"
vmotion.svga.bc67 = "0"
vmotion.svga.sm5 = "0"
vmotion.svga.multisample8x = "0"
vmotion.svga.logicBlendOps = "0"
ethernet0.generatedAddress = "00:0C:29:2E:60:CE"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "1345216718"
monitor.phys_bits_used = "45"
cleanShutdown = "TRUE"
softPowerOff = "FALSE"
usb:1.speed = "2"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:1.port = "1"
usb:1.parent = "-1"
ethernet0.vnet = "/dev/vmnet2"
toolsInstallManager.lastInstallError = "0"
toolsInstallManager.updateCounter = "2"
svga.guestBackedPrimaryAware = "TRUE"
guestOS.detailed.data = ""
sata0:1.startConnected = "TRUE"
tools.remindInstall = "FALSE"
svga.graphicsMemoryKB = "131072"
RemoteDisplay.vnc.port = "1082"
usb:0.present = "TRUE"
usb:0.deviceType = "hid"
usb:0.port = "0"
usb:0.parent = "-1"

 

Labels (1)
  • 3D

Reply
0 Kudos
bluefirestorm
Champion
Champion

From the vmware.log
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: Disabling 3D on this display due to presence of an unsupported graphics driver.
2021-03-28T09:51:04.455+08:00| mks| I005: GLHostX11: Set the config option mks.gl.allowUnsupportedDrivers=TRUE to override.

Have you tried adding the line

mks.gl.allowUnsupportedDrivers=TRUE

to the vmx configuration file?

Reply
0 Kudos
CRSAM
Contributor
Contributor

no, I've never edited the vmx file, and there's no line

"mks.gl.allowUnsupportedDrivers=TRUE"

in the vmx file.

Reply
0 Kudos
bluefirestorm
Champion
Champion

I would suggest that you try adding that line

mks.gl.allowUnsupportedDrivers="TRUE"

to the vmx of this VM.

Just make sure that the VM is shut down (not suspended) BEFORE editing the vmx.

If this 3D acceleration problem is resolved with adding that line, you can then add it to /etc/vmware/config so that you don't have to manually add that configuration line to every existing VM and new VM(s) yet to be created on this host machine.

View solution in original post

CRSAM
Contributor
Contributor

The problem is solved. Thank you:beaming_face_with_smiling_eyes:

Reply
0 Kudos
Oztux
Contributor
Contributor

This solution works. I was tearing my hair out over the issue. I am running VMWare Player 16.2 in a Manjaro host with a Windows 10 guest. The suggested solution worked perfectly.

Reply
0 Kudos
CRSAM
Contributor
Contributor

Can you use the virtual network adapter?

Tags (1)
Reply
0 Kudos