summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2016-01-01 10:37:25 -0800
committerChad Versace <[email protected]>2016-01-04 09:57:23 -0800
commita827b553d9c13f7c31244667daf320add65bb96b (patch)
tree562c7a266ef9fbf163af7694f9c3bffcc02c66da
parentf6c4658cde51fb1db3d880c2ffc5921929e5615f (diff)
isl: Fix swapped if-else in isl_calc_row_pitch
The YUV case was applied to non-YUV formats. Oops.
-rw-r--r--src/isl/isl.c4
1 files 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;