mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
radv: Fix uint32 overflow in slice offset calculation
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41027>
This commit is contained in:
parent
5d48016317
commit
906be9bc7e
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ radv_image_view_make_descriptor(struct radv_image_view *iview, struct radv_devic
|
|||
|
||||
/* Video decode target uses custom height alignment. */
|
||||
if (image->vk.usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR) {
|
||||
offset += first_layer * image->planes[plane_id].surface.u.legacy.level[0].slice_size_dw * 4;
|
||||
offset += first_layer * (uint64_t)image->planes[plane_id].surface.u.legacy.level[0].slice_size_dw * 4;
|
||||
first_layer = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue