mirror of https://github.com/mpv-player/mpv
context_drm_egl: log fallback correctly
Currently a theoretical concern because we handle all existing formats.
This commit is contained in:
parent
6b452788c4
commit
44f54357ca
|
@ -616,6 +616,10 @@ static bool drm_egl_init(struct ra_ctx *ctx)
|
||||||
xrgb_format = GBM_FORMAT_XBGR8888;
|
xrgb_format = GBM_FORMAT_XBGR8888;
|
||||||
break;
|
break;
|
||||||
default:
|
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;
|
argb_format = GBM_FORMAT_ARGB8888;
|
||||||
xrgb_format = GBM_FORMAT_XRGB8888;
|
xrgb_format = GBM_FORMAT_XRGB8888;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue