From: Matthew Netsch Date: Wed, 28 Aug 2019 16:17:00 +0000 (-0400) Subject: Reduce long execution time in spirv_asm float16 X-Git-Tag: upstream/1.3.5~1811^2^2~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac9e1e9930f0b9118cae99094ee357ecbfb68ede;hp=e9aa343ccca9650de9fbe1cc818f40742f005cfd;p=platform%2Fupstream%2FVK-GL-CTS.git Reduce long execution time in spirv_asm float16 Components: Vulkan VK-GL-CTS Issue: 1959 Affects: dEQP-VK.spirv_assembly.instruction.graphics.float16.* Change-Id: Iddfa825ffe5bf32607043eb31b517dbba1ff62dc --- diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp index 152a08d..8ae92a5 100644 --- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp +++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp @@ -9914,12 +9914,14 @@ tcu::TestCaseGroup* createFloat16LogicalSet (tcu::TestContext& testCtx, const bo const string spvCapabilities = string("OpCapability StorageUniformBufferBlock16\n") + (nanSupported ? "OpCapability SignedZeroInfNanPreserve\n" : ""); const string spvExtensions = string("OpExtension \"SPV_KHR_16bit_storage\"\n") + (nanSupported ? "OpExtension \"SPV_KHR_float_controls\"\n" : ""); const string spvExecutionMode = nanSupported ? "OpExecutionMode %BP_main SignedZeroInfNanPreserve 16\n" : ""; - const deUint32 numDataPoints = 16; - const vector float16Data = getFloat16s(rnd, numDataPoints); - const vector float16Data1 = squarize(float16Data, 0); - const vector float16Data2 = squarize(float16Data, 1); - const vector float16DataVec1 = squarizeVector(float16Data, 0); - const vector float16DataVec2 = squarizeVector(float16Data, 1); + const deUint32 numDataPointsScalar = 16; + const deUint32 numDataPointsVector = 14; + const vector float16DataScalar = getFloat16s(rnd, numDataPointsScalar); + const vector float16DataVector = getFloat16s(rnd, numDataPointsVector); + const vector float16Data1 = squarize(float16DataScalar, 0); // Total Size: square(sizeof(float16DataScalar)) + const vector float16Data2 = squarize(float16DataScalar, 1); + const vector float16DataVec1 = squarizeVector(float16DataVector, 0); // Total Size: 2 * (square(square(sizeof(float16DataVector)))) + const vector float16DataVec2 = squarizeVector(float16DataVector, 1); const vector float16OutDummy (float16Data1.size(), 0); const vector float16OutVecDummy (float16DataVec1.size(), 0);