Replace LAST with MAX_ENUM in mapBorderColor
authorJoshua Ashton <joshua@froggi.es>
Fri, 17 Apr 2020 02:53:47 +0000 (03:53 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 1 May 2020 08:47:15 +0000 (04:47 -0400)
Fixes compilation errors with the newer headers.

Affected tests:
dEQP-VK.pipeline.sampler.*border*

Components: Vulkan
VK-GL-CTS issue: 2332

Change-Id: I757017612045666de53b8a09691eed27587503df

external/vulkancts/framework/vulkan/vkImageUtil.cpp

index ad3b767..61d22d5 100644 (file)
@@ -3492,7 +3492,7 @@ static VkBorderColor mapBorderColor (tcu::TextureChannelClass channelClass, cons
        }
 
        DE_FATAL("Unsupported border color");
-       return VK_BORDER_COLOR_LAST;
+       return VK_BORDER_COLOR_MAX_ENUM;
 }
 
 VkSamplerCreateInfo mapSampler (const tcu::Sampler& sampler, const tcu::TextureFormat& format, float minLod, float maxLod, bool unnormal)