From 63495864d35aeb790c3bb175d0e46b3d75bfe4f6 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 17 Dec 2014 16:20:42 +0200 Subject: [PATCH] tests, clients: add Presentation feedback flags Decode the new feedback flags. Signed-off-by: Pekka Paalanen Reviewed-by: Mario Kleiner Tested-by: Mario Kleiner --- clients/presentation-shm.c | 5 ++++- tests/presentation-test.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/clients/presentation-shm.c b/clients/presentation-shm.c index a212eec1..4cbd0934 100644 --- a/clients/presentation-shm.c +++ b/clients/presentation-shm.c @@ -344,7 +344,10 @@ pflags_to_str(uint32_t flags, char *str, unsigned len) uint32_t flag; char sym; } desc[] = { - { 1, '1' }, /* dummy placeholder */ + { PRESENTATION_FEEDBACK_KIND_VSYNC, 's' }, + { PRESENTATION_FEEDBACK_KIND_HW_CLOCK, 'c' }, + { PRESENTATION_FEEDBACK_KIND_HW_COMPLETION, 'e' }, + { PRESENTATION_FEEDBACK_KIND_ZERO_COPY, 'z' }, }; unsigned i; diff --git a/tests/presentation-test.c b/tests/presentation-test.c index 59cca8e1..421eddc1 100644 --- a/tests/presentation-test.c +++ b/tests/presentation-test.c @@ -165,7 +165,10 @@ pflags_to_str(uint32_t flags, char *str, unsigned len) uint32_t flag; char sym; } desc[] = { - { 1, '1' }, /* dummy placeholder */ + { PRESENTATION_FEEDBACK_KIND_VSYNC, 's' }, + { PRESENTATION_FEEDBACK_KIND_HW_CLOCK, 'c' }, + { PRESENTATION_FEEDBACK_KIND_HW_COMPLETION, 'e' }, + { PRESENTATION_FEEDBACK_KIND_ZERO_COPY, 'z' }, }; unsigned i;