mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 16:08:19 +02:00
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:
parent
67a606c611
commit
17d19a3c07
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue