[tint][spirv][bench] Disable derivative UA
The vegetable shaders violate UA.
Change-Id: Ie252e2ea828ffb1f3d1fced15daa89a968ebdde9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/157340
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/src/tint/cmd/bench/bench.cc b/src/tint/cmd/bench/bench.cc
index 6d7a964..9a05df4 100644
--- a/src/tint/cmd/bench/bench.cc
+++ b/src/tint/cmd/bench/bench.cc
@@ -144,7 +144,9 @@
auto spirv = ReadFile<uint32_t>(path);
if (spirv) {
- auto program = tint::spirv::reader::Read(spirv.Get(), {});
+ tint::spirv::reader::Options spirv_opts;
+ spirv_opts.allow_non_uniform_derivatives = true;
+ auto program = tint::spirv::reader::Read(spirv.Get(), spirv_opts);
if (!program.IsValid()) {
return Failure{program.Diagnostics()};
}