mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
isl: prevent potential overflow before widen
Fixes: 73608eb8b7 ("isl: Add support for creating layered surfaces for video encode/decode")
CID: 1665354
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37260>
This commit is contained in:
parent
f18aca8689
commit
6fe4b7344d
1 changed files with 1 additions and 1 deletions
|
|
@ -3606,7 +3606,7 @@ isl_surf_init_interleaved_arrays(const struct isl_device *dev,
|
|||
|
||||
surfs_offsets[i] = offset;
|
||||
|
||||
offset += uninterleaved_surfs[i].row_pitch_B *
|
||||
offset += (uint64_t)uninterleaved_surfs[i].row_pitch_B *
|
||||
align(uninterleaved_surfs[i].array_pitch_el_rows,
|
||||
tile_info.logical_extent_el.h);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue