isl: Fix swapped if-else in isl_calc_row_pitch

The YUV case was applied to non-YUV formats. Oops.
This commit is contained in:
Chad Versace
2016-01-01 10:37:25 -08:00
parent f6c4658cde
commit a827b553d9

View File

@@ -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;