Commit 077cd858 by Omar El Sheikh Committed by Commit Bot

Vulkan: Introduce Command Buffer Perf Test

Implemented command buffer performance test based on LunarG samples. Includes a lot of utility functions and should build/run on Linux, Android Bug: angleproject:2758 Change-Id: I8606802fb3e8e0621856860c45ef50ba836c26f8 Reviewed-on: https://chromium-review.googlesource.com/1162119 Commit-Queue: Omar El Sheikh <theoking@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 04c084dd
...@@ -267,13 +267,20 @@ if (is_win || is_linux || is_android || is_mac) { ...@@ -267,13 +267,20 @@ if (is_win || is_linux || is_android || is_mac) {
"../../util", "../../util",
] ]
sources = rebase_path(perftests_gypi.angle_perf_tests_sources, ".", "../..")
deps = googletest_deps + [
angle_root + ":angle_util_static",
angle_root + ":libANGLE",
angle_root + ":libEGL_static",
angle_root + ":libGLESv2_static",
]
if (is_android) { if (is_android) {
use_native_activity = true use_native_activity = true
configs -= [ "//build/config/android:hide_all_but_jni" ] configs -= [ "//build/config/android:hide_all_but_jni" ]
} }
sources = rebase_path(perftests_gypi.angle_perf_tests_sources, ".", "../..")
if (is_win) { if (is_win) {
sources += sources +=
rebase_path(perftests_gypi.angle_perf_tests_win_sources, ".", "../..") rebase_path(perftests_gypi.angle_perf_tests_win_sources, ".", "../..")
...@@ -283,6 +290,14 @@ if (is_win || is_linux || is_android || is_mac) { ...@@ -283,6 +290,14 @@ if (is_win || is_linux || is_android || is_mac) {
sources += rebase_path(perftests_gypi.angle_perf_tests_vulkan_sources, sources += rebase_path(perftests_gypi.angle_perf_tests_vulkan_sources,
".", ".",
"../..") "../..")
if (is_android || is_linux) {
sources += rebase_path(
perftests_gypi.angle_perf_tests_vulkan_command_buffer_sources,
".",
"../..")
}
deps += [ "$angle_root/third_party/glslang:glslang" ]
public_configs = [ "$angle_root/third_party/glslang:glslang_config" ]
} }
if (build_with_chromium) { if (build_with_chromium) {
...@@ -295,13 +310,6 @@ if (is_win || is_linux || is_android || is_mac) { ...@@ -295,13 +310,6 @@ if (is_win || is_linux || is_android || is_mac) {
angle_root + ":internal_config", angle_root + ":internal_config",
angle_root + ":libANGLE_config", angle_root + ":libANGLE_config",
] ]
deps = googletest_deps + [
angle_root + ":angle_util_static",
angle_root + ":libANGLE",
angle_root + ":libEGL_static",
angle_root + ":libGLESv2_static",
]
} }
} }
......
...@@ -59,6 +59,13 @@ ...@@ -59,6 +59,13 @@
[ [
'<(angle_path)/src/tests/perf_tests/VulkanPipelineCachePerf.cpp', '<(angle_path)/src/tests/perf_tests/VulkanPipelineCachePerf.cpp',
], ],
# Currently Vulkan Command Buffer Perf Tests compile on Android/Linux
'angle_perf_tests_vulkan_command_buffer_sources':
[
'<(angle_path)/src/tests/perf_tests/VulkanCommandBufferPerf.cpp',
'<(angle_path)/src/tests/test_utils/third_party/vulkan_command_buffer_utils.cpp',
'<(angle_path)/src/tests/test_utils/third_party/vulkan_command_buffer_utils.h'
],
}, },
# Everything below (except WinRT-related config) must be also maintained for GN. # Everything below (except WinRT-related config) must be also maintained for GN.
# If you change anything below, also update angle/src/tests/BUILD.gn. # If you change anything below, also update angle/src/tests/BUILD.gn.
......
Name: vulkan_command_buffer_utils.h, vulkan_command_buffer_utils.cpp
URL: https://github.com/LunarG/VulkanSamples/tree/master/API-Samples/utils
License: Apache License, Version 2.0
License File: http://www.apache.org/licenses/LICENSE-2.0
Description:
Utility functions used to implement Vulkan samples and performance tests.
Modified and reorganized to add support for running applications using
various command buffer implementations.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment