Updated spirv-tools.

This commit is contained in:
Бранимир Караџић
2020-03-28 16:25:06 -07:00
parent eff6f13011
commit f334d0c1cb
15 changed files with 377 additions and 43 deletions

View File

@@ -569,7 +569,12 @@ bool Optimizer::Run(const uint32_t* original_binary,
}
#ifndef NDEBUG
if (status == opt::Pass::Status::SuccessWithoutChange) {
// We do not keep the result id of DebugScope in struct DebugScope.
// Instead, we assign random ids for them, which results in sanity
// check failures. We want to skip the sanity check when the module
// contains DebugScope instructions.
if (status == opt::Pass::Status::SuccessWithoutChange &&
!context->module()->ContainsDebugScope()) {
std::vector<uint32_t> optimized_binary_with_nop;
context->module()->ToBinary(&optimized_binary_with_nop,
/* skip_nop = */ false);