[mutter/wip/garnacho/wayland-emulated-output-transform: 15/15] backends/native: Expose all transform modes in CRTCs
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/garnacho/wayland-emulated-output-transform: 15/15] backends/native: Expose all transform modes in CRTCs
- Date: Mon, 8 Aug 2016 12:00:23 +0000 (UTC)
commit 1f44e30d5b76f009da5bd1dca86a7c701eb97b14
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 1 03:51:36 2016 +0200
backends/native: Expose all transform modes in CRTCs
We can only honor this properly in the MUTTER_STAGE_VIEWS=1 case. When using
the legacy view, software implemented transforms are only exposed if there is
only one output, as we can only transform the entire stage there.
https://bugzilla.gnome.org/show_bug.cgi?id=745079
src/backends/native/meta-monitor-manager-kms.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 2c30bbe..2f7fa32 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -46,6 +46,7 @@
#include <gudev/gudev.h>
#define ALL_TRANSFORMS (META_MONITOR_TRANSFORM_FLIPPED_270 + 1)
+#define ALL_TRANSFORMS_MASK ((1 << ALL_TRANSFORMS) - 1)
typedef struct {
drmModeConnector *connector;
@@ -687,8 +688,8 @@ meta_monitor_manager_kms_read_current (MetaMonitorManager *manager)
meta_crtc->rect.height = crtc->height;
meta_crtc->is_dirty = FALSE;
meta_crtc->transform = META_MONITOR_TRANSFORM_NORMAL;
- /* FIXME: implement! */
- meta_crtc->all_transforms = 1 << META_MONITOR_TRANSFORM_NORMAL;
+ meta_crtc->all_transforms = meta_is_stage_views_enabled () ?
+ ALL_TRANSFORMS_MASK : META_MONITOR_TRANSFORM_NORMAL;
if (crtc->mode_valid)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]