summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2024-03-11 18:05:42 +0100
committersfan5 <sfan5@live.de>2024-03-16 13:27:34 +0100
commit44f54357caed30171b3721527d5d1c8389db6ad9 (patch)
tree3de2ca1d8a4d8e02727666d2888ea85e3a09029e
parent6b452788c444e3f68e640ff674db6690a3b71ebb (diff)
downloadmpv-44f54357caed30171b3721527d5d1c8389db6ad9.tar.bz2
mpv-44f54357caed30171b3721527d5d1c8389db6ad9.tar.xz
context_drm_egl: log fallback correctly
Currently a theoretical concern because we handle all existing formats.
-rw-r--r--video/out/opengl/context_drm_egl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index 2db428f590..ff4de187cb 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -616,6 +616,10 @@ static bool drm_egl_init(struct ra_ctx *ctx)
xrgb_format = GBM_FORMAT_XBGR8888;
break;
default:
+ if (drm->opts->drm_format != DRM_OPTS_FORMAT_XRGB8888) {
+ MP_VERBOSE(ctx->vo, "Requested format not supported by context, "
+ "falling back to xrgb8888\n");
+ }
argb_format = GBM_FORMAT_ARGB8888;
xrgb_format = GBM_FORMAT_XRGB8888;
break;