[Libva] [PATCH] vainfo: Add option --display

Xiang, Haihao haihao.xiang at intel.com
Thu Nov 5 22:22:33 PST 2015


User can use 'vainfo --display help' to get available display
list and 'vainfo --display <display name>' to show available
profile/entroypoint pairs with specified name

Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
---
 test/vainfo/vainfo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/vainfo/vainfo.c b/test/vainfo/vainfo.c
index eb7473b..6ad3e9b 100644
--- a/test/vainfo/vainfo.c
+++ b/test/vainfo/vainfo.c
@@ -105,6 +105,8 @@ int main(int argc, const char* argv[])
   else
       name = argv[0];
 
+  va_init_display_args(&argc, (char **)argv);
+
   va_dpy = va_open_display();
   if (NULL == va_dpy)
   {
-- 
1.9.1



More information about the Libva mailing list