mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
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:
parent
a95ea2b6d6
commit
33de58154f
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue