Skip to content

Commit

Permalink
dmabuf: fix warnings on 320-bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed May 8, 2024
1 parent aa9cc72 commit 325abfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions video/out/hwdec/dmabuf_interop_wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ 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),
mapper_p->desc.objects[0].format_modifier);
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);

Expand Down
4 changes: 2 additions & 2 deletions video/out/vo_dmabuf_wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 325abfe

Please sign in to comment.