From: Jason Ekstrand Date: Wed, 30 Dec 2015 22:02:20 +0000 (-0800) Subject: isl: Tile-align height in image size calculation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7e827192bdbc82f2e0b3c9c5cd9c17004c3f77b;p=mesa.git isl: Tile-align height in image size calculation This fixes a bunch of gpu hangs on the dEQP-VK.glsl.ShaderExecutor.common group of CTS tests. --- diff --git a/src/isl/isl.c b/src/isl/isl.c index df0aeed01df..75f65001a1e 100644 --- a/src/isl/isl.c +++ b/src/isl/isl.c @@ -1016,7 +1016,7 @@ isl_surf_init_s(const struct isl_device *dev, array_pitch_el_rows); const uint32_t total_h_sa = total_h_el * fmtl->bh; - const uint32_t size = row_pitch * total_h_sa; + const uint32_t size = row_pitch * isl_align(total_h_sa, tile_info.height); /* Alignment of surface base address, in bytes */ uint32_t base_alignment = info->min_alignment;