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:
Anuj Phogat 2017-05-19 13:47:12 -07:00
parent 05d5caffc4
commit 7022978237
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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;