st_vdpau: Pass format when opening resource from handle in st_vdpau_resource_from_description

Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16286>
This commit is contained in:
Sil Vilerino 2022-05-02 09:29:17 -07:00 committed by Marge Bot
parent 95b184f471
commit 15dbf8f05a
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ st_vdpau_resource_from_description(struct gl_context *ctx,
whandle.modifier = DRM_FORMAT_MOD_INVALID;
whandle.offset = desc->offset;
whandle.stride = desc->stride;
whandle.format = VdpFormatRGBAToPipe(desc->format);
res = st->screen->resource_from_handle(st->screen, &templ, &whandle,
PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE);