intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
303 stars 126 forks source link

'make check' exits with errors #507

Closed eblanca closed 4 years ago

eblanca commented 4 years ago

I am building vaapi driver 2.4.0 against libva 2.7.1 (latest stable) installed into /usr/local. When I run 'make check' the result I get is:

[cut]
Making check in test
make[1]: ingresso nella directory "/home/topolinik/svn/intel-vaapi-driver/test"
make  check-local
make[2]: ingresso nella directory "/home/topolinik/svn/intel-vaapi-driver/test"
./test_i965_drv_video
[==========] Running 622 tests from 16 test cases.
[----------] Global test environment set-up.
Seeded std::rand() with 1587586112.
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /home/topolinik/svn/intel-vaapi-driver/src/.libs/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_7
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [13]
param: 4, val: 0
libva error: /home/topolinik/svn/intel-vaapi-driver/src/.libs/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
i965_test_environment.cpp:69: Failure
      Expected: VaapiStatus(0x00000000)
      Which is: VA_STATUS_SUCCESS
To be equal to: VaapiStatus(vaInitialize(*this, &major, &minor))
      Which is: VA_STATUS_ERROR_UNKNOWN
[cut]

and I cannot figure out what those errors mean. My system is debian based: Linux debbieb1 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux with gcc-8.3.0 and binutils 2.31.1 My cpu is a core i5 6200u and there is also a discrete radeon HD8000 M (IIRC).

eblanca commented 4 years ago

Fixed. The error was due to test/i965_test_environment.cpp which opens "/dev/dri/renderD128" by default, but on my system that rendering device is the discrete radeon, instead /dev/dri/renderD129 is the intel GPU. Once fixed this, the test suite completed successfully.