Accept both primary and overlay planes on Rockchip platforms

Fixes #861
This commit is contained in:
Cameron Gutman
2023-03-05 23:48:10 -06:00
parent a9f8a77b66
commit 6ab37d0036

View File

@@ -345,7 +345,8 @@ int rk_setup(int videoFormat, int width, int height, int redrawRate, void* conte
if (!prop) {
continue;
}
if (!strcmp(prop->name, "type") && props->prop_values[j] == DRM_PLANE_TYPE_OVERLAY) {
if (!strcmp(prop->name, "type") && (props->prop_values[j] == DRM_PLANE_TYPE_OVERLAY ||
props->prop_values[j] == DRM_PLANE_TYPE_PRIMARY)) {
plane_id = ovr->plane_id;
}
drmModeFreeProperty(prop);