Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot force i965 driver on X11 #355

Closed
jbeich opened this issue Dec 28, 2019 · 4 comments · Fixed by #356
Closed

Cannot force i965 driver on X11 #355

jbeich opened this issue Dec 28, 2019 · 4 comments · Fixed by #356

Comments

@jbeich
Copy link
Contributor

jbeich commented Dec 28, 2019

Regressed by 6650b39. Works fine on KMS console and Wayland but fails on X11. Forcing iHD (via LIBVA_DRIVER_NAME) and i965 auto-detection (via iHD absence) works fine.

$ LIBVA_DRIVER_NAME=i965 vainfo
libva info: VA-API version 1.6.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva error: /usr/local/lib/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

According to VA_INTEL_DEBUG=1 init function fails due to DRI2 check.

@XinfengZhang
Copy link
Contributor

see, va_DRI2GetDriverName also call authentication , previous logic , it will call va_getDriverName firstly

XinfengZhang added a commit to XinfengZhang/libva that referenced this issue Dec 30, 2019
fixes intel#355

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
XinfengZhang added a commit to XinfengZhang/libva that referenced this issue Dec 30, 2019
fixes intel#355

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
@XinfengZhang
Copy link
Contributor

@jbeich I filed #356 , could you help to try it?

@jbeich
Copy link
Contributor Author

jbeich commented Dec 30, 2019

I confirm, #356 fixes the issue.

XinfengZhang added a commit to XinfengZhang/libva that referenced this issue Dec 31, 2019
fixes intel#355

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
@uartie
Copy link
Contributor

uartie commented Jan 3, 2020

#356 also fixes a segfault regression introduced by #351 when using gstreamer-vaapi+iHD

XinfengZhang added a commit that referenced this issue Jan 7, 2020
fixes #355

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
XinfengZhang added a commit that referenced this issue Jan 17, 2020
fixes #355

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
FurongZhang pushed a commit to FurongZhang/libva that referenced this issue Apr 7, 2023
fixes intel#355

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants