st/vdpau: fix interop with GL

Fixes: e00bb6cb98 - mesa/st: use tracked samplerview swizzle values
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7751

Tested-By: Veerabadhran.Gopalakrishnan@amd.com
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19961>
This commit is contained in:
Marek Olšák 2022-11-23 12:17:17 -05:00
parent 4b19725ee5
commit c70eec86ef

View file

@ -245,6 +245,7 @@ st_vdpau_map_surface(struct gl_context *ctx, GLenum target, GLenum access,
_mesa_init_teximage_fields(ctx, texImage,
res->width0, res->height0, 1, 0, GL_RGBA,
texFormat);
_mesa_update_texture_object_swizzle(ctx, texObj);
pipe_resource_reference(&texObj->pt, res);
st_texture_release_all_sampler_views(st, texObj);