compositor-drm: Pass the right stride to the vaapi recorder
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Wed, 16 Apr 2014 09:05:12 +0000 (12:05 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 17 Apr 2014 05:24:04 +0000 (22:24 -0700)
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

index 3c15ec3..5765b40 100644 (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 *