From 17d19a3c07cbd96fb0fb29ad8ff6f059e59f70e1 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 9 Mar 2023 15:06:05 +1000 Subject: [PATCH] radv/video: fix h265 decoding sizes. Fixes the misrendering/hangs on hevc content. Fixes: 6c3c242361da778 ("radv/video: add h265 decode UVD support") Part-of: --- src/amd/vulkan/radv_video.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index e8d939c..8678a78 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -953,8 +953,8 @@ static bool rvcn_dec_message_decode(struct radv_cmd_buffer *cmd_buffer, decode->stream_type = vid->stream_type; decode->decode_flags = 0; - decode->width_in_samples = dst_iv->image->vk.extent.width; - decode->height_in_samples = dst_iv->image->vk.extent.height; + decode->width_in_samples = frame_info->dstPictureResource.codedExtent.width; + decode->height_in_samples = frame_info->dstPictureResource.codedExtent.height; decode->bsd_size = frame_info->srcBufferRange; @@ -1348,8 +1348,8 @@ static bool ruvd_dec_message_decode(struct radv_device *device, msg->body.decode.stream_type = vid->stream_type; msg->body.decode.decode_flags = 0x1; - msg->body.decode.width_in_samples = dst_iv->image->vk.extent.width; - msg->body.decode.height_in_samples = dst_iv->image->vk.extent.height; + msg->body.decode.width_in_samples = frame_info->dstPictureResource.codedExtent.width; + msg->body.decode.height_in_samples = frame_info->dstPictureResource.codedExtent.height; msg->body.decode.dpb_size = (vid->dpb_type != DPB_DYNAMIC_TIER_2) ? dpb->size : 0; msg->body.decode.bsd_size = frame_info->srcBufferRange; -- 2.7.4