From 65b680e6cf6b710e6feb23d707f728e89bee4a22 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 10 Nov 2016 15:36:23 +0000 Subject: [PATCH] sna/video: Don't skip setplane if this frame.bo is the same as the last Always show the image, even if the bo doesn't appear to change as the client may have put fresh data in the shared buffer and repositioned the image. Suggested-by: Ville Syrjala Signed-off-by: Chris Wilson --- src/sna/sna_video_sprite.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/sna/sna_video_sprite.c b/src/sna/sna_video_sprite.c index c8b77a8e..adb7ba26 100644 --- a/src/sna/sna_video_sprite.c +++ b/src/sna/sna_video_sprite.c @@ -261,10 +261,6 @@ sna_video_sprite_show(struct sna *sna, video->color_key_changed &= ~(1 << pipe); } - assert(pipe < ARRAY_SIZE(video->bo)); - if (video->bo[pipe] == frame->bo) - return true; - update_dst_box_to_crtc_coords(sna, crtc, dstBox); if (frame->rotation & (RR_Rotate_90 | RR_Rotate_270)) { int tmp = frame->width;