Skip to content

Commit 960de57

Browse files
authored
Merge branch 'dev' into query-commands
2 parents 88bccdf + eed5f4a commit 960de57

158 files changed

Lines changed: 11502 additions & 3233 deletions

File tree

Some content is hidden

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

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,6 @@ if (APPLE)
311311
${CMAKE_PREFIX_PATH})
312312
endif ()
313313

314-
if(ANDROID)
315-
add_link_options(-Wl,-z,max-page-size=16384)
316-
endif()
317-
318314
# GFXReconstruct provided find modules
319315
if (WIN32)
320316
find_package(Detours)

USAGE_android.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,8 @@ usage: gfxrecon.py replay [-h] [-p LOCAL_FILE] [--version] [--log-level LEVEL]
798798
[--serialize-render-passes]
799799
[--wait-before-frame MILLISECONDS]
800800
[--serialize-queue-submissions]
801+
[--replay-event-plugin-path PATH]
802+
[--replay-event-plugin-params PARAMS]
801803
[file]
802804
803805
Launch the replay tool.
@@ -1033,6 +1035,14 @@ options:
10331035
`vkQueueSubmit2` call by adding semaphores between
10341036
consecutive submits during replay.
10351037
(forwarded to replay tool)
1038+
--replay-event-plugin-path PATH
1039+
Path to a replay event plugin library. If specified, the
1040+
plugin will be loaded and used to process replay events.
1041+
(forwarded to replay tool)
1042+
--replay-event-plugin-params PARAMS
1043+
Parameters to forward to the replay event plugin. The format
1044+
of the parameters is determined by the plugin and is not
1045+
interpreted by the replay tool. (forwarded to replay tool)
10361046
```
10371047

10381048
The command will force-stop an active replay process before starting the replay

USAGE_desktop_Vulkan.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ gfxrecon-replay [-h | --help] [--version] [--cpu-mask <binary-mask>] [--
638638
[--idle-before-submit] [--serialize-render-passes]
639639
[--wait-before-frame MILLISECONDS]
640640
[--serialize-queue-submissions]
641+
[--replay-event-plugin-path <path>] [--replay-event-plugin-params <params>]
641642
642643
643644
Required arguments:
@@ -895,6 +896,14 @@ Optional arguments:
895896
Serialize submit entries within one `vkQueueSubmit` or
896897
`vkQueueSubmit2` call by adding semaphores between consecutive
897898
submits during replay.
899+
--replay-event-plugin-path <path>
900+
Path to a replay event plugin library. If specified, the
901+
plugin will be loaded and used to process replay events.
902+
(forwarded to replay tool)
903+
--replay-event-plugin-params <params>
904+
Parameters to forward to the replay event plugin. The format
905+
of the parameters is determined by the plugin and is not
906+
interpreted by the replay tool. (forwarded to replay tool)
898907
```
899908

900909
### Frame Warm-Up

android/framework/application-multi-win/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ target_link_libraries(gfxrecon_application_multiwin
3232
gfxrecon_graphics
3333
gfxrecon_format
3434
gfxrecon_util
35+
gfxrecon_replay_event_plugin_loader
3536
native_app_glue
3637
vulkan_registry
3738
platform_specific)

android/framework/application/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ target_link_libraries(gfxrecon_application
2727
gfxrecon_graphics
2828
gfxrecon_format
2929
gfxrecon_util
30+
gfxrecon_replay_event_plugin_loader
3031
native_app_glue
3132
vulkan_registry
3233
platform_specific)

android/framework/decode/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ target_sources(gfxrecon_decode
55
${GFXRECON_SOURCE_DIR}/framework/decode/annotation_handler.h
66
${GFXRECON_SOURCE_DIR}/framework/decode/api_decoder.h
77
${GFXRECON_SOURCE_DIR}/framework/decode/api_payload.h
8+
${GFXRECON_SOURCE_DIR}/framework/decode/async_processor.h
9+
${GFXRECON_SOURCE_DIR}/framework/decode/async_processor.cpp
810
${GFXRECON_SOURCE_DIR}/framework/decode/block_allocator.h
911
${GFXRECON_SOURCE_DIR}/framework/decode/block_allocator.cpp
1012
${GFXRECON_SOURCE_DIR}/framework/decode/block_buffer.h
@@ -37,6 +39,8 @@ target_sources(gfxrecon_decode
3739
${GFXRECON_SOURCE_DIR}/framework/decode/descriptor_update_template_decoder.cpp
3840
${GFXRECON_SOURCE_DIR}/framework/decode/file_processor.h
3941
${GFXRECON_SOURCE_DIR}/framework/decode/file_processor.cpp
42+
${GFXRECON_SOURCE_DIR}/framework/decode/file_processor_types.h
43+
${GFXRECON_SOURCE_DIR}/framework/decode/file_processor_visitors.h
4044
${GFXRECON_SOURCE_DIR}/framework/decode/preload_file_processor.h
4145
${GFXRECON_SOURCE_DIR}/framework/decode/preload_file_processor.cpp
4246
${GFXRECON_SOURCE_DIR}/framework/decode/file_transformer.h
@@ -196,6 +200,8 @@ target_sources(gfxrecon_decode
196200
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_pnext_struct_decoder.cpp
197201
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_replay_consumer.h
198202
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_replay_consumer.cpp
203+
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_replay_frame_loop_consumer_base.h
204+
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_replay_frame_loop_consumer_base.cpp
199205
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_replay_dump_resources.h
200206
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_replay_dump_resources.cpp
201207
${GFXRECON_SOURCE_DIR}/framework/generated/generated_vulkan_struct_decoders_forward.h
@@ -225,6 +231,7 @@ target_link_libraries(gfxrecon_decode
225231
gfxrecon_graphics
226232
gfxrecon_format
227233
gfxrecon_util
234+
gfxrecon_replay_event_plugin_loader
228235
vulkan_registry
229236
vulkan_memory_allocator
230237
platform_specific

android/framework/util/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ target_sources(gfxrecon_util
7474
${GFXRECON_SOURCE_DIR}/framework/util/strings.cpp
7575
${GFXRECON_SOURCE_DIR}/framework/util/thread_data.h
7676
${GFXRECON_SOURCE_DIR}/framework/util/thread_data.cpp
77+
${GFXRECON_SOURCE_DIR}/framework/util/thread_safe_queue.h
7778
${GFXRECON_SOURCE_DIR}/framework/util/type_traits_extras.h
7879
${GFXRECON_SOURCE_DIR}/framework/util/to_string.h
7980
${GFXRECON_SOURCE_DIR}/framework/util/to_string.cpp

android/scripts/gfxrecon.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def CreateReplayParser():
153153
parser.add_argument('--frame-warm-up-load', metavar='LOAD', default=0, help='Specify workload scale factor for a compute dispatch warm-up pass run before each frame replay. Default is 0 (disabled). (forwarded to replay tool)')
154154
parser.add_argument('--wait-before-frame', metavar='MILLISECONDS', default=0, help='Wait for the specified amount of milliseconds before starting to replay each frame. Default is 0 (no wait). (forwarded to replay tool)')
155155
parser.add_argument('--serialize-queue-submissions', action='store_true', default=False, help='Serialize submit entries within one vkQueueSubmit or vkQueueSubmit2 call by adding semaphores between consecutive submits during replay. (forwarded to replay tool)')
156+
parser.add_argument('--replay-event-plugin-path', metavar='PATH', help='Path to a replay event plugin library. If specified, the plugin will be loaded and used to process replay events. (forwarded to replay tool)')
157+
parser.add_argument('--replay-event-plugin-params', metavar='PARAMS', help='Parameters to forward to the replay event plugin. The format of the parameters is determined by the plugin and is not interpreted by the replay tool. (forwarded to replay tool)')
156158

157159
return parser
158160

@@ -365,6 +367,14 @@ def MakeExtrasString(args):
365367
arg_list.append('--wait-before-frame')
366368
arg_list.append('{}'.format(args.wait_before_frame))
367369

370+
if args.replay_event_plugin_path:
371+
arg_list.append('--replay-event-plugin-path')
372+
arg_list.append('{}'.format(args.replay_event_plugin_path))
373+
374+
if args.replay_event_plugin_params:
375+
arg_list.append('--replay-event-plugin-params')
376+
arg_list.append('{}'.format(args.replay_event_plugin_params))
377+
368378
if args.file:
369379
arg_list.append(args.file)
370380
elif not args.version:

android/test/test_apps/common/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ target_include_directories(gfxrecon-testapp-base
3636
set(FRAMEWORK_DIR ${GFXRECON_ANDROID_DIR}/framework)
3737
set(GFXRECON_ANDROID_TEST_APPS_DIR ${CMAKE_SOURCE_DIR}/..)
3838
add_subdirectory(${FRAMEWORK_DIR}/util ${FRAMEWORK_DIR}/util/build/${ANDROID_ABI})
39+
add_subdirectory(${GFXRECON_SOURCE_DIR}/framework/plugin ${FRAMEWORK_DIR}/plugin/build/${ANDROID_ABI})
3940
add_subdirectory(${FRAMEWORK_DIR}/decode ${FRAMEWORK_DIR}/decode/build/${ANDROID_ABI})
4041
add_subdirectory(${FRAMEWORK_DIR}/graphics ${FRAMEWORK_DIR}/graphics/build/${ANDROID_ABI})
4142
add_subdirectory(${FRAMEWORK_DIR}/format ${FRAMEWORK_DIR}/format/build/${ANDROID_ABI})

android/tools/multi-win-replay/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ find_package(nlohmann_json REQUIRED CONFIG PATHS "${nlohmann_json_DIR}" NO_DEFAU
1414

1515
include(../../framework/cmake-config/PlatformConfig.cmake)
1616
add_subdirectory(../../framework/util ${PROJECT_SOURCE_DIR}/../../framework/util/build/tools/replay/${ANDROID_ABI})
17+
add_subdirectory(../../../framework/plugin ${PROJECT_SOURCE_DIR}/../../framework/plugin/build/tools/replay/${ANDROID_ABI})
1718
add_subdirectory(../../framework/graphics ${PROJECT_SOURCE_DIR}/../../framework/graphics/build/tools/replay/${ANDROID_ABI})
1819
add_subdirectory(../../framework/format ${PROJECT_SOURCE_DIR}/../../framework/format/build/tools/replay/${ANDROID_ABI})
1920
add_subdirectory(../../framework/decode ${PROJECT_SOURCE_DIR}/../../framework/decode/build/tools/replay/${ANDROID_ABI})

0 commit comments

Comments
 (0)