mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
crtc-kms: Don't set normal transform when no transforms are supported
On a CRTC that doesn't report any transforms at all, setting the normal transform will fail. Avoid failing by checking if any transforms are supported before applying it, and early out if no transforms are supported. https://bugzilla.gnome.org/show_bug.cgi?id=785381
This commit is contained in:
parent
70edc7dda4
commit
e45d7f70e8
@ -69,6 +69,9 @@ meta_crtc_kms_apply_transform (MetaCrtc *crtc)
|
||||
else
|
||||
hw_transform = META_MONITOR_TRANSFORM_NORMAL;
|
||||
|
||||
if (!meta_crtc_kms_is_transform_handled (crtc, META_MONITOR_TRANSFORM_NORMAL))
|
||||
return;
|
||||
|
||||
if (drmModeObjectSetProperty (kms_fd,
|
||||
crtc_kms->primary_plane_id,
|
||||
DRM_MODE_OBJECT_PLANE,
|
||||
|
Loading…
Reference in New Issue
Block a user