diff options
author | Rob Clark <[email protected]> | 2020-02-13 10:26:08 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-13 19:16:17 +0000 |
commit | 334788d4cc9bb8a0a6b3166e609638687efa0f3f (patch) | |
tree | 5a8522c04c19233a730bd2cc6fe03119498314b4 /src/gallium/drivers | |
parent | 3547e19bbd0d70fc391f5982ea38a026a5994b1c (diff) |
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: 9891062642a freedreno/a6xx: Implement layout for DRM_FORMAT_MOD_QCOM_COMPRESSED
Signed-off-by: Rob Clark <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3817>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3817>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c index 2018c3afdd9..30a42ea557e 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_resource.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_resource.c @@ -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; |