mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
freedreno: allow INVALID modifier
Re-allow INVALID modifier in import path. The legacy import path
(createImageFromFds()), which is used by android, uses the INVALID
modifier. Previously we would ignore this and just setup the imported
buffer as linear. Restore this behavior to unbreak the legacy import
path.
Fixes: 9891062642 freedreno/a6xx: Implement layout for DRM_FORMAT_MOD_QCOM_COMPRESSED
Signed-off-by: Rob Clark <robdclark@chromium.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3817>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3817>
This commit is contained in:
parent
3547e19bbd
commit
334788d4cc
1 changed files with 1 additions and 0 deletions
|
|
@ -199,6 +199,7 @@ fd6_layout_resource_for_modifier(struct fd_resource *rsc, uint64_t modifier)
|
|||
case DRM_FORMAT_MOD_QCOM_COMPRESSED:
|
||||
return fill_ubwc_buffer_sizes(rsc);
|
||||
case DRM_FORMAT_MOD_LINEAR:
|
||||
case DRM_FORMAT_MOD_INVALID:
|
||||
return 0;
|
||||
default:
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue