It takes the stride in bytes, not pixels. The bug was hidden when using
va intel-driver 1.2.1 because it would ignore the stride from user and
set the surface state in a wrong way.

https://bugs.freedesktop.org/show_bug.cgi?id=77495
---
 src/compositor-drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 3c15ec3..5765b40 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -2576,7 +2576,7 @@ recorder_frame_notify(struct wl_listener *listener, void 
*data)
                return;
        }
 
-       vaapi_recorder_frame(output->recorder, fd, output->current->stride / 4);
+       vaapi_recorder_frame(output->recorder, fd, output->current->stride);
 }
 
 static void *
-- 
1.8.3.2

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to