Skip to content

Commit

Permalink
Update known good SPIRV tools and headers
Browse files Browse the repository at this point in the history
* Fixes use of optimizer
* Updated test outputs
 * GeometryStreams and TransformFeedback no longer fail validation
  • Loading branch information
alan-baker committed Nov 26, 2018
1 parent 83fe01e commit 440f95b
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 27 deletions.
2 changes: 1 addition & 1 deletion SPIRV/SpvTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void SpirvToolsLegalize(const glslang::TIntermediate&, std::vector<unsigned int>
optimizer.RegisterPass(spvtools::CreateAggressiveDCEPass());
optimizer.RegisterPass(spvtools::CreateCFGCleanupPass());

optimizer.Run(spirv.data(), spirv.size(), &spirv, spvtools::ValidatorOptions(), true);
optimizer.Run(spirv.data(), spirv.size(), &spirv);
}

}; // end namespace glslang
Expand Down
4 changes: 0 additions & 4 deletions Test/baseResults/spv.150.geom.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
spv.150.geom
error: SPIRV-Tools Validation Errors
error: Capability GeometryStreams is not allowed by Vulkan 1.0 specification (or requires extension)
OpCapability GeometryStreams

// Module Version 10000
// Generated by (magic number): 80007
// Id's are bound by 71
Expand Down
4 changes: 0 additions & 4 deletions Test/baseResults/spv.420.geom.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
spv.420.geom
error: SPIRV-Tools Validation Errors
error: Capability GeometryStreams is not allowed by Vulkan 1.0 specification (or requires extension)
OpCapability GeometryStreams

// Module Version 10000
// Generated by (magic number): 80007
// Id's are bound by 72
Expand Down
4 changes: 0 additions & 4 deletions Test/baseResults/spv.builtInXFB.vert.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
spv.builtInXFB.vert
error: SPIRV-Tools Validation Errors
error: Capability TransformFeedback is not allowed by Vulkan 1.0 specification (or requires extension)
OpCapability TransformFeedback

// Module Version 10000
// Generated by (magic number): 80007
// Id's are bound by 21
Expand Down
4 changes: 0 additions & 4 deletions Test/baseResults/spv.xfb.vert.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
spv.xfb.vert
error: SPIRV-Tools Validation Errors
error: Capability TransformFeedback is not allowed by Vulkan 1.0 specification (or requires extension)
OpCapability TransformFeedback

// Module Version 10000
// Generated by (magic number): 80007
// Id's are bound by 16
Expand Down
4 changes: 0 additions & 4 deletions Test/baseResults/spv.xfb2.vert.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
spv.xfb2.vert
error: SPIRV-Tools Validation Errors
error: Capability TransformFeedback is not allowed by Vulkan 1.0 specification (or requires extension)
OpCapability TransformFeedback

// Module Version 10000
// Generated by (magic number): 80007
// Id's are bound by 35
Expand Down
4 changes: 0 additions & 4 deletions Test/baseResults/spv.xfb3.vert.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
spv.xfb3.vert
error: SPIRV-Tools Validation Errors
error: Capability TransformFeedback is not allowed by Vulkan 1.0 specification (or requires extension)
OpCapability TransformFeedback

// Module Version 10000
// Generated by (magic number): 80007
// Id's are bound by 35
Expand Down
4 changes: 2 additions & 2 deletions known_good.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"site" : "github",
"subrepo" : "KhronosGroup/SPIRV-Tools",
"subdir" : "External/spirv-tools",
"commit" : "8e9be303b00ba352ee25dbcd352769641637a853"
"commit" : "d543f7dfed9ba02910996121375e57fff92c3c93"
},
{
"name" : "spirv-tools/external/spirv-headers",
"site" : "github",
"subrepo" : "KhronosGroup/SPIRV-Headers",
"subdir" : "External/spirv-tools/external/spirv-headers",
"commit" : "a2c529b5dda18838ab4b52f816acfebd774eaab3"
"commit" : "282879ca34563020dbe73fd8f7d45bed6755626a"
}
]
}

0 comments on commit 440f95b

Please sign in to comment.