[PATCH weston] compositor-drm: Pass the right stride to the vaapi recorder

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Wed Apr 16 02:05:12 PDT 2014


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



More information about the wayland-devel mailing list