mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 02:30:12 +01:00
Revert "isl: Fix assertion failure for npot pixel formats"
This reverts commit 96d1baa88d.
This commit is contained in:
parent
0bb103d010
commit
4f9a211b4a
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_npot(row_pitch, fmtl->bs);
|
row_pitch = isl_align(row_pitch, fmtl->bs);
|
||||||
} else {
|
} else {
|
||||||
row_pitch = isl_align_npot(row_pitch, 2 * fmtl->bs);
|
row_pitch = isl_align(row_pitch, 2 * fmtl->bs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue