[PATCH i-g-t v3 0/4] Fill block-copy test gap for unaligned sizes

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Thu Feb 1 09:22:23 UTC 2024


Using 512x512 resolution for testing is too optimistic and hides intel_blt
limitation for using different (smaller) resolutions which also might
not be aligned to expected stride and height.

Address this by adding few helpers, change blt buffer creation size
calculation and add "increment" version of the test in xe_ccs.

v2: fix handling Tile64 what also requires bpp in dumping to
    png as helper for aligned height depend on it (Zbigniew)
v3: fix xmajor stride + make helpers public (Zbigniew)

Zbigniew Kempczyński (4):
  lib/intel_blt: Add helpers for calculating stride and aligned height
  lib/intel_blt: Change surface size calculation
  lib/intel_blt: Use object pitch and aligned height on png write
  tests/xe-ccs: Add tests which exercise small to large blit sizes

 lib/intel_blt.c                |  84 ++++++++++++++++-
 lib/intel_blt.h                |   6 +-
 tests/intel/gem_ccs.c          |  23 ++---
 tests/intel/gem_exercise_blt.c |  16 ++--
 tests/intel/xe_ccs.c           | 167 ++++++++++++++++++++++++---------
 tests/intel/xe_exercise_blt.c  |  16 ++--
 6 files changed, 238 insertions(+), 74 deletions(-)

-- 
2.34.1



More information about the igt-dev mailing list