Check device and group indices before using them
authorRicardo Garcia <rgarcia@igalia.com>
Thu, 4 Aug 2022 09:22:27 +0000 (11:22 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 18 Aug 2022 20:32:47 +0000 (20:32 +0000)
commitef82e40650133c62e7cc130e82deaf85beb1d1e2
tree637a2307bf765794d1643ec36726c3e298ada631
parent0fb02efce0fbcc9c44450a62c8d2eb91b3f3dcaf
Check device and group indices before using them

dEQP-VK.info.device_group_peer_memory_features was using the device and
group indices without checking if they were valid first for the array of
reported physical device groups.

Affects:
dEQP-VK.info.device_group_peer_memory_features

Components: Vulkan
VK-GL-CTS issue: 3873

Change-Id: I2601e74158496f0ee7ec1cdb42af2faf1c587216
external/vulkancts/framework/vulkan/vkQueryUtil.cpp
external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp