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
dev
Ander Conselvan de Oliveira 11 years ago committed by Kristian Høgsberg
parent 304996d182
commit a61b949eb8
  1. 2
      src/compositor-drm.c

@ -2576,7 +2576,7 @@ recorder_frame_notify(struct wl_listener *listener, void *data)
return; return;
} }
vaapi_recorder_frame(output->recorder, fd, output->current->stride / 4); vaapi_recorder_frame(output->recorder, fd, output->current->stride);
} }
static void * static void *

Loading…
Cancel
Save