commit | 8a594c537587331be4a3c48d9d53717a5cccf461 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Tue May 07 17:59:54 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 07 17:59:54 2024 +0000 |
tree | 894857853d724cb2e982d54a9bf8d9956dde6867 | |
parent | 15152da3764a032d31ac2289878f897a1f6dc231 [diff] |
[tint][ir][fuzz] Fix ClampFragDepth fuzzer `offsets->min` must be less than `offsets->max`, otherwise an error is raised. Bug: 338873333 Change-Id: I67cdeaf5daa4d0e4e22084f5f44f1bdc541bec4b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/187400 Commit-Queue: James Price <jrprice@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
diff --git a/src/tint/lang/wgsl/ast/transform/clamp_frag_depth_fuzz.cc b/src/tint/lang/wgsl/ast/transform/clamp_frag_depth_fuzz.cc index b357f1b..2854240 100644 --- a/src/tint/lang/wgsl/ast/transform/clamp_frag_depth_fuzz.cc +++ b/src/tint/lang/wgsl/ast/transform/clamp_frag_depth_fuzz.cc
@@ -32,8 +32,8 @@ namespace { bool CanRun(const ClampFragDepth::Config& config) { - if (config.offsets && config.offsets->min == config.offsets->max) { - return false; // member offset collision + if (config.offsets && config.offsets->min >= config.offsets->max) { + return false; // member offset collision / non-ascending } return true; }