Replace usages of BoundArrayAccessors w/ Robustness

BoundArrayAccessors is an alias to Robustness, and removing it from
Tint will make code easier to read and search.

BUG=tint:1212

Change-Id: I31aabfcef396290178eff6ea8db7e5bb70b031ca
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/66061
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Ryan Harrison 2021-10-07 03:40:51 +00:00 committed by Dawn LUCI CQ
parent 080c5cae3e
commit 43d5849408
3 changed files with 5 additions and 6 deletions

View File

@ -380,7 +380,7 @@ namespace dawn_native { namespace d3d12 {
tint::transform::DataMap transformInputs;
if (request.isRobustnessEnabled) {
transformManager.Add<tint::transform::BoundArrayAccessors>();
transformManager.Add<tint::transform::Robustness>();
}
transformManager.Add<tint::transform::BindingRemapper>();

View File

@ -118,7 +118,7 @@ namespace dawn_native { namespace metal {
}
}
if (GetDevice()->IsRobustnessEnabled()) {
transformManager.Add<tint::transform::BoundArrayAccessors>();
transformManager.Add<tint::transform::Robustness>();
}
transformManager.Add<tint::transform::BindingRemapper>();
transformManager.Add<tint::transform::Renamer>();

View File

@ -84,13 +84,12 @@ namespace dawn_native { namespace vulkan {
if (GetDevice()->IsRobustnessEnabled()) {
ScopedTintICEHandler scopedICEHandler(GetDevice());
tint::transform::BoundArrayAccessors boundArrayAccessors;
tint::transform::Robustness robustness;
tint::transform::DataMap transformInputs;
tint::Program program;
DAWN_TRY_ASSIGN(program,
RunTransforms(&boundArrayAccessors, parseResult->tintProgram.get(),
transformInputs, nullptr, nullptr));
DAWN_TRY_ASSIGN(program, RunTransforms(&robustness, parseResult->tintProgram.get(),
transformInputs, nullptr, nullptr));
// Rather than use a new ParseResult object, we just reuse the original parseResult
parseResult->tintProgram = std::make_unique<tint::Program>(std::move(program));
}