backends/drm: Force software cursor on vmwgfx

The hardware cursor on vmware virtual machines is missing. This is
likely related to issues with importing DRM dumb buffers through
prime on vmwgfx.
Force software cursor on vmwgfx to make sure cursor is visible and
working properly until the hardware cursor is fixed.
This commit is contained in:
Zack Rusin 2024-04-01 15:05:08 -04:00 committed by Xaver Hugl
parent 17029cd54f
commit 15e23b825e

View file

@ -418,6 +418,12 @@ bool DrmPipeline::updateCursor()
if (amdgpuVrrWorkaroundActive() && m_cursorLayer->isEnabled()) {
return false;
}
// We need to make sure that on vmwgfx software cursor is selected
// until Broadcom fixes hw cursor issues with vmwgfx. Otherwise
// the cursor is missing.
if (gpu()->isVmwgfx()) {
return false;
}
// explicitly check for the cursor plane and not for AMS, as we might not always have one
if (m_pending.crtc->cursorPlane()) {
// test the full state, to take pending commits into account