Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2023 22:00:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 272109] multimedia/libva should give "unsupported" status on unsupported hardware
Message-ID:  <bug-272109-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272109

            Bug ID: 272109
           Summary: multimedia/libva should give "unsupported" status on
                    unsupported hardware
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: sasamotikomi@gmail.com
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)
          Assignee: jbeich@FreeBSD.org

Example from librewolf from GMA950 and GMA3150:
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: VA-API test
failed: failed to initialise VAAPI connection. (t=3D3.16883) [GFX1-]: glxte=
st:
VA-API test failed:

 failed to initialise VAAPI connection.
 Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: VA-API test
failed: failed to initialise VAAPI connection. (t=3D2.01802) [GFX1-]: glxte=
st:
VA-API test failed:

 failed to initialise VAAPI connection.
So some software will just keep requesting status fro time to time.

 % vainfo --display x11
Trying display: x11
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva error: /usr/local/lib/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit
 % vainfo --display drm
Trying display: drm
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva error: /usr/local/lib/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_18
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

Libva should just give unsupported status instead of trying to use wrong
drivers and failed.=20
Even "correct" driver will fail instead of showing you unsupported status:

% env LIBVA_TRACE=3D1 LIBVA_DRIVER_NAME=3Di915 vainfo --display x11
Trying display: x11
libva info: Open new log file 1.215249.thd-0x00018934 for the thread 0x0001=
8934
libva info: LIBVA_TRACE is on, save log into 1.215249.thd-0x00018934
libva info: VA-API version 1.18.0
libva info: User environment variable requested driver 'i915'
libva info: Trying to open /usr/local/lib/dri/i915_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva error: /usr/local/lib/dri/i915_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
% env LIBVA_TRACE=3D1 LIBVA_DRIVER_NAME=3Di915 vainfo --display drm
Trying display: drm
libva info: Open new log file 1.215254.thd-0x00018934 for the thread 0x0001=
8934
libva info: LIBVA_TRACE is on, save log into 1.215254.thd-0x00018934
libva info: VA-API version 1.18.0
libva info: User environment variable requested driver 'i915'
libva info: Trying to open /usr/local/lib/dri/i915_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva error: /usr/local/lib/dri/i915_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272109-7788>