Fix prettySize() in dEQP-VK.info.*
authorEric Engestrom <eric@igalia.com>
Fri, 10 Mar 2023 11:23:56 +0000 (11:23 +0000)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Thu, 23 Mar 2023 17:00:10 +0000 (17:00 +0000)
commite5e42d95242dfa1e1989ba284796639824d45e04
tree615b3b3d937551b1ddec769c511afa17c31896ac
parent66467144d0f824115debcbb294e4fcb500990542
Fix prettySize() in dEQP-VK.info.*

The units were in the wrong order, leading to MiB being picked for
all values below 1 TiB and above or equal to 1 MiB, skipping GiB.

Adding an assert ensures that this stays correct in the future as well,
as the comment was clearly not enough.

Components: Vulkan

Affects: dEQP-VK.info.memory_limits
Change-Id: Ie9ccc14ee8ef703e197af8e5c31387deba1dd1d4
external/vulkancts/modules/vulkan/vktInfoTests.cpp