Similar to:
bfb6b98ed6 exclude vgem node and invalid drm node in vainfo
But adapted to use drmGetDevices2() for more generic handling.
It's possible to have a vgem node at 128, and the VA-API node is at 129,
for example.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Currently we silently fall-though all possible display types. Which is
fairly confusing for the end user if `vainfo` works but it fails on
their favourite program.
Add an explicit print, saving time to both users and developers.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
v2: remove gtest meson file
v3: install binaries
respect disabled libraries
apply cpp_args to all test files
add full version
v4: define HAVE_* macros
v5: Downgrade meson requirement to 0.42.0
vaPutSurface only used in libva-utils. The actual application/omx
implementation never use it.
It will introduce many header files in android framework.Android change
rapidly, the directory or file name changed in versionto version. It's
hard to catch up and maintain support for many versionof android.
The struct wl_registry is created with wl_proxy_marshal_constructor()
while calling wl_display_get_registry() and must be freed wtih
wl_proxy_destroy() by calling wl_registry_destroy().
72 bytes in 1 blocks are definitely lost in loss record 6 of 10
at 0x4C2EF35: calloc (in vgpreload_memcheck-amd64-linux.so)
by 0x5FD7503: ??? (in libwayland-client.so.0.3.0)
by 0x5FD7A26: wl_proxy_marshal_array_constructor_versioned
by 0x5FD7D7B: wl_proxy_marshal_constructor
by 0x10B096: wl_display_get_registry (wayland-client-protocol.h:966)
by 0x10AD72: va_open_display_wayland (va_display_wayland.c:91)
by 0x10A43B: va_open_display (va_display.c:154)
by 0x109B0A: main (vainfo.c:107)
Signed-off-by: Victor Toso <victortoso@redhat.com>
- vainfo/vainfo.c
Variables 'tmp' and 'file_size' in parse_args() were never used.
- common/va_display.c
Variable 'device_name' was introduced at f36a392a96 but it was
never used.
Signed-off-by: Victor Toso <victortoso@redhat.com>
vainfo has '--display' and '--device' options, but these options are
hidden, hence add '--help' to show these options
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
when creating the package tarball, autogen.sh is handy to have and
the header files are necessary for compilation.
TEST="make dist should include autogen.sh, loadsurface.h and"
TEST="loadsurface_yuv.h on the final tarballs."
TEST="Then tarball user can compile in the same way as github clone"
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
libva-utils is a new git repository that will host sample applications
for libva, conformance tests and others relevant to libva
It is using the same version as libva and it should follow libva version.
It is intended to be released together with libva
It has the same license as libva
Initial functionality ports the vainfo application from libva repository.
The git history for it will remain on libva. To port vainfo, also the
a common libva-display library was ported. The original tests for encoder
and decoder are also ported to this repository. debian folder for vainfo
was also ported
The basic tests are going to be substituted by a new set of tests based
on Gtest framework.
libva-utils will dynamically link libva, use pkg-config to compile and
link properly.
Signed-off-by: Daniel Charles <daniel.charles@intel.com>