radv/video: fix h265 decoding sizes.

Fixes the misrendering/hangs on hevc content.

Fixes: 6c3c242361 ("radv/video: add h265 decode UVD support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21671>
This commit is contained in:
Dave Airlie 2023-03-09 15:06:05 +10:00 committed by Marge Bot
parent 67a606c611
commit 17d19a3c07

View file

@ -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;