Created attachment 221820 [details]
A svn patch for Makefile which adds SSE4_1 and SSE4_2 to the AMD64 default options
As of the update to Kodi 19, kodi reports the following when trying to play back video with VAAPI:
2021-01-23 00:47:17.594 T:101301 DEBUG <general>: SECTION:LoadDLL(special://xbmcbin/system/libsse4-x86_64-freebsd.so)
2021-01-23 00:47:17.594 T:101301 DEBUG <general>: Loading: /usr/local/lib/kodi/system/libsse4-x86_64-freebsd.so
2021-01-23 00:47:17.595 T:101301 ERROR <general>: Unable to load /usr/local/lib/kodi/system/libsse4-x86_64-freebsd.so, reason: Cannot open "/usr/local/lib/kodi/system/libsse4-x86_64-freebsd.so"
2021-01-23 00:47:17.595 T:101301 ERROR <general>: VAAPI::SupportsFilter failed loading sse4 lib
Since there is no AMD64 architecture, since Nehalem in 2008, which doesn't support SSE4.1 and 4_2, it seems like now is a good time to flip these options on for AMD64.
I've not added it to i386, since it's possible someone might have an old NetBurst x86 from 2000 without SSE4.1 and SSE4.2.
I have built kodi with this patch on a machine running 12.2-RELEASE, and confirmed that I no longer get the error during playback, so it works.
I'll also start poudriere testport on it, just to test if it runs on 13 (from a few days ago) and 11.4-RELEASE.
I think it is safe to enable all but AVX* on amd64. AVX
requires Sandy Bridge (2011) and later, AVX2 requires
Haswell (2013) and later.
Will test it tonight.
I have finished running poudriere testport on a pair of 11.4-RELEASE and 12.2-RELEASE jails.
Logs can be found here:
I also followed up with a poudriere testport run on 13-CURRENT as of FreeBSD_version 1300134, which is only about a week old.
Can I get approval for the patch, so I can commit it?
Created attachment 221881 [details]
Created attachment 221882 [details]
Created attachment 221883 [details]
Enable SSSE3 too. Please take the patch. Thanks.
Kodi doesn't make use of SSSE3, so I don't know if there's any point in enabling it.
Either way, you're the maintainer, you need to approve it here in Bugzilla before I can do anything.
CPU flags are taken from the cmake module in source.
It doesn't do anything now, but for completeness,
let's enable it.
A commit references this bug:
Date: Sun Jan 24 20:26:39 UTC 2021
New revision: 562510
multimedia/kodi: Add support for SSSE3, SSE4.1 and SSE4.2 on AMD64
As of the update to Kodi 19, kodi reports missing SSE4 shared objects
during video playback with VAAPI.
Bump PORTREVISION accordingly.
Submitted by: debdrup@ (previous version), yzrh at noema.org(maintainer)
Approved by: yzrh at noema.org (maintainer), jrm