Add fp16 float control tests without 16bit_storage requirement
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 19 Mar 2020 19:57:26 +0000 (20:57 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 24 Apr 2020 09:31:50 +0000 (05:31 -0400)
commitb1245daa4578cb2968116240ee56479a373b11af
tree8fa9272d4e6528a8a95a0f1ac28c002cb23ac311
parentccac15964915ef8cef00c31e2a692f5d04c273a6
Add fp16 float control tests without 16bit_storage requirement

This CL adds new tests that don't require VK_KHR_16bit_storage
extension support to read float16 inputs or write float16 outputs.

It required to modify the fp16 output buffer size to hold an
unsigned 32-bits integer, whose 16 MSB are going to be unused
by the verification function but are needed to avoid requiring
VK_KHR_16bit_storage extension support.

A new userData member was added to the Resource class in order to
facilitate the selection of the verification function when we have
multiple outputs with different sizes (see checkMixedFloats()
function in vktSpvAsmFloatControlsTests.cpp).

Added tests:

   dEQP-VK.spirv_assembly.instruction.*.float_controls.*nostorage*

Modified tests:

   dEQP-VK.spirv_assembly.instruction.*.float_controls.*

Components: Vulkan
VK-GL-CTS issue: 1877

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: Ice7a6129ee7cfe8a8813115530584bb6dde607ba
android/cts/master/vk-master-2020-03-01.txt
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmUtils.hpp
external/vulkancts/mustpass/master/vk-default.txt