Skip to content

Commit cb372a5

Browse files
en4bzzackr
authored andcommitted
drm/vmwgfx: Fix overlay when using Screen Targets
This code was never updated to support Screen Targets. Fixes a bug where Xv playback displays a green screen instead of actual video contents when 3D acceleration is disabled in the guest. Fixes: c8261a9 ("vmwgfx: Major KMS refactoring / cleanup in preparation of screen targets") Reported-by: Doug Brown <[email protected]> Closes: https://lore.kernel.org/all/[email protected] Signed-off-by: Ian Forbes <[email protected]> Tested-by: Doug Brown <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 12bed14 commit cb372a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int vmw_overlay_send_put(struct vmw_private *dev_priv,
9292
{
9393
struct vmw_escape_video_flush *flush;
9494
size_t fifo_size;
95-
bool have_so = (dev_priv->active_display_unit == vmw_du_screen_object);
95+
bool have_so = (dev_priv->active_display_unit != vmw_du_legacy);
9696
int i, num_items;
9797
SVGAGuestPtr ptr;
9898

0 commit comments

Comments
 (0)