diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2015-11-06 14:22:33 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-11-18 13:30:54 +0800 |
commit | 6a5428e73bd47af0dacc04b1792bca1e9e2e8f54 (patch) | |
tree | a0c37b5e0d3973f9fbdc5ea4b4382709d1e64b3c | |
parent | d3b24b76dfde4daef9d463743971c7522a307092 (diff) | |
download | libva-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.c | 2 |
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) { |