Last active
March 6, 2023 16:06
-
-
Save estelsmith/0d93598631f3fc6f4e3a7a5e7ef4d3cb to your computer and use it in GitHub Desktop.
intel-media-driver specfile for almalinux 9.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a3abfe783f6404de18728394caed30dc8de44147 Mon Sep 17 00:00:00 2001 | |
From: Jay Yang <[email protected]> | |
Date: Mon, 9 Jan 2023 14:45:39 +0800 | |
Subject: [PATCH] [Media Common] SW swizzling regression fix for Gen8/9/10 | |
Signed-off-by: Jay Yang <[email protected]> | |
Add sw swizzling sku for Gen8/9/10, without which there will be perf | |
drop because mos_gem_bo_map_unsynchronized is called. | |
--- | |
media_driver/linux/gen10/ddi/media_sku_wa_g10.cpp | 2 ++ | |
media_driver/linux/gen8/ddi/media_sku_wa_g8.cpp | 2 ++ | |
media_driver/linux/gen9/ddi/media_sku_wa_g9.cpp | 8 ++++++++ | |
3 files changed, 12 insertions(+) | |
diff --git a/media_driver/linux/gen10/ddi/media_sku_wa_g10.cpp b/media_driver/linux/gen10/ddi/media_sku_wa_g10.cpp | |
index 9ada819e4..6698bd4f4 100644 | |
--- a/media_driver/linux/gen10/ddi/media_sku_wa_g10.cpp | |
+++ b/media_driver/linux/gen10/ddi/media_sku_wa_g10.cpp | |
@@ -152,6 +152,8 @@ static bool InitCnlMediaSku(struct GfxDeviceInfo *devInfo, | |
MEDIA_WR_SKU(skuTable, FtrTileY, 1); | |
+ MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 1); | |
+ | |
return true; | |
} | |
diff --git a/media_driver/linux/gen8/ddi/media_sku_wa_g8.cpp b/media_driver/linux/gen8/ddi/media_sku_wa_g8.cpp | |
index 2a216dcbf..ae4da5165 100644 | |
--- a/media_driver/linux/gen8/ddi/media_sku_wa_g8.cpp | |
+++ b/media_driver/linux/gen8/ddi/media_sku_wa_g8.cpp | |
@@ -105,6 +105,8 @@ static bool InitBdwMediaSku(struct GfxDeviceInfo *devInfo, | |
MEDIA_WR_SKU(skuTable, FtrSliceShutdownOverride, 1); | |
MEDIA_WR_SKU(skuTable, FtrTileY, 1); | |
+ MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 1); | |
+ | |
return true; | |
} | |
diff --git a/media_driver/linux/gen9/ddi/media_sku_wa_g9.cpp b/media_driver/linux/gen9/ddi/media_sku_wa_g9.cpp | |
index 16ce3a4fb..e009550bb 100755 | |
--- a/media_driver/linux/gen9/ddi/media_sku_wa_g9.cpp | |
+++ b/media_driver/linux/gen9/ddi/media_sku_wa_g9.cpp | |
@@ -206,6 +206,8 @@ static bool InitSklMediaSku(struct GfxDeviceInfo *devInfo, | |
MEDIA_WR_SKU(skuTable, FtrTileY, 1); | |
+ MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 1); | |
+ | |
return true; | |
} | |
@@ -301,6 +303,8 @@ static bool InitBxtMediaSku(struct GfxDeviceInfo *devInfo, | |
MEDIA_WR_SKU(skuTable, FtrVpP010Output, 1); | |
+ MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 1); | |
+ | |
return true; | |
} | |
@@ -433,6 +437,8 @@ static bool InitKblMediaSku(struct GfxDeviceInfo *devInfo, | |
MEDIA_WR_SKU(skuTable, FtrPerCtxtPreemptionGranularityControl, 1); | |
+ MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 1); | |
+ | |
return true; | |
} | |
@@ -540,6 +546,8 @@ static bool InitGlkMediaSku(struct GfxDeviceInfo *devInfo, | |
MEDIA_WR_SKU(skuTable, FtrHDR, 1); | |
+ MEDIA_WR_SKU(skuTable, FtrUseSwSwizzling, 1); | |
+ | |
return true; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Copyright 2018 Nicolas Chauvet <[email protected]> --> | |
<component type="driver"> | |
<id>intel-media-driver</id> | |
<name>The Intel Media Driver for VAAPI</name> | |
<summary>Accelerated Linux Graphics Driver</summary> | |
<description> | |
<p> | |
The Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API) | |
user mode driver supporting hardware accelerated decoding, encoding, | |
and video post processing for GEN based graphics hardware. | |
</p> | |
</description> | |
<translation/> | |
<url type="homepage">https://github.com/intel/intel-media-driver</url> | |
<metadata_license>CC0-1.0</metadata_license> | |
<project_license>LicenseRef:MIT</project_license> | |
<developer_name>Intel Corporation</developer_name> | |
<keywords> | |
<keyword>Intel</keyword> | |
<keyword>driver</keyword> | |
<keyword>VA-API</keyword> | |
<keyword>vaapi</keyword> | |
<keyword>HW</keyword> | |
<keyword>Media</keyword> | |
<keyword>Video</keyword> | |
<keyword>Decode</keyword> | |
<keyword>Encode</keyword> | |
<keyword>hevc</keyword> | |
<keyword>h264</keyword> | |
<keyword>vp8</keyword> | |
<keyword>vp9</keyword> | |
</keywords> | |
<url type="bugtracker">https://bugzilla.rpmfusion.org</url> | |
<update_contact>[email protected]</update_contact> | |
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#global pre .pre8 | |
Name: intel-media-driver | |
Version: 22.6.6 | |
Release: 2%{?dist} | |
Summary: The Intel Media Driver for VAAPI | |
License: MIT and BSD | |
URL: https://github.com/intel/media-driver | |
Source0: %{url}/archive/intel-media-%{version}%{?pre}.tar.gz | |
Source1: intel-media-driver.metainfo.xml | |
# https://github.com/intel/media-driver/pull/1589 | |
Patch0: intel-media-driver-gen8-9-10-perf.patch | |
# This is an Intel only vaapi backend | |
ExclusiveArch: i686 x86_64 | |
BuildRequires: cmake >= 3.5 | |
BuildRequires: gcc | |
BuildRequires: gcc-c++ | |
# AppStream metadata generation | |
BuildRequires: libappstream-glib >= 0.6.3 | |
BuildRequires: pkgconfig(igdgmm) >= 11.2.0 | |
BuildRequires: pkgconfig(libcmrt) | |
BuildRequires: pkgconfig(libva) >= 1.6.0 | |
BuildRequires: pkgconfig(pciaccess) | |
BuildRequires: pkgconfig(x11) | |
# There is a modified version of libdrm | |
Provides: bundled(libdrm) | |
%description | |
The Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API) | |
user mode driver supporting hardware accelerated decoding, encoding, | |
and video post processing for GEN based graphics hardware. | |
https://01.org/intel-media-for-linux | |
%prep | |
%autosetup -p1 -n media-driver-intel-media-%{version}%{?pre} | |
# Fix license perm | |
chmod -x LICENSE.md README.md CMakeLists.txt | |
# Remove pre-built (but unused) files | |
rm -f Tools/MediaDriverTools/UMDPerfProfiler/MediaPerfParser | |
# Remove all -Werror compile flags | |
sed -e "/-Werror/d" -i media_driver/cmake/linux/media_compile_flags_linux.cmake | |
sed -e "/-Werror/d" -i media_driver/media_top_cmake.cmake | |
%build | |
%ifarch %{ix86} | |
export CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" | |
%endif | |
%cmake \ | |
%ifarch %{ix86} | |
-DARCH:STRING=32 \ | |
%endif | |
-DBUILD_CMRTLIB:BOOL=False \ | |
-DMEDIA_RUN_TEST_SUITE:BOOL=False \ | |
-DRUN_TEST_SUITE:BOOL=False | |
%cmake_build | |
%install | |
%cmake_install | |
# Fix perm on library to be stripped | |
chmod +x %{buildroot}%{_libdir}/dri/iHD_drv_video.so | |
# install AppData and add modalias provides | |
mkdir -p %{buildroot}%{_metainfodir} | |
install -pm 0644 %{SOURCE1} %{buildroot}%{_metainfodir} | |
# TODO - have pci based hw detection | |
%if 0 | |
fn=%{buildroot}%{_metainfodir}/intel-media-driver.metainfo.xml | |
%{SOURCE9} src/i965_pciids.h | xargs appstream-util add-provide ${fn} modalias | |
%endif | |
# Don't provide the headers - Used by anyone else ? | |
rm -rf %{buildroot}%{_includedir}/igfxcmrt | |
rm -rf %{buildroot}%{_libdir}/pkgconfig | |
%files | |
%doc README.md | |
%license LICENSE.md | |
%{_libdir}/dri/iHD_drv_video.so | |
%{_metainfodir}/intel-media-driver.metainfo.xml | |
%changelog | |
* Fri Jan 27 2023 Nicolas Chauvet <[email protected]> - 22.6.6-2 | |
- rebuilt | |
* Fri Jan 13 2023 Michael Cronenworth <[email protected]> - 22.6.6-1 | |
- Update to 22.6.6 | |
- Include patch to fix Gen 8/9/10 encoding performance | |
* Thu Dec 29 2022 Nicolas Chauvet <[email protected]> - 22.6.4-1 | |
- Update to 22.6.4 | |
* Sun Oct 16 2022 Nicolas Chauvet <[email protected]> - 22.5.4-1 | |
- Update to 22.5.4 | |
* Mon Aug 08 2022 RPM Fusion Release Engineering <[email protected]> - 22.4.4-2 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg | |
5.1 | |
* Sun Jul 03 2022 Nicolas Chauvet <[email protected]> - 22.4.4-1 | |
- Update to 22.4.4 | |
* Fri Apr 01 2022 Nicolas Chauvet <[email protected]> - 22.3.1-1 | |
- Update to 22.3.1 | |
* Fri Apr 01 2022 Nicolas Chauvet <[email protected]> - 22.1.1-4 | |
- rebuilt | |
* Mon Mar 28 2022 Leigh Scott <[email protected]> - 22.1.1-3 | |
- rebuilt | |
* Thu Feb 10 2022 RPM Fusion Release Engineering <[email protected]> - 22.1.1-2 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild | |
* Wed Jan 19 2022 Nicolas Chauvet <[email protected]> - 22.1.1-1 | |
- Update to 22.1.1 | |
* Sun Dec 19 2021 Nicolas Chauvet <[email protected]> - 21.4.3-1 | |
- Update to 21.4.3 | |
* Tue Oct 05 2021 Nicolas Chauvet <[email protected]> - 21.3.4-2 | |
- rebuilt | |
* Sun Oct 03 2021 Nicolas Chauvet <[email protected]> - 21.3.4-1 | |
- Update to 21.3.4 | |
* Wed Aug 04 2021 RPM Fusion Release Engineering <[email protected]> - 21.2.3-2 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild | |
* Wed Jun 30 2021 Nicolas Chauvet <[email protected]> - 21.2.3-1 | |
- Update to 21.2.3 | |
* Sat Apr 03 2021 Nicolas Chauvet <[email protected]> - 21.1.3-1 | |
- Update to 21.1.3 | |
* Wed Mar 24 2021 Nicolas Chauvet <[email protected]> - 20.4.5-3 | |
- Bump spec | |
* Wed Mar 24 2021 Nicolas Chauvet <[email protected]> - 20.4.5-2 | |
- Backport patch | |
* Thu Feb 25 2021 Nicolas Chauvet <[email protected]> - 20.4.5-1 | |
- Update to 20.4.5 | |
* Thu Feb 04 2021 RPM Fusion Release Engineering <[email protected]> - 20.4.5-2 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild | |
* Thu Dec 31 2020 Nicolas Chauvet <[email protected]> - 20.4.5-1 | |
- Update to 20.4.5 | |
* Thu Nov 05 2020 Nicolas Chauvet <[email protected]> - 20.4.0-1 | |
- Update to 20.4.0 | |
* Wed Sep 30 2020 Nicolas Chauvet <[email protected]> - 20.3.0-1 | |
- Update to 20.3.0 | |
* Tue Sep 29 2020 Nicolas Chauvet <[email protected]> - 20.3-0.2.pre8 | |
- Update to pre8 | |
* Wed Sep 02 2020 Nicolas Chauvet <[email protected]> - 20.3-0.1.pre3 | |
- Update to 20.3.pre3 | |
* Wed Aug 19 2020 RPM Fusion Release Engineering <[email protected]> - 20.2.0-4 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild | |
* Mon Aug 03 2020 Nicolas Chauvet <[email protected]> - 20.2.0-3 | |
- Rebuilt | |
* Fri Jul 10 2020 Nicolas Chauvet <[email protected]> - 20.2.0-2 | |
- Rebuilt | |
* Fri Jul 10 2020 Nicolas Chauvet <[email protected]> - 20.2.0-1 | |
- Update to 20.2.0 | |
* Fri Apr 10 2020 Nicolas Chauvet <[email protected]> - 20.1.1-1 | |
- Update to 20.1.1 | |
* Mon Mar 09 2020 Nicolas Chauvet <[email protected]> - 19.4.0-4 | |
- Enable i686 build | |
* Wed Feb 05 2020 RPM Fusion Release Engineering <[email protected]> - 19.4.0-3 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild | |
* Thu Jan 09 2020 Nicolas Chauvet <[email protected]> - 19.4.0-2 | |
- Rebuilt for to gmmlib | |
* Fri Dec 20 2019 Vasiliy N. Glazov <[email protected]> - 19.4.0-1 | |
- Update to 19.4.0 | |
* Wed Oct 30 2019 Vasiliy N. Glazov <[email protected]> - 19.3.1-1 | |
- Update to 19.3.1 | |
* Wed Oct 09 2019 Vasiliy N. Glazov <[email protected]> - 19.3.0-1 | |
- Update to 19.3.0 | |
* Fri Sep 20 2019 Vasiliy N. Glazov <[email protected]> - 19.2.1-3 | |
- Rebuild for new intel-gmmlib | |
* Sat Aug 10 2019 RPM Fusion Release Engineering <[email protected]> - 19.2.1-2 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild | |
* Thu Aug 01 2019 Nicolas Chauvet <[email protected]> - 19.2.1-1 | |
- Update to 19.2.1 | |
* Fri Jul 05 2019 Nicolas Chauvet <[email protected]> - 19.2-1 | |
- Update to Final 19.2 | |
* Fri May 10 2019 Nicolas Chauvet <[email protected]> - 19.1-2 | |
- Update to Final 19.1 | |
* Sat Apr 06 2019 Nicolas Chauvet <[email protected]> - 19.1-1 | |
- Update to 19.1 pre3 | |
* Tue Mar 05 2019 RPM Fusion Release Engineering <[email protected]> - 18.4.1-3 | |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild | |
* Wed Feb 20 2019 Nicolas Chauvet <[email protected]> - 18.4.1-2 | |
- Unbundle cmrt | |
* Thu Feb 14 2019 Nicolas Chauvet <[email protected]> - 18.4.1-1 | |
- Update to 18.4.1 | |
* Wed Oct 10 2018 Nicolas Chauvet <[email protected]> - 18.3.0-2 | |
- Use metainfodir | |
- Enable AppStream support (no hardware detection yet) | |
- Add missing BR | |
- Remove pre-built tools | |
* Mon Oct 08 2018 Nicolas Chauvet <[email protected]> - 18.3.0-1 | |
- Initial spec file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment