Fix BufferView access tests for scaled types
authorAndrew Fobel <Andrew.Fobel@amd.com>
Fri, 20 Jan 2023 00:54:39 +0000 (19:54 -0500)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Fri, 17 Mar 2023 11:57:03 +0000 (11:57 +0000)
commit53969722e24e7872417bad7ed5d89f05975b786a
treea4cddcf70946c356de2ba9e69a8d57fb44acc141
parent4f1fbfe442113fb385b32c27973f7a206b952a2a
Fix BufferView access tests for scaled types

The way in which these tests were written assumes the input and output
to the shaders are of the same type; however, for scaled types they are
converted from integral to floating point before being processed in the
shader. This change corrects that issue as well as adds the two missing
scaled types to the framework.

Affected tests:
dEQP-VK.api.buffer_view.access.uniform_texel_buffer.*

VK-GL-CTS Issue: 4239

Components: Vulkan

Change-Id: I84f904648c6f2cf301111250dba28feabf782788
(cherry picked from commit 9145d71d6f8461c23af15ae09d8e846279270f44)
external/vulkancts/framework/vulkan/vkImageUtil.cpp
external/vulkancts/framework/vulkan/vkImageUtil.hpp
external/vulkancts/modules/vulkan/api/vktApiBufferViewAccessTests.cpp