diff --git a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp index 33d85a5bda..1392b2fd71 100644 --- a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp +++ b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp @@ -245,7 +245,9 @@ namespace dawn_native { namespace d3d12 { tint::transform::Manager transformManager; tint::transform::DataMap transformInputs; - transformManager.Add(); + if (GetDevice()->IsRobustnessEnabled()) { + transformManager.Add(); + } if (stage == SingleShaderStage::Vertex) { transformManager.Add(); transformInputs.Add( diff --git a/src/dawn_native/metal/ShaderModuleMTL.mm b/src/dawn_native/metal/ShaderModuleMTL.mm index f88dcc7021..22c15ee72b 100644 --- a/src/dawn_native/metal/ShaderModuleMTL.mm +++ b/src/dawn_native/metal/ShaderModuleMTL.mm @@ -85,7 +85,9 @@ namespace dawn_native { namespace metal { // this MSL buffer index. } } - transformManager.Add(); + if (GetDevice()->IsRobustnessEnabled()) { + transformManager.Add(); + } transformManager.Add(); transformManager.Add(); diff --git a/src/dawn_native/vulkan/ShaderModuleVk.cpp b/src/dawn_native/vulkan/ShaderModuleVk.cpp index 9f4da4882f..2f181d8f01 100644 --- a/src/dawn_native/vulkan/ShaderModuleVk.cpp +++ b/src/dawn_native/vulkan/ShaderModuleVk.cpp @@ -55,7 +55,9 @@ namespace dawn_native { namespace vulkan { errorStream << "Tint SPIR-V writer failure:" << std::endl; tint::transform::Manager transformManager; - transformManager.Add(); + if (GetDevice()->IsRobustnessEnabled()) { + transformManager.Add(); + } transformManager.Add(); transformManager.Add();