[PATCH weston 5/6] tests, clients: add Presentation feedback flags

Pekka Paalanen ppaalanen at gmail.com
Wed Dec 17 06:20:42 PST 2014


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Decode the new feedback flags.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 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 a212eec..4cbd093 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 59cca8e..421eddc 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;
 
-- 
2.0.4



More information about the wayland-devel mailing list