From 33de58154f801eea84e5a9cdbda9cb6010e5ed47 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 1 Nov 2023 10:04:16 -0700 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_resource.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc b/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc index b8f96bee616..dcb412033cd 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc +++ b/src/gallium/drivers/freedreno/a6xx/fd6_resource.cc @@ -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;