diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-04 10:53:47 -0800 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-04 10:53:47 -0800 |
commit | 0f34a4ec4ee296121c0f2ae416d5899c846efd90 (patch) | |
tree | a37598b2aec8f3c4f94998775de342ace82a7e31 /src/isl | |
parent | abc1c9878f552b7b7212a5a04048091847ef1c23 (diff) |
isl: Use isl_align_npot for row_pitch
Many formats are not power-of-two bytes per pixels and we need the
non-power-of-two align macro here.
This reverts the revert from 4f9a211b, but keeps the change from a827b553
that fixed the yuv if-else mix-up.
Diffstat (limited to 'src/isl')
-rw-r--r-- | src/isl/isl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/isl/isl.c b/src/isl/isl.c index 3823a720660..6c49164615b 100644 --- a/src/isl/isl.c +++ b/src/isl/isl.c @@ -833,9 +833,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, 2 * fmtl->bs); + row_pitch = isl_align_npot(row_pitch, 2 * fmtl->bs); } else { - row_pitch = isl_align(row_pitch, fmtl->bs); + row_pitch = isl_align_npot(row_pitch, fmtl->bs); } } break; |