1
0
Fork 0

gpu/kms: Remove max buffer size getter

It was unused.

https://gitlab.gnome.org/GNOME/mutter/issues/548
https://gitlab.gnome.org/GNOME/mutter/merge_requests/525
This commit is contained in:
Jonas Ådahl 2019-01-29 08:57:24 +01:00 committed by Georges Basile Stavracas Neto
parent 5c500ad402
commit f3fd7cf92b
2 changed files with 0 additions and 19 deletions

View file

@ -71,9 +71,6 @@ struct _MetaGpuKms
drmModeConnector **connectors; drmModeConnector **connectors;
unsigned int n_connectors; unsigned int n_connectors;
int max_buffer_width;
int max_buffer_height;
gboolean resources_init_failed_before; gboolean resources_init_failed_before;
MetaGpuKmsFlag flags; MetaGpuKmsFlag flags;
@ -385,15 +382,6 @@ meta_gpu_kms_wait_for_flip (MetaGpuKms *gpu_kms,
return TRUE; return TRUE;
} }
void
meta_gpu_kms_get_max_buffer_size (MetaGpuKms *gpu_kms,
int *max_width,
int *max_height)
{
*max_width = gpu_kms->max_buffer_width;
*max_height = gpu_kms->max_buffer_height;
}
int int
meta_gpu_kms_get_fd (MetaGpuKms *gpu_kms) meta_gpu_kms_get_fd (MetaGpuKms *gpu_kms)
{ {
@ -856,9 +844,6 @@ meta_gpu_kms_read_current (MetaGpu *gpu,
return TRUE; return TRUE;
} }
gpu_kms->max_buffer_width = resources.resources->max_width;
gpu_kms->max_buffer_height = resources.resources->max_height;
/* Note: we must not free the public structures (output, crtc, monitor /* Note: we must not free the public structures (output, crtc, monitor
mode and monitor info) here, they must be kept alive until the API mode and monitor info) here, they must be kept alive until the API
users are done with them after we emit monitors-changed, and thus users are done with them after we emit monitors-changed, and thus

View file

@ -87,10 +87,6 @@ const char * meta_gpu_kms_get_file_path (MetaGpuKms *gpu_kms);
int64_t meta_gpu_kms_get_current_time_ns (MetaGpuKms *gpu_kms); int64_t meta_gpu_kms_get_current_time_ns (MetaGpuKms *gpu_kms);
void meta_gpu_kms_get_max_buffer_size (MetaGpuKms *gpu_kms,
int *max_width,
int *max_height);
void meta_gpu_kms_set_power_save_mode (MetaGpuKms *gpu_kms, void meta_gpu_kms_set_power_save_mode (MetaGpuKms *gpu_kms,
uint64_t state); uint64_t state);