mirror of https://github.com/mpv-player/mpv
dmabuf: fix warnings on 320-bit build
This commit is contained in:
parent
aa9cc72199
commit
325abfeed7
|
@ -46,7 +46,7 @@ static bool map(struct ra_hwdec_mapper *mapper,
|
|||
return false;
|
||||
} else if (!ra_compatible_format(mapper->ra, drm_format,
|
||||
mapper_p->desc.objects[0].format_modifier)) {
|
||||
MP_VERBOSE(mapper, "Mapped surface with format %s; drm format '%s(%016lx)' "
|
||||
MP_VERBOSE(mapper, "Mapped surface with format %s; drm format '%s(%016" PRIx64 ")' "
|
||||
"is not supported by compositor.\n",
|
||||
mp_imgfmt_to_name(mapper->src->params.hw_subfmt),
|
||||
mp_tag_str(drm_format),
|
||||
|
@ -54,7 +54,7 @@ static bool map(struct ra_hwdec_mapper *mapper,
|
|||
return false;
|
||||
}
|
||||
|
||||
MP_VERBOSE(mapper, "Supported Wayland display format %s: '%s(%016lx)'\n",
|
||||
MP_VERBOSE(mapper, "Supported Wayland display format %s: '%s(%016" PRIx64 ")'\n",
|
||||
mp_imgfmt_to_name(mapper->src->params.hw_subfmt),
|
||||
mp_tag_str(drm_format), mapper_p->desc.objects[0].format_modifier);
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ static void vaapi_dmabuf_importer(struct buffer *buf, struct mp_image *src,
|
|||
}
|
||||
buf->drm_format = desc.layers[layer_no].drm_format;
|
||||
if (!ra_compatible_format(p->ctx->ra, buf->drm_format, desc.objects[0].drm_format_modifier)) {
|
||||
MP_VERBOSE(vo, "%s(%016lx) is not supported.\n",
|
||||
MP_VERBOSE(vo, "%s(%016" PRIx64 ") is not supported.\n",
|
||||
mp_tag_str(buf->drm_format), desc.objects[0].drm_format_modifier);
|
||||
buf->drm_format = 0;
|
||||
goto done;
|
||||
|
@ -685,7 +685,7 @@ static int reconfig(struct vo *vo, struct mp_image *img)
|
|||
}
|
||||
|
||||
if (!ra_compatible_format(p->ctx->ra, p->drm_format, p->drm_modifier)) {
|
||||
MP_ERR(vo, "Format '%s' with modifier '(%016lx)' is not supported by"
|
||||
MP_ERR(vo, "Format '%s' with modifier '(%016" PRIx64 ")' is not supported by"
|
||||
" the compositor.\n", mp_tag_str(p->drm_format), p->drm_modifier);
|
||||
return VO_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue