anv: Reject modifiers on depth/stencil formats
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 12 Feb 2020 16:22:39 +0000 (10:22 -0600)
committerMarge Bot <eric+marge@anholt.net>
Thu, 13 Feb 2020 15:40:18 +0000 (15:40 +0000)
commit3a2977e7b5ccead8a3a0e3d7df7823325c64b90b
tree4948c47b9cd9329aa7f8d10963da9942e03ee570
parent5a593bec16b1e5830bc57462abc0b056342ac876
anv: Reject modifiers on depth/stencil formats

6790397346cc added code which attempts to reject modifiers on
depth/stencil formats but it was placed after the early return for depth
and stencil aspects.  This commit moves it up so it actually works.

Of course, this doesn't actually matter because the only user of any of
the modifiers stuff is the WSI code and it will never do anything with
depth/stencil.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3794>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3794>
src/intel/vulkan/anv_formats.c