drm/i915: Update tiled blits selftest
authorBommu Krishnaiah <krishnaiah.bommu@intel.com>
Mon, 16 May 2022 08:20:15 +0000 (10:20 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 24 May 2022 10:39:38 +0000 (11:39 +0100)
commitd63ddca7c58132257fd01e3a4feca41b3bac3089
tree0edad885a1e82c78f9d0be3e3de8550111a3b516
parent8ec5c0006c50cb1909c0de0fad137909c1218990
drm/i915: Update tiled blits selftest

Update the selftest to include Tile 4 mode and switch to Tile 4 on
platforms that supports Tile 4 but no Tile Y and vice versa.
Also switch to XY_FAST_COPY_BLT on platforms that supports it.

v4: update commit message to reflect the code changes properly.
v3: add a function to find X-tile availability for a platform.
v2: disable Tile X for iGPU in fastblit and
    fix checkpath --strict warnings.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5879
Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
Co-developed-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Zbigniew KempczyƄski <zbigniew.kempczynski@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220516082015.32020-1-nirmoy.das@intel.com
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c
drivers/gpu/drm/i915/gt/intel_gpu_commands.h