dzn: Make sure the properties are all zero when the format is not supported
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 31 Mar 2022 15:56:37 +0000 (17:56 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Apr 2022 11:54:43 +0000 (11:54 +0000)
commit8dfab9b382dd7f542ae806c9e80c4601ba848769
treeed6ba8951c91fea6454214e3d43ecd9499b713b3
parentdc3dd9690ba4df9d20248d1d066ddfbdbf8ed979
dzn: Make sure the properties are all zero when the format is not supported

Move one of the is_supported() check before we start filling the
structure so we don't end up with a partially filled object when
we return VK_ERROR_FORMAT_NOT_SUPPORTED (which deqp doesn't seem to like,
so it's probably coming from a spec requirement).

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>
src/microsoft/vulkan/dzn_device.cpp