From a61b949eb8f350d4021b303f2a7c4383b2aed6da Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Wed, 16 Apr 2014 12:05:12 +0300 Subject: [PATCH] compositor-drm: Pass the right stride to the vaapi recorder 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 3c15ec30..5765b402 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 *