mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
diag: Add System enumerator to all diagnostics
Describes what Tint system raised the diagnostic. Use this information in the fuzzers to distinguish between expected and unexpected failure cases in the Transform fuzzer tests. Fixed: chromium:1206407 Fixed: chromium:1207154 Change-Id: I3b807acafe384a2fc363d2a4165a29693450b3cf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55254 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
261643bb9f
commit
ffd28e2e1a
@@ -47,7 +47,7 @@ namespace {
|
||||
|
||||
void AppendResourceBindings(std::vector<ResourceBinding>* dest,
|
||||
const std::vector<ResourceBinding>& orig) {
|
||||
TINT_ASSERT(dest);
|
||||
TINT_ASSERT(Inspector, dest);
|
||||
if (!dest) {
|
||||
return;
|
||||
}
|
||||
@@ -84,7 +84,7 @@ std::vector<EntryPoint> Inspector::GetEntryPoints() {
|
||||
if (wgsize[0].overridable_const || wgsize[1].overridable_const ||
|
||||
wgsize[2].overridable_const) {
|
||||
// TODO(crbug.com/tint/713): Handle overridable constants.
|
||||
TINT_ASSERT(false);
|
||||
TINT_ASSERT(Inspector, false);
|
||||
}
|
||||
|
||||
for (auto* param : sem->Parameters()) {
|
||||
@@ -528,7 +528,7 @@ void Inspector::AddEntryPointInOutVariables(
|
||||
}
|
||||
|
||||
auto* location = ast::GetDecoration<ast::LocationDecoration>(decorations);
|
||||
TINT_ASSERT(location != nullptr);
|
||||
TINT_ASSERT(Inspector, location != nullptr);
|
||||
stage_variable.has_location_decoration = true;
|
||||
stage_variable.location_decoration = location->value();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user