mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
intel/isl: Use uint64_t to store total surface size
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
parent
05d5caffc4
commit
7022978237
2 changed files with 3 additions and 2 deletions
|
|
@ -1467,7 +1467,8 @@ isl_surf_init_s(const struct isl_device *dev,
|
|||
&phys_total_el, &row_pitch))
|
||||
return false;
|
||||
|
||||
uint32_t size, base_alignment;
|
||||
uint32_t base_alignment;
|
||||
uint64_t size;
|
||||
if (tiling == ISL_TILING_LINEAR) {
|
||||
size = row_pitch * padded_h_el + pad_bytes;
|
||||
|
||||
|
|
|
|||
|
|
@ -1106,7 +1106,7 @@ struct isl_surf {
|
|||
uint32_t samples;
|
||||
|
||||
/** Total size of the surface, in bytes. */
|
||||
uint32_t size;
|
||||
uint64_t size;
|
||||
|
||||
/** Required alignment for the surface's base address. */
|
||||
uint32_t alignment;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue