[mutter] backend/native: Remove leftover stage view checks
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] backend/native: Remove leftover stage view checks
- Date: Tue, 4 Dec 2018 14:17:13 +0000 (UTC)
commit 7226c5c7bfb8fbad87db7a4931af8bddc43bd871
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Dec 4 14:55:05 2018 +0100
backend/native: Remove leftover stage view checks
We haven't supported disabling stage views in the native backend since
commit 70edc7dda48b57ead25f159243ee131e99bd7956
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Jul 24 12:31:32 2017 +0800
backends/native: Stop supporting stage views being disabled
There were still some left over checks; lets remove them.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/343
src/backends/native/meta-crtc-kms.c | 3 +--
src/backends/native/meta-monitor-manager-kms.c | 13 +------------
src/backends/native/meta-renderer-native.c | 8 --------
3 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/src/backends/native/meta-crtc-kms.c b/src/backends/native/meta-crtc-kms.c
index 523ea6ccc..b78e09d43 100644
--- a/src/backends/native/meta-crtc-kms.c
+++ b/src/backends/native/meta-crtc-kms.c
@@ -447,8 +447,7 @@ meta_create_kms_crtc (MetaGpuKms *gpu_kms,
crtc->rect.height = drm_crtc->height;
crtc->is_dirty = FALSE;
crtc->transform = META_MONITOR_TRANSFORM_NORMAL;
- crtc->all_transforms = meta_is_stage_views_enabled () ?
- ALL_TRANSFORMS_MASK : META_MONITOR_TRANSFORM_NORMAL;
+ crtc->all_transforms = ALL_TRANSFORMS_MASK;
if (drm_crtc->mode_valid)
{
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 48b2d374d..1c4c98360 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -550,15 +550,7 @@ meta_monitor_manager_kms_get_max_screen_size (MetaMonitorManager *manager,
int *max_width,
int *max_height)
{
- MetaMonitorManagerKms *manager_kms = META_MONITOR_MANAGER_KMS (manager);
-
- if (meta_is_stage_views_enabled ())
- return FALSE;
-
- meta_gpu_kms_get_max_buffer_size (manager_kms->primary_gpu,
- max_width, max_height);
-
- return TRUE;
+ return FALSE;
}
static MetaLogicalMonitorLayoutMode
@@ -567,9 +559,6 @@ meta_monitor_manager_kms_get_default_layout_mode (MetaMonitorManager *manager)
MetaBackend *backend = meta_monitor_manager_get_backend (manager);
MetaSettings *settings = meta_backend_get_settings (backend);
- if (!meta_is_stage_views_enabled ())
- return META_LOGICAL_MONITOR_LAYOUT_MODE_PHYSICAL;
-
if (meta_settings_is_experimental_feature_enabled (
settings,
META_EXPERIMENTAL_FEATURE_SCALE_MONITOR_FRAMEBUFFER))
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 04d325db2..e2e977f8d 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -3424,14 +3424,6 @@ create_renderer_gpu_data_egl_device (MetaRendererNative *renderer_native,
EGLDisplay egl_display;
MetaRendererNativeGpuData *renderer_gpu_data;
- if (!meta_is_stage_views_enabled())
- {
- g_set_error (error, G_IO_ERROR,
- G_IO_ERROR_FAILED,
- "EGLDevice requires stage views enabled");
- return NULL;
- }
-
primary_gpu = meta_monitor_manager_kms_get_primary_gpu (monitor_manager_kms);
if (gpu_kms != primary_gpu)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]