From 2ef3dec5c87cd94d70133e522d7e0f42cdd04f06 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 9 Aug 2019 13:24:22 +0300 Subject: [PATCH] isl: add matching display workaround to the kernel Signed-off-by: Lionel Landwerlin --- src/intel/isl/isl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index c1b5178ce8e..680aa2f457a 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -1330,6 +1330,12 @@ isl_calc_tiled_min_row_pitch(const struct isl_device *dev, tile_info->logical_extent_el.width); assert(alignment_B == tile_info->phys_extent_B.width); + /* Display workaround WaLosslessCompressionSurfaceStride/#0531 */ + if (ISL_DEV_GEN(dev) == 9 && + !(surf_info->usage & ISL_SURF_USAGE_CCS_BIT) && + surf_info->width > 3840) + return isl_align(total_w_tl * tile_info->phys_extent_B.width, + 4 * tile_info->phys_extent_B.width); return total_w_tl * tile_info->phys_extent_B.width; } -- 2.20.1