mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
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:
parent
f6c4658cde
commit
a827b553d9
1 changed files with 2 additions and 2 deletions
|
|
@ -813,9 +813,9 @@ isl_calc_row_pitch(const struct isl_device *dev,
|
||||||
*/
|
*/
|
||||||
if (info->usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) {
|
if (info->usage & ISL_SURF_USAGE_RENDER_TARGET_BIT) {
|
||||||
if (isl_format_is_yuv(info->format)) {
|
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);
|
row_pitch = isl_align(row_pitch, 2 * fmtl->bs);
|
||||||
|
} else {
|
||||||
|
row_pitch = isl_align(row_pitch, fmtl->bs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue