freedreno: Handle DRM_FORMAT_MOD_QCOM_TILED3 import

This is something that we could allocate and export.  So we must import
them as well.

Fixes import failures in spec@ext_image_dma_buf_import@ext_image_dma_buf_import-modifiers

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25995>
This commit is contained in:
Rob Clark
2023-11-01 10:04:16 -07:00
committed by Marge Bot
parent a95ea2b6d6
commit 33de58154f

View File

@@ -322,12 +322,14 @@ fd6_layout_resource_for_modifier(struct fd_resource *rsc, uint64_t modifier)
PRSC_ARGS(&rsc->b.b));
}
return 0;
case DRM_FORMAT_MOD_QCOM_TILED3:
case DRM_FORMAT_MOD_INVALID:
if (can_do_ubwc(&rsc->b.b)) {
perf_debug("%" PRSC_FMT
": not UBWC: imported with DRM_FORMAT_MOD_INVALID!",
PRSC_ARGS(&rsc->b.b));
}
rsc->layout.tile_mode = fd6_tile_mode(&rsc->b.b);
return 0;
default:
return -1;