From 95034f6528d4c8ff4c5048d523165b8ceca064bd Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Fri, 5 Mar 2021 01:51:28 +0000 Subject: [PATCH] Enable the BoundArrayAccessors tint transform Change-Id: I44cbfbeb09dadcf22ae77a85cef0aff3bc79b16b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/42860 Reviewed-by: Corentin Wallez Commit-Queue: Ben Clayton --- src/dawn_native/ShaderModule.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/dawn_native/ShaderModule.cpp b/src/dawn_native/ShaderModule.cpp index 1ae9379884..96b97d9d90 100644 --- a/src/dawn_native/ShaderModule.cpp +++ b/src/dawn_native/ShaderModule.cpp @@ -1102,9 +1102,7 @@ namespace dawn_native { transformManager.append(std::make_unique()); transformManager.append(std::make_unique()); if (GetDevice()->IsRobustnessEnabled()) { - // TODO(enga): Run the Tint BoundArrayAccessors transform instead of the SPIRV Tools - // one, but it appears to crash after running VertexPulling. - // transformManager.append(std::make_unique()); + transformManager.append(std::make_unique()); } tint::Program program; @@ -1117,9 +1115,6 @@ namespace dawn_native { } std::vector spirv = generator.result(); - if (GetDevice()->IsRobustnessEnabled()) { - DAWN_TRY_ASSIGN(spirv, RunRobustBufferAccessPass(spirv)); - } DAWN_TRY(ValidateSpirv(spirv.data(), spirv.size())); return std::move(spirv); }