From f0509d3738ec37cfa4afa81f070c8abd876e6561 Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Sat, 1 Dec 2018 12:01:17 +0100 Subject: drm: rename plane options to better, invariant, names This commit bumps the libmpv version to 1.102 drm-osd-plane -> drm-draw-plane drm-video-plane -> drm-drmprime-video-plane drm-osd-size -> drm-draw-surface-size "draw plane", as in the plane that OpenGL draws to, whether it be video + OSD or just OSD. "drmprime video plane", as in the plane used for hwdec video imported via drmprime. "draw surface size", as in the size of the surface used for the draw plane The new names are invariant whether or not hwdec_drmprime_drm is being used or not. The original naming was very confusing, as when doing regular rendering (swdec or vaapi) the video would be displayed on the "OSD plane", and the "Video plane" would remain unused. --- video/out/gpu/libmpv_gpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video/out/gpu') diff --git a/video/out/gpu/libmpv_gpu.c b/video/out/gpu/libmpv_gpu.c index f597d2bb29..5ca4ebb7ca 100644 --- a/video/out/gpu/libmpv_gpu.c +++ b/video/out/gpu/libmpv_gpu.c @@ -36,9 +36,9 @@ static const struct native_resource_entry native_resource_map[] = { .name = "drm_params", .size = sizeof (mpv_opengl_drm_params), }, - [MPV_RENDER_PARAM_DRM_OSD_SIZE] = { - .name = "drm_osd_size", - .size = sizeof (mpv_opengl_drm_osd_size), + [MPV_RENDER_PARAM_DRM_DRAW_SURFACE_SIZE] = { + .name = "drm_draw_surface_size", + .size = sizeof (mpv_opengl_drm_draw_surface_size), }, }; -- cgit v1.2.3