backend-drm: use DRM_ constants everywhere

Use DRM_ constants for pixel formats in all cases.

Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
Stefan Agner 2019-10-20 18:25:42 +02:00
parent 2f9ca27891
commit 4a18f30225

View file

@ -3005,7 +3005,7 @@ recorder_binding(struct weston_keyboard *keyboard, const struct timespec *time,
struct drm_output, base.link);
if (!output->recorder) {
if (output->gbm_format != GBM_FORMAT_XRGB8888) {
if (output->gbm_format != DRM_FORMAT_XRGB8888) {
weston_log("failed to start vaapi recorder: "
"output format not supported\n");
return;