Fixed incorrect calculation of GCD
authorOivind Boge <oivind.boge@arm.com>
Thu, 10 Aug 2017 10:24:02 +0000 (12:24 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 11 Aug 2017 15:11:58 +0000 (11:11 -0400)
commitcc1acbf2f69fc356640c4861ed166603f7d0d26b
treef7b858ff52e99a642a8129da9560674776b08017
parente70575ebb8ef9fda3e673240e8469789f22a4d68
Fixed incorrect calculation of GCD

The calculation of greatest common divisor was
implemented incorrect when first added.
The function was using the input parameter instead
of its local copy of the input, which is updated
for each iteration of the calculation.

Affects:

dEQP-VK.api.image_clearing.*

Components: Vulkan

VK-GL-CTS issue: 625

Change-Id: I6619e4a30d89148d2567a725dbd27161fcf29a47
external/vulkancts/modules/vulkan/api/vktApiImageClearingTests.cpp