drm/xe/display: Dont poke into GGTT internals to fill a DPT
authorMaarten Lankhorst <dev@lankhorst.se>
Mon, 5 May 2025 12:19:19 +0000 (14:19 +0200)
committerMaarten Lankhorst <dev@lankhorst.se>
Mon, 9 Jun 2025 08:24:22 +0000 (10:24 +0200)
commit8ce1c8cc68208bf5a3f4dfddbdb6579ae6f75be5
tree062d4e0544df36aba8224b55f4a6aa4dcc093bc8
parent57f6af194fcd4d9901d0060b996dfb0d5543c4b7
drm/xe/display: Dont poke into GGTT internals to fill a DPT

For DPT, it is sufficient to get the GGTT encode flags to fill the DPT.
Create a function to return the encode flags, and then encode using the
BO address.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://lore.kernel.org/r/20250505121924.921544-7-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/xe/display/xe_fb_pin.c
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_ggtt.h