[fuzzers] Substitute all override variables

The transform was only being run if there was at least one override
without an initializer. We actually need to run the transform if there
are any overrides at all, even if they all have initializers.

Bug: chromium:1447418
Change-Id: Ia300ea4326b675c1fd84dd7709112fb69128963d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/134203
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
James Price 2023-05-24 16:55:30 +00:00 committed by Dawn LUCI CQ
parent c9c19c49f9
commit c1fd6316de
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ int CommonFuzzer::Run(const uint8_t* data, size_t size) {
cfg.map.insert({override_id, 0.0});
}
if (!cfg.map.empty()) {
if (!default_values.empty()) {
transform::DataMap override_data;
override_data.Add<ast::transform::SubstituteOverride::Config>(cfg);