zink. Don't set incorrect sType in VkImportMemoryFdInfoKHR struct
authorVilya Harvey <vilya.harvey@foundry.com>
Tue, 3 Mar 2020 16:19:29 +0000 (16:19 +0000)
committerDuncan Hopkins <duncan@duncanhopkins.me.uk>
Wed, 4 Mar 2020 08:37:29 +0000 (08:37 +0000)
commit6ceda485605b627c5d2f8974a40e092ce00cc08e
tree9088ee4edd7567cc49089edf93bc8570d243ab7f
parent3199b8b9e7f0a63075ea082f51fae28daee2bd3a
zink. Don't set incorrect sType in VkImportMemoryFdInfoKHR struct

imfi.sType was being set to an invalid value, triggering a warning in Clang. The only valid value for imfi.sType is VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR which is the value it is being given at initialisation time, a few lines earlier. The incorrect value, VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT, is supposed to be used in imfi.handleType instead - and indeed, handleType *is* being set to this value a few lines later.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4034>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4034>
src/gallium/drivers/zink/zink_resource.c