intel/blorp: Bump pitch when clearing unaligned bottom rows
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

This might be faster if the layer starts at a 64KB offset. No
performance benefits found in the performance CI.

Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37660>
This commit is contained in:
Nanley Chery 2026-01-16 10:41:44 -05:00 committed by Marge Bot
parent 3e331e4fe9
commit 4512d81559

View file

@ -727,6 +727,7 @@ blorp_fast_clear(struct blorp_batch *batch,
assert(isl_surf.logical_level0_px.h == 32);
isl_surf.logical_level0_px.h = unaligned_bottom_rows;
isl_surf.phys_level0_sa.h = unaligned_bottom_rows;
isl_surf.row_pitch_B = align(isl_surf.row_pitch_B, 16 * 128);
fast_clear_surf(batch, &mem_surf, isl_surf.format, swizzle,
0, 0, isl_surf.logical_level0_px.a);
}