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
This commit is contained in:
Ander Conselvan de Oliveira
2014-04-16 12:05:12 +03:00
committed by Kristian Høgsberg
parent 304996d182
commit a61b949eb8
+1 -1
View File
@@ -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 *