anv/image: Use planes[i]->primary_surface.isl.format in check_drm_format_mod
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 21 Jul 2021 23:06:14 +0000 (18:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Aug 2021 21:29:34 +0000 (21:29 +0000)
commit951635dfe7c90cb0c7d91fcc379d336d46ba2ae6
tree970082d2920c194b443fd95da99b35ac83918e08
parent403acd299f80c36f48f38bfffe079d21b2c61417
anv/image: Use planes[i]->primary_surface.isl.format in check_drm_format_mod

In theory, with linear vs. tiled differences, it could be different
(RGBA vs. RGB etc.) but it won't matter for the two checks we do with
it.  Also, we probably want to be checking the real format here anyway.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12023>
src/intel/vulkan/anv_image.c