freedreno: allow INVALID modifier
authorRob Clark <robdclark@chromium.org>
Thu, 13 Feb 2020 18:26:08 +0000 (10:26 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 13 Feb 2020 19:16:17 +0000 (19:16 +0000)
commit334788d4cc9bb8a0a6b3166e609638687efa0f3f
tree5a8522c04c19233a730bd2cc6fe03119498314b4
parent3547e19bbd0d70fc391f5982ea38a026a5994b1c
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 <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>
src/gallium/drivers/freedreno/a6xx/fd6_resource.c