]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use tile block based dimensions for CCS origin x, y check
authorImre Deak <imre.deak@intel.com>
Mon, 6 Sep 2021 18:27:10 +0000 (21:27 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 23 Sep 2021 13:13:25 +0000 (16:13 +0300)
commit88486bb98bde8817cebd34a67f0404b5cb728fd8
tree75136605efd7ba9f961cbe806d02ffc9998585c1
parente8bed703dc2397e48d514489c5e160604e3902a0
drm/i915: Use tile block based dimensions for CCS origin x, y check

The tile size for all surface types is 4 kbyte (or 2 kbyte on old
platforms), with the exception of the TGL/ADL CCS surface where the tile
size is 64 bytes. To be able to remap CCS FBs the CCS surface tile needs
to be defined as 4 kbyte as well (the granularity of GTT pages in a
remapped view).

The only place using the dimension of the 64 byte CCS area is the initial
check for the main vs. CCS plane origin coordinate match. To prepare for
adding support for remapping CCS FBs let's call the 64 byte CCS area a
'tile block' and add a helper to retrieve the dimensions for it.

No functional change.

Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210906182715.3915100-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_fb.c