validation: add an internal decoration to allow atomic function parameters

Bug: tint: 927
Change-Id: Ia6f31bdbfa51c92b742faa89089649865bb45ad5
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56020
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
Sarah
2021-06-28 14:05:25 +00:00
committed by Sarah Mashayekhi
parent 3cbbeaf1db
commit ac5dbd2d0f
5 changed files with 167 additions and 143 deletions

View File

@@ -38,6 +38,8 @@ std::string DisableValidationDecoration::InternalName() const {
return "disable_validation__ignore_storage_class";
case DisabledValidation::kEntryPointParameter:
return "disable_validation__entry_point_parameter";
case DisabledValidation::kIgnoreAtomicFunctionParameter:
return "disable_validation__ignore_atomic_function_parameter";
}
return "<invalid>";
}

View File

@@ -37,6 +37,9 @@ enum class DisabledValidation {
/// When applied to an entry-point function parameter, the validator will not
/// check for entry IO decorations.
kEntryPointParameter,
/// When applied to a function parameter, the validator will not
/// check if parameter type is atomic-free
kIgnoreAtomicFunctionParameter,
};
/// An internal decoration used to tell the validator to ignore specific