OSDN Git Service

drm/i915/gt: Use XY_FAST_COLOR_BLT to clear obj on graphics ver 12+
authorRamalingam C <ramalingam.c@intel.com>
Tue, 5 Apr 2022 15:08:33 +0000 (20:38 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Thu, 14 Apr 2022 07:47:05 +0000 (13:17 +0530)
commita0ed9c95cce69384862b567b3d23472770cf1648
tree2c1dc9cd3c9f3778cf904158397b985e31abe1eb
parentfd5803e5eebec174ae1d86cae2dbceebd45b7cf9
drm/i915/gt: Use XY_FAST_COLOR_BLT to clear obj on graphics ver 12+

Use faster XY_FAST_COLOR_BLT cmd on graphics version of 12 and more,
for clearing (Zero out) the pages of the newly allocated object.

XY_FAST_COLOR_BLT is faster than the older XY_COLOR_BLT.

v2:
  Typo fix at title [Thomas]
v3:
  XY_FAST_COLOR_BLT is used only for FLAT_CCS capable gen12+

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220405150840.29351-3-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/intel_gpu_commands.h
drivers/gpu/drm/i915/gt/intel_migrate.c