Fix undersized buffer use in extend operands tests
authorReed Koser <rkoser@nvidia.com>
Thu, 5 Sep 2019 20:48:11 +0000 (13:48 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 10 Oct 2019 13:30:52 +0000 (09:30 -0400)
commit7969d7b0bfe06c02af1c16ddec4902ff6a822f0f
tree527003a9feb4b00bf1795982b573afaa008b467c
parentf4470782f36c14b0020e3c040e462020d721ee50
Fix undersized buffer use in extend operands tests

Prior to this patch, the dEQP.image.extend_operands_spirv1p4.* tests
used the size of the input image as the buffer size. Since the tests
reuse the buffer to read back the output image (which is potentially
much larger, due to the unconditional use of R32G32B32A32_*INT formats),
this resulted in corruption of device memory.

Affects: dEQP-VK.image.extend_operands_spirv1p4.*

Components: Vulkan

VK-GL-CTS issue: 1980

Change-Id: I8d07cd7d54cc305635b9674074a7eafa52bf6dfa
(cherry picked from commit b38bedda7faf25272716ee234812d432637972e3)
external/vulkancts/modules/vulkan/image/vktImageLoadStoreTests.cpp