intel/isl: Use uint64_t to store total surface size
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 19 May 2017 20:47:12 +0000 (13:47 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 16 Jun 2017 16:05:05 +0000 (09:05 -0700)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/isl/isl.c
src/intel/isl/isl.h

index 860fc28b274f2653ce4529fefd4fd0340c2692e3..cf9aa4a4c1e23d994b9c48b8f79e8e67d473655e 100644 (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;
 
index 95ecaf90d8236d961b6224f76652f9a929782f08..07ff01a4270a1f110207170a7094c3fbe8470e49 100644 (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;