plane: ignore SCALING_FILTER when set to Default

This behaves the same when the property isn't supported.
This commit is contained in:
Simon Ser 2022-08-03 22:51:05 +02:00
parent 79f1647d67
commit 0ce48717b4

View file

@ -246,6 +246,10 @@ plane_apply(struct liftoff_plane *plane, struct liftoff_layer *layer,
layer_prop->value == DRM_MODE_ROTATE_0) {
continue; /* Layer isn't rotated */
}
if (strcmp(layer_prop->name, "SCALING_FILTER") == 0 &&
layer_prop->value == 0) {
continue; /* Layer uses default scaling filter */
}
drmModeAtomicSetCursor(req, cursor);
return -EINVAL;
}