From 43d584940829b0dbd7f809a222af954bd446961a Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Thu, 7 Oct 2021 03:40:51 +0000 Subject: [PATCH] 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 Commit-Queue: Corentin Wallez Reviewed-by: Corentin Wallez --- src/dawn_native/d3d12/ShaderModuleD3D12.cpp | 2 +- src/dawn_native/metal/ShaderModuleMTL.mm | 2 +- src/dawn_native/vulkan/ShaderModuleVk.cpp | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp index 5332623073..e7395cf77a 100644 --- a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp +++ b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp @@ -380,7 +380,7 @@ namespace dawn_native { namespace d3d12 { tint::transform::DataMap transformInputs; if (request.isRobustnessEnabled) { - transformManager.Add(); + transformManager.Add(); } transformManager.Add(); diff --git a/src/dawn_native/metal/ShaderModuleMTL.mm b/src/dawn_native/metal/ShaderModuleMTL.mm index 1ba4ee695c..c994ceef90 100644 --- a/src/dawn_native/metal/ShaderModuleMTL.mm +++ b/src/dawn_native/metal/ShaderModuleMTL.mm @@ -118,7 +118,7 @@ namespace dawn_native { namespace metal { } } if (GetDevice()->IsRobustnessEnabled()) { - transformManager.Add(); + transformManager.Add(); } transformManager.Add(); transformManager.Add(); diff --git a/src/dawn_native/vulkan/ShaderModuleVk.cpp b/src/dawn_native/vulkan/ShaderModuleVk.cpp index cbc004b596..9cad708689 100644 --- a/src/dawn_native/vulkan/ShaderModuleVk.cpp +++ b/src/dawn_native/vulkan/ShaderModuleVk.cpp @@ -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(std::move(program)); }