Skip to content

Commit 0fee7e7

Browse files
committed
Set BinPackParameters: false
1 parent 8f7fcb0 commit 0fee7e7

File tree

326 files changed

+8114
-12465
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+8114
-12465
lines changed

.clang-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ AlwaysBreakAfterReturnType: None
1919
AlwaysBreakBeforeMultilineStrings: false
2020
AlwaysBreakTemplateDeclarations: true
2121
BinPackArguments: true
22-
BinPackParameters: true
22+
BinPackParameters: false
2323
BraceWrapping:
2424
AfterCaseLabel: true
2525
AfterClass: true
@@ -45,7 +45,7 @@ BreakConstructorInitializersBeforeComma: false
4545
BreakConstructorInitializers: AfterColon
4646
BreakAfterJavaFieldAnnotations: false
4747
BreakStringLiterals: true
48-
ColumnLimit: 0
48+
ColumnLimit: 160
4949
CommentPragmas: '^ IWYU pragma:'
5050
CompactNamespaces: false
5151
ConstructorInitializerAllOnOneLineOrOnePerLine: true

app/apps/apps.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2020-2024, Arm Limited and Contributors
1+
/* Copyright (c) 2020-2026, Arm Limited and Contributors
22
*
33
* SPDX-License-Identifier: Apache-2.0
44
*
@@ -44,8 +44,7 @@ using CreateFunc = std::function<std::unique_ptr<vkb::Application>()>;
4444
class AppInfo
4545
{
4646
public:
47-
AppInfo(const std::string &id, const CreateFunc &create) :
48-
id(id), create(create)
47+
AppInfo(const std::string &id, const CreateFunc &create) : id(id), create(create)
4948
{}
5049

5150
std::string id;
@@ -59,7 +58,13 @@ class AppInfo
5958
class SampleInfo : public AppInfo
6059
{
6160
public:
62-
SampleInfo(const std::string &id, const CreateFunc &create, const std::string &category, const std::string &author, const std::string &name, const std::string &description, const std::vector<std::string> &tags = {}) :
61+
SampleInfo(const std::string &id,
62+
const CreateFunc &create,
63+
const std::string &category,
64+
const std::string &author,
65+
const std::string &name,
66+
const std::string &description,
67+
const std::vector<std::string> &tags = {}) :
6368
AppInfo(id, create), category(category), author(author), name(name), description(description), tags(tags)
6469
{}
6570

app/plugins/batch_mode/batch_mode.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2020-2025, Arm Limited and Contributors
1+
/* Copyright (c) 2020-2026, Arm Limited and Contributors
22
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
@@ -34,8 +34,7 @@ BatchMode::BatchMode() :
3434
{"skip", "Skip a sample by id"},
3535
{"tag", "Filter samples by tags"},
3636
{"wrap-to-start", "Once all configurations have run wrap to the start"}})
37-
{
38-
}
37+
{}
3938

4039
bool BatchMode::handle_command(std::deque<std::string> &arguments) const
4140
{
@@ -143,8 +142,8 @@ void BatchMode::trigger_command()
143142
std::vector<apps::AppInfo *> filtered_list;
144143
filtered_list.reserve(sample_list.size() - skips.size());
145144

146-
std::copy_if(
147-
sample_list.begin(), sample_list.end(), std::back_inserter(filtered_list), [&](const apps::AppInfo *app) { return !skips.count(app->id); });
145+
std::copy_if(sample_list.begin(), sample_list.end(), std::back_inserter(filtered_list),
146+
[&](const apps::AppInfo *app) { return !skips.count(app->id); });
148147

149148
if (filtered_list.size() != sample_list.size())
150149
{

app/plugins/batch_mode/batch_mode.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2020-2025, Arm Limited and Contributors
1+
/* Copyright (c) 2020-2026, Arm Limited and Contributors
22
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
@@ -34,7 +34,8 @@ using BatchModeTags = vkb::PluginBase<vkb::tags::Entrypoint, vkb::tags::FullCont
3434
/**
3535
* @brief Batch Mode
3636
*
37-
* Run a subset of samples. The next sample in the set will start after the current sample being executed has finished. Using --wrap-to-start will start again from the first sample after the last sample is executed.
37+
* Run a subset of samples. The next sample in the set will start after the current sample being executed has finished. Using --wrap-to-start will start again
38+
* from the first sample after the last sample is executed.
3839
*
3940
* Usage: vulkan_samples batch --duration 3 --category performance --tag arm
4041
*

app/plugins/benchmark_mode/benchmark_mode.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2020-2025, Arm Limited and Contributors
1+
/* Copyright (c) 2020-2026, Arm Limited and Contributors
22
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
@@ -28,8 +28,7 @@ BenchmarkMode::BenchmarkMode() :
2828
{vkb::Hook::OnUpdate, vkb::Hook::OnAppStart, vkb::Hook::OnAppClose},
2929
{},
3030
{{"benchmark", "Enable benchmark mode"}})
31-
{
32-
}
31+
{}
3332

3433
bool BenchmarkMode::handle_option(std::deque<std::string> &arguments)
3534
{

app/plugins/benchmark_mode/benchmark_mode.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2020-2025, Arm Limited and Contributors
1+
/* Copyright (c) 2020-2026, Arm Limited and Contributors
22
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
@@ -29,7 +29,8 @@ using BenchmarkModeTags = vkb::PluginBase<BenchmarkMode, vkb::tags::Passive>;
2929
/**
3030
* @brief Benchmark Mode
3131
*
32-
* When enabled frame time statistics of a samples run will be printed to the console when an application closes. The simulation frame time (delta time) is also locked to 60FPS so that statistics can be compared more accurately across different devices.
32+
* When enabled frame time statistics of a samples run will be printed to the console when an application closes. The simulation frame time (delta time) is also
33+
* locked to 60FPS so that statistics can be compared more accurately across different devices.
3334
*
3435
* Usage: vulkan_samples sample afbc --benchmark
3536
*

app/plugins/data_path/data_path.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2022-2025, Arm Limited and Contributors
1+
/* Copyright (c) 2022-2026, Arm Limited and Contributors
22
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
@@ -28,8 +28,7 @@ DataPath::DataPath() :
2828
{vkb::Hook::OnAppStart},
2929
{},
3030
{{"data-path", "Folder containing data files"}})
31-
{
32-
}
31+
{}
3332

3433
bool DataPath::handle_option(std::deque<std::string> &arguments)
3534
{

app/plugins/file_logger/file_logger.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* Copyright (c) 2021-2025, Arm Limited and Contributors
2-
* Copyright (c) 2021-2025, Sascha Willems
1+
/* Copyright (c) 2021-2026, Arm Limited and Contributors
2+
* Copyright (c) 2021-2026, Sascha Willems
33
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
44
*
55
* SPDX-License-Identifier: Apache-2.0
@@ -27,10 +27,8 @@
2727

2828
namespace plugins
2929
{
30-
FileLogger::FileLogger() :
31-
FileLoggerTags("File Logger", "Enable log output to a file.", {}, {}, {{"log-file", "Write log messages to the given file name"}})
32-
{
33-
}
30+
FileLogger::FileLogger() : FileLoggerTags("File Logger", "Enable log output to a file.", {}, {}, {{"log-file", "Write log messages to the given file name"}})
31+
{}
3432

3533
bool FileLogger::handle_option(std::deque<std::string> &arguments)
3634
{

app/plugins/file_logger/file_logger.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* Copyright (c) 2020-2025, Arm Limited and Contributors
2-
* Copyright (c) 2021-2025, Sascha Willems
1+
/* Copyright (c) 2020-2026, Arm Limited and Contributors
2+
* Copyright (c) 2021-2026, Sascha Willems
33
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
44
*
55
* SPDX-License-Identifier: Apache-2.0
@@ -27,11 +27,11 @@ using FileLoggerTags = vkb::PluginBase<vkb::tags::Passive>;
2727

2828
/**
2929
* @brief File Logger
30-
*
30+
*
3131
* Enables writing log messages to a file
32-
*
32+
*
3333
* Usage: vulkan_sample --log-file filename.txt
34-
*
34+
*
3535
*/
3636
class FileLogger : public FileLoggerTags
3737
{

app/plugins/force_close/force_close.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2020-2025, Arm Limited and Contributors
1+
/* Copyright (c) 2020-2026, Arm Limited and Contributors
22
* Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
@@ -28,8 +28,7 @@ ForceClose::ForceClose() :
2828
{},
2929
{},
3030
{{"force-close", "Force the close of the application if halted before exiting"}})
31-
{
32-
}
31+
{}
3332

3433
bool ForceClose::handle_option(std::deque<std::string> &arguments)
3534
{

0 commit comments

Comments
 (0)