Call computeFixedPointError only for fixed point case
authorMohankumar Nekkarakalaya <mnekkara@qti.qualcomm.com>
Wed, 7 Jul 2021 23:00:03 +0000 (16:00 -0700)
committerMohankumar Nekkarakalaya <mnekkara@qti.qualcomm.com>
Wed, 7 Jul 2021 23:22:30 +0000 (16:22 -0700)
commit2a18241f691ca78cccd62340df9b7f9e257a5702
treef4f5052e7c8de25c8d1fd46510cf5d9262ce5520
parente1c347d5490dc9266fc205b7b1fe4cc3193dfe10
Call computeFixedPointError only for fixed point case

Calling computeFixedPointError for integer case (numAccurateBits=32)
is incorrect and causes crash.
Added assert to make sure numAccurateBits is in legal range.

Affected tests: dEQP-VK.sparse_resources.image_sparse_residency.*

Components: Vulkan

VK-GL-CTS issue: 2994

Change-Id: Ib357cbbbda0f7980ec2d7115053cabc6825a18d3
external/vulkancts/modules/vulkan/sparse_resources/vktSparseResourcesImageMemoryAliasing.cpp
external/vulkancts/modules/vulkan/sparse_resources/vktSparseResourcesImageSparseResidency.cpp
external/vulkancts/modules/vulkan/ycbcr/vktYCbCrStorageImageWriteTests.cpp
framework/common/tcuTexVerifierUtil.cpp