From c7e66533a3ea1da3ae38e23c070425882076b6a1 Mon Sep 17 00:00:00 2001 From: Norbert Garnys Date: Thu, 20 Sep 2018 13:27:11 +0200 Subject: [PATCH] Fix dEQP-VK.glsl.atomic_operations.*64bit* Change buffer structure to be naturally aligned. Affected tests: dEQP-VK.glsl.atomic_operations.* Components: Vulkan VK-GL-CTS issue:1364 Change-Id: I6721ee396e55e6c83cb3970171eafd064076c988 --- .../modules/vulkan/shaderexecutor/vktAtomicOperationTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/vulkancts/modules/vulkan/shaderexecutor/vktAtomicOperationTests.cpp b/external/vulkancts/modules/vulkan/shaderexecutor/vktAtomicOperationTests.cpp index a066f04..8e46111 100644 --- a/external/vulkancts/modules/vulkan/shaderexecutor/vktAtomicOperationTests.cpp +++ b/external/vulkancts/modules/vulkan/shaderexecutor/vktAtomicOperationTests.cpp @@ -212,11 +212,11 @@ public: // Use half the number of elements for inout to cause overlap between atomic operations. // Each inout element at index i will have two atomic operations using input from // indices i and i + NUM_ELEMENTS / 2. - deInt32 index; T inout[NUM_ELEMENTS / 2]; T input[NUM_ELEMENTS]; T compare[NUM_ELEMENTS]; T output[NUM_ELEMENTS]; + deInt32 index; }; virtual void setBuffer(void* ptr) @@ -671,11 +671,11 @@ void AtomicOperationCase::createShaderSpec (void) "${EXTENSIONS}\n" "layout (set = ${SETIDX}, binding = 0) buffer AtomicBuffer\n" "{\n" - " int index;\n" " ${DATATYPE} inoutValues[${N}/2];\n" " ${DATATYPE} inputValues[${N}];\n" " ${DATATYPE} compareValues[${N}];\n" " ${DATATYPE} outputValues[${N}];\n" + " int index;\n" "} buf;\n"); std::map specializations; -- 2.7.4