Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Dec 2018 22:29:46 +0300
From:      =?UTF-8?B?0JzQuNGF0LDQuNC7INCd0L7QstC+0YHQtdC70L7Qsg==?= <mikhailnov@dumalogiya.ru>
To:        Kevin Oberman <rkoberman@gmail.com>, greg@unrelenting.technology
Cc:        yuripv@yuripv.net, "freebsd-x11@freebsd.org" <x11@freebsd.org>, Jan Beich <jbeich@freebsd.org>
Subject:   Re: [CFT] Mesa 18.3.0 update (mesa-libs, mesa-dri, libosmesa, clover)
Message-ID:  <8ec62c81-27b5-d313-117d-af351c8e4d84@dumalogiya.ru>
In-Reply-To: <CAN6yY1ukNWYsw8-McDN3pvVgao3ZJtkde2mVK-Lb42b16wUXow@mail.gmail.com>
References:  <wool-v81e-wny@FreeBSD.org> <790ba1cb-7251-e8b3-f7a3-6de3cdee9958@yuripv.net> <8t11-v5xg-wny@FreeBSD.org> <CAN6yY1ukNSMR%2B%2B=XqHAOHx6akvXu3_u4mi2iuu0DOX_5gsoHNg@mail.gmail.com> <1544292716.1907.0@smtp.migadu.com> <CAN6yY1ukNWYsw8-McDN3pvVgao3ZJtkde2mVK-Lb42b16wUXow@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
08.12.2018 22:05, Kevin Oberman пишет:
> Thanks, Greg, for the explanation on VAAPI use. It's still a bit confusing.
> Does this mean that building mesa with VAAPI enabled is meaningless for
> Intel processors?
Hello, you probably meant Intel GPUs, not processors?

Let's look into Ubuntu's Mesa:
$ dpkg -L mesa-va-drivers (list files from package)
<...>
/usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
/usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so
/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
<...>

$ vainfo (from PC with AMD GPU)
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open 
/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Mesa Gallium driver 18.2.2 for AMD KABINI (DRM 
2.50.0, 4.18.0-20.3-liquorix-amd64, LLVM 7.0.0)
vainfo: Supported profile and entrypoints
       VAProfileMPEG2Simple            :    VAEntrypointVLD
       VAProfileMPEG2Main              :    VAEntrypointVLD
       VAProfileVC1Simple              :    VAEntrypointVLD
       VAProfileVC1Main                :    VAEntrypointVLD
       VAProfileVC1Advanced            :    VAEntrypointVLD
       VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
       VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
       VAProfileH264Main               :    VAEntrypointVLD
       VAProfileH264Main               :    VAEntrypointEncSlice
       VAProfileH264High               :    VAEntrypointVLD
       VAProfileH264High               :    VAEntrypointEncSlice
       VAProfileNone                   :    VAEntrypointVideoProc

Here http://linux-hardware.org/index.php?probe=56a2ccc7b4&log=vainfo you 
may find vainfo from a notebook with Intel GPU.
/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so is used. Let's find out 
which package it belongs to:

$ dpkg -S /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
i965-va-driver:amd64: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so

i965-va-driver in Ubuntu is the same as libva-intel-driver in FreeBSD. 
So, yes, VA-API in Mesa is probably useless on Intel GPUs.

Sorry if my outputs from Ubuntu have hurt FreeBSD funs, but I hope they 
illustrated the question well enough.

-- 
------
С уважением,
Михаил Новоселов | mikhailnov@dumalogiya.ru | https://nixtux.ru




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8ec62c81-27b5-d313-117d-af351c8e4d84>