summaryrefslogtreecommitdiffstats
path: root/src/vulkan/overlay-layer/overlay_params.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2019-03-02 17:25:22 +0000
committerLionel Landwerlin <[email protected]>2019-05-02 17:02:07 +0100
commit7ba50d80408080a94d605673efb5b870520dea87 (patch)
treeb4b36e7133e503a03d100af5c7f7b37e5b072222 /src/vulkan/overlay-layer/overlay_params.c
parentea7a6fa98055ada285894ddea106d8292db55393 (diff)
vulkan/overlay: add no display option
In case you're just interested in data being record to the output file. Signed-off-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/vulkan/overlay-layer/overlay_params.c')
-rw-r--r--src/vulkan/overlay-layer/overlay_params.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vulkan/overlay-layer/overlay_params.c b/src/vulkan/overlay-layer/overlay_params.c
index 51f85309574..16cf5b8dee0 100644
--- a/src/vulkan/overlay-layer/overlay_params.c
+++ b/src/vulkan/overlay-layer/overlay_params.c
@@ -54,6 +54,12 @@ parse_fps_sampling_period(const char *str)
}
static bool
+parse_no_display(const char *str)
+{
+ return strtol(str, NULL, 0) != 0;
+}
+
+static bool
parse_help(const char *str)
{
fprintf(stderr, "Layer params using VK_LAYER_MESA_OVERLAY_CONFIG=\n");
@@ -65,6 +71,7 @@ parse_help(const char *str)
#undef OVERLAY_PARAM_CUSTOM
fprintf(stderr, "\tposition=top-left|top-right|bottom-left|bottom-right\n");
fprintf(stderr, "\tfps_sampling_period=number-of-milliseconds\n");
+ fprintf(stderr, "\tno_display=0|1\n");
return true;
}