SPV 1.4: Move to 1.4 validation, removing all 1.4 validation failures.

This commit is contained in:
John Kessenich 2019-05-09 23:50:08 -06:00
parent f43c739ac5
commit b64952eddd
11 changed files with 15 additions and 12 deletions

View File

@ -52,8 +52,21 @@ namespace glslang {
spv_target_env MapToSpirvToolsEnv(const SpvVersion& spvVersion, spv::SpvBuildLogger* logger)
{
switch (spvVersion.vulkan) {
case glslang::EShTargetVulkan_1_0: return spv_target_env::SPV_ENV_VULKAN_1_0;
case glslang::EShTargetVulkan_1_1: return spv_target_env::SPV_ENV_VULKAN_1_1;
case glslang::EShTargetVulkan_1_0:
return spv_target_env::SPV_ENV_VULKAN_1_0;
case glslang::EShTargetVulkan_1_1:
switch (spvVersion.spv) {
case EShTargetSpv_1_0:
case EShTargetSpv_1_1:
case EShTargetSpv_1_2:
case EShTargetSpv_1_3:
return spv_target_env::SPV_ENV_VULKAN_1_1;
case EShTargetSpv_1_4:
return spv_target_env::SPV_ENV_VULKAN_1_1_SPIRV_1_4;
default:
logger->missingFunctionality("Target version for SPIRV-Tools validator");
return spv_target_env::SPV_ENV_VULKAN_1_1;
}
default:
break;
}

View File

@ -2,7 +2,6 @@ spv.1.4.LoopControl.frag
WARNING: 0:15: 'min_iterations' : expected a single integer argument
WARNING: 0:15: 'max_iterations' : expected a single integer argument
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 54

View File

@ -1,5 +1,4 @@
spv.1.4.NonWritable.frag
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 38

View File

@ -1,5 +1,4 @@
spv.1.4.OpCopyLogical.comp
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 65

View File

@ -1,5 +1,4 @@
spv.1.4.OpCopyLogical.funcall.frag
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 60

View File

@ -1,5 +1,4 @@
spv.1.4.OpCopyLogicalBool.comp
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 135

View File

@ -1,5 +1,4 @@
spv.1.4.OpEntryPoint.frag
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 64

View File

@ -1,5 +1,4 @@
spv.1.4.OpSelect.frag
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 98

View File

@ -1,5 +1,4 @@
spv.1.4.image.frag
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 104

View File

@ -1,5 +1,4 @@
spv.1.4.sparseTexture.frag
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 213

View File

@ -1,5 +1,4 @@
spv.1.4.texture.frag
Validation failed
// Module Version 10400
// Generated by (magic number): 80007
// Id's are bound by 79