From a827b553d9c13f7c31244667daf320add65bb96b Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Fri, 1 Jan 2016 10:37:25 -0800 Subject: [PATCH] isl: Fix swapped if-else in isl_calc_row_pitch The YUV case was applied to non-YUV formats. Oops. --- src/isl/isl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/isl/isl.c b/src/isl/isl.c index 75f65001a1e..fe878f7fb9a 100644 --- a/src/isl/isl.c +++ b/src/isl/isl.c @@ -813,9 +813,9 @@ isl_calc_row_pitch(const struct isl_device *dev, */ if (info->usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) { if (isl_format_is_yuv(info->format)) { - row_pitch = isl_align(row_pitch, fmtl->bs); - } else { row_pitch = isl_align(row_pitch, 2 * fmtl->bs); + } else { + row_pitch = isl_align(row_pitch, fmtl->bs); } } break; -- 2.30.2