Support cursor plane on Rockchip platforms

This commit is contained in:
amazingfate 2024-01-05 15:41:15 +08:00 committed by Cameron Gutman
parent 0712e05aab
commit 5bd2799209

View File

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