mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
anv/image: allocate mv storage buffers for h265
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22202>
This commit is contained in:
parent
b4b31828e0
commit
23c338af5d
1 changed files with 5 additions and 0 deletions
|
|
@ -819,6 +819,11 @@ add_video_buffers(struct anv_device *device,
|
|||
unsigned h_mb = DIV_ROUND_UP(image->vk.extent.height, ANV_MB_HEIGHT);
|
||||
size = w_mb * h_mb * 128;
|
||||
}
|
||||
else if (profile_list->pProfiles[i].videoCodecOperation == VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR) {
|
||||
unsigned w_mb = DIV_ROUND_UP(image->vk.extent.width, 32);
|
||||
unsigned h_mb = DIV_ROUND_UP(image->vk.extent.height, 32);
|
||||
size = ALIGN(w_mb * h_mb, 2) << 6;
|
||||
}
|
||||
}
|
||||
|
||||
if (size == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue