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; tint::transform::DataMap transformInputs;
if (request.isRobustnessEnabled) { if (request.isRobustnessEnabled) {
transformManager.Add<tint::transform::BoundArrayAccessors>(); transformManager.Add<tint::transform::Robustness>();
} }
transformManager.Add<tint::transform::BindingRemapper>(); transformManager.Add<tint::transform::BindingRemapper>();

View File

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

View File

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