diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index c86965b41..e4fd7c15c 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -313,6 +313,12 @@ meta_gbm_device_from_gpu (MetaGpuKms *gpu_kms) return renderer_gpu_data->gbm.device; } +MetaGpuKms * +meta_renderer_native_get_primary_gpu (MetaRendererNative *renderer_native) +{ + return renderer_native->primary_gpu_kms; +} + static MetaRendererNativeGpuData * meta_create_renderer_native_gpu_data (MetaGpuKms *gpu_kms) { diff --git a/src/backends/native/meta-renderer-native.h b/src/backends/native/meta-renderer-native.h index 7abe7c152..840ae1a40 100644 --- a/src/backends/native/meta-renderer-native.h +++ b/src/backends/native/meta-renderer-native.h @@ -51,6 +51,8 @@ MetaRendererNative * meta_renderer_native_new (MetaBackendNative *backend_nativ struct gbm_device * meta_gbm_device_from_gpu (MetaGpuKms *gpu_kms); +MetaGpuKms * meta_renderer_native_get_primary_gpu (MetaRendererNative *renderer_native); + void meta_renderer_native_finish_frame (MetaRendererNative *renderer_native); int64_t meta_renderer_native_get_frame_counter (MetaRendererNative *renderer_native);