mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Updated spirv-tools.
This commit is contained in:
5
3rdparty/spirv-tools/source/val/validate.cpp
vendored
5
3rdparty/spirv-tools/source/val/validate.cpp
vendored
@@ -284,9 +284,10 @@ spv_result_t ValidateBinaryUsingContextAndValidationState(
|
||||
const auto execution_model = inst->GetOperandAs<SpvExecutionModel>(0);
|
||||
const char* str = reinterpret_cast<const char*>(
|
||||
inst->words().data() + inst->operand(2).offset);
|
||||
const std::string desc_name(str);
|
||||
|
||||
ValidationState_t::EntryPointDescription desc;
|
||||
desc.name = str;
|
||||
desc.name = desc_name;
|
||||
|
||||
std::vector<uint32_t> interfaces;
|
||||
for (size_t j = 3; j < inst->operands().size(); ++j)
|
||||
@@ -303,7 +304,7 @@ spv_result_t ValidateBinaryUsingContextAndValidationState(
|
||||
check_inst->words().data() + inst->operand(2).offset);
|
||||
const std::string check_name(check_str);
|
||||
|
||||
if (desc.name == check_name &&
|
||||
if (desc_name == check_name &&
|
||||
execution_model == check_execution_model) {
|
||||
return vstate->diag(SPV_ERROR_INVALID_DATA, inst)
|
||||
<< "2 Entry points cannot share the same name and "
|
||||
|
||||
Reference in New Issue
Block a user