mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-06 21:10:23 +01:00
intel/blorp: Bump pitch when clearing unaligned bottom rows
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:
parent
3e331e4fe9
commit
4512d81559
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue