Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d995459b authored by I-Jui (Ray) Sung's avatar I-Jui (Ray) Sung Committed by android-build-merger
Browse files

Merge "Fix VTS failures on tests with optional inputs" into oc-mr1-dev

am: 0c7d0a9d

Change-Id: Id4e74c6d2f673cfbe2f913f7a2494c0970f33e6d
parents 1fcc481f 0c7d0a9d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -131,14 +131,17 @@ void Execute(const sp<IDevice>& device, std::function<Model(void)> create_model,
                .location = {.poolIndex = INPUT, .offset = 0, .length = static_cast<uint32_t>(s)},
                .dimensions = {},
            };
            inputs_info[index] = arg;
            RequestArgument arg_empty = {
                .hasNoValue = true,
            };
            inputs_info[index] = s ? arg : arg_empty;
            inputSize += s;
        });
        // Compute offset for inputs 1 and so on
        {
            size_t offset = 0;
            for (auto& i : inputs_info) {
                i.location.offset = offset;
                if (!i.hasNoValue) i.location.offset = offset;
                offset += i.location.length;
            }
        }