summaryrefslogtreecommitdiff
path: root/lib/igt_kms.h
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-11-16 16:57:31 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-11-22 11:46:42 +0100
commit42ee3f94f2c5c3258930c22da7c1b497dd635346 (patch)
tree3dab53d1c281e5e747a262b7c43fb5d60a0d076c /lib/igt_kms.h
parenta839b53b790d9bc26cc775fe6a0d0a1e81ee7e1f (diff)
lib/igt_kms: Handle changing rotation property correctly
The rotation property sucks because it may affect whether drmModeSetPlane succeeds or not. Add some code to handle this. First try to set rotation directly, if that succeeds we return immediately. If it fails we disable the plane, set the rotation property and run the rest of the code. This will hopefully make legacy rotation work in more cases when scaling is not supported. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r--lib/igt_kms.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index e1883bf1..2a480bf3 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -349,6 +349,7 @@ struct igt_display {
igt_pipe_t *pipes;
bool has_cursor_plane;
bool is_atomic;
+ bool first_commit;
};
void igt_display_init(igt_display_t *display, int drm_fd);