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:
parent
95b184f471
commit
15dbf8f05a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue