iris: Remap DRM_FORMAT_MOD_INVALID more often during import
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 11 Jul 2023 16:01:26 +0000 (12:01 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 20:53:26 +0000 (20:53 +0000)
commitc042eb653d431384ea70647a6583f74da2ed0b62
tree0df5da2199ba0b1cb1731c1c1185db9253d5dd30
parentba071ee81c31de1a47b44140d5a1e18e360873e1
iris: Remap DRM_FORMAT_MOD_INVALID more often during import

We'd eventually like to use an ISL helper that doesn't support
DRM_FORMAT_MOD_INVALID. Prepare for this by replacing the invalid value
with the modifier associated with the BO's tiling in more cases.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24120>
src/gallium/drivers/iris/iris_resource.c