summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2015-11-06 14:22:33 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-11-18 13:30:54 +0800
commit6a5428e73bd47af0dacc04b1792bca1e9e2e8f54 (patch)
treea0c37b5e0d3973f9fbdc5ea4b4382709d1e64b3c
parentd3b24b76dfde4daef9d463743971c7522a307092 (diff)
downloadlibva-6a5428e73bd47af0dacc04b1792bca1e9e2e8f54.tar.gz
vainfo: Add option --display
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@intel.com>
-rw-r--r--test/vainfo/vainfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/vainfo/vainfo.c b/test/vainfo/vainfo.c
index 4ccfe60..0605d8c 100644
--- a/test/vainfo/vainfo.c
+++ b/test/vainfo/vainfo.c
@@ -104,6 +104,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)
{