Fix size calculation for compressed 3D textures
authorCharles Johnston <Charles.Johnston@amd.com>
Thu, 28 Jan 2021 13:48:26 +0000 (08:48 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 10 Feb 2021 09:46:50 +0000 (09:46 +0000)
Affected tests:
dEQP-VK.texture.compressed_3D.*

Components: vulkan
VK-GL-CTS issue: 2761

Change-Id: I2d062233a5bb3611bc9c24697da198a4710dc0e1

external/vulkancts/framework/vulkan/vkImageUtil.cpp

index c1dd5e6..68baf4b 100644 (file)
@@ -4750,13 +4750,6 @@ void allocateAndBindSparseImage (const DeviceInterface&                                          vk,
        const VkSparseImageMemoryRequirements           aspectRequirements      = sparseImageMemoryRequirements[aspectIndex];
        VkExtent3D                                                                      blockSize                       = aspectRequirements.formatProperties.imageGranularity;
 
-       if (isCompressedFormat(imageCreateInfo.format))
-       {
-               // 28.4.3 block dimensions of block-compressed format
-               blockSize.width *= getBlockWidth(imageCreateInfo.format);
-               blockSize.height *= getBlockHeight(imageCreateInfo.format);
-       }
-
        std::vector<VkSparseImageMemoryBind>            imageResidencyMemoryBinds;
        std::vector<VkSparseMemoryBind>                         imageMipTailMemoryBinds;