From e1604b9a6498588a92576dd8ab14b1ea77248852 Mon Sep 17 00:00:00 2001 From: Idan Raiter Date: Thu, 13 Aug 2020 20:53:59 +0000 Subject: [PATCH] Enable robust buffer access pass if robustness on Turns on SPVC buffer access pass if robustness is also enabled. Bug: dawn:480 Change-Id: Ib4d74e177f4f65139219f3ce8662566370f4a108 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/26741 Reviewed-by: Corentin Wallez Reviewed-by: Austin Eng Commit-Queue: Austin Eng --- src/dawn_native/ShaderModule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dawn_native/ShaderModule.cpp b/src/dawn_native/ShaderModule.cpp index fbbe114e8d..40ed3723db 100644 --- a/src/dawn_native/ShaderModule.cpp +++ b/src/dawn_native/ShaderModule.cpp @@ -1097,6 +1097,7 @@ namespace dawn_native { shaderc_spvc::CompileOptions ShaderModuleBase::GetCompileOptions() const { shaderc_spvc::CompileOptions options; options.SetValidate(GetDevice()->IsValidationEnabled()); + options.SetRobustBufferAccessPass(GetDevice()->IsRobustnessEnabled()); return options; }