summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2017-05-19 13:47:12 -0700
committerAnuj Phogat <anuj.phogat@gmail.com>2017-06-16 09:05:05 -0700
commit70229782370c7ed9a63e05689f4d8bfc80128dd9 (patch)
tree96b73e05af8e51587e0e957b87771710b2b95baa /src/intel
parent05d5caffc402f532502b7b8e301a80ef140b7317 (diff)
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>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/isl/isl.c3
-rw-r--r--src/intel/isl/isl.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index 860fc28b274..cf9aa4a4c1e 100644
--- a/src/intel/isl/isl.c
+++ b/src/intel/isl/isl.c
@@ -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;
diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 95ecaf90d82..07ff01a4270 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -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;