drm/i915/gt: optimize the ccs_sz calculation per chunk
authorRamalingam C <ramalingam.c@intel.com>
Mon, 2 May 2022 14:26:17 +0000 (19:56 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Tue, 3 May 2022 02:12:02 +0000 (07:42 +0530)
commitb8c9d486af7b462d117f92ecc5afb4d406b74d15
tree98db6826944e15666024c53d5c1845983418bd33
parent166c44e6949a05b2e61024538007a8f983afd704
drm/i915/gt: optimize the ccs_sz calculation per chunk

Calculate the ccs_sz that needs to be emitted based on the src
and dst pages emitted per chunk. And handle the return value of emit_pte
for the ccs pages.

v2:
  ccs_sz moved to the reduced scope [Matt]

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220502142618.2704-3-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/intel_migrate.c