The API version check was backwards.
Affects:
dEQP_VK.spirv_assembly.*
Components: Vulkan
VK-GL-CTS issue: 740
Change-Id: Ic5e2bfbdbd202c4b27295573cdeca1ea06424c7c
TestInstance* SpvAsmComputeShaderCase::createInstance (Context& ctx) const
{
- if (getMinRequiredVulkanVersion(m_shaderSpec.spirvVersion) < ctx.getUsedApiVersion())
+ if (getMinRequiredVulkanVersion(m_shaderSpec.spirvVersion) > ctx.getUsedApiVersion())
{
- TCU_THROW(NotSupportedError, std::string("Vulkan higher than " + getVulkanName(ctx.getUsedApiVersion()) + " is required for this test to run").c_str());
+ TCU_THROW(NotSupportedError, std::string("Vulkan higher than or equal to " + getVulkanName(getMinRequiredVulkanVersion(m_shaderSpec.spirvVersion)) + " is required for this test to run").c_str());
}
return new SpvAsmComputeShaderInstance(ctx, m_shaderSpec, m_features);
}
TestStatus runAndVerifyDefaultPipeline (Context& context, InstanceContext instance)
{
- if (getMinRequiredVulkanVersion(instance.resources.spirvVersion) < context.getUsedApiVersion())
+ if (getMinRequiredVulkanVersion(instance.resources.spirvVersion) > context.getUsedApiVersion())
{
- TCU_THROW(NotSupportedError, string("Vulkan higher than " + getVulkanName(context.getUsedApiVersion()) + " is required for this test to run").c_str());
+ TCU_THROW(NotSupportedError, string("Vulkan higher than or equal to " + getVulkanName(getMinRequiredVulkanVersion(instance.resources.spirvVersion)) + " is required for this test to run").c_str());
}
const InstanceInterface& vkInstance = context.getInstanceInterface();