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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user