From 15e23b825e8f253f3640a3c65ac107f34fa3ad9f Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Mon, 1 Apr 2024 15:05:08 -0400 Subject: [PATCH] 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. --- src/backends/drm/drm_pipeline.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backends/drm/drm_pipeline.cpp b/src/backends/drm/drm_pipeline.cpp index 6e9233b2e2..c6be30fa82 100644 --- a/src/backends/drm/drm_pipeline.cpp +++ b/src/backends/drm/drm_pipeline.cpp @@ -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