Sisyphus repositório
Última atualização: 30 setembro 2020 | SRPMs: 17703 | Visitas: 19318401
en ru br
ALT Linux repositórios
S:20.2.0-alt1

Group :: Sistema/Bibliotecas
RPM: libva-intel-media-driver

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: libva-intel-media-driver-20.1.1-alt1.patch
Download


 .gear/libva-intel-media-driver.spec                | 93 ++++++++++++++++++++++
 .gear/rules                                        |  3 +
 .../tags/1b2b1363caef1ae23aa00c0afaf1d638485eee74  |  6 ++
 .gear/tags/list                                    |  1 +
 cmrtlib/linux/hardware/cm_device.h                 |  4 +-
 cmrtlib/linux/hardware/cm_device_os.cpp            |  3 +-
 cmrtlib/linux/hardware/drm_device.h                |  2 +
 media_driver/linux/common/ddi/media_libva_caps.cpp |  6 +-
 media_driver/linux/common/ddi/media_libva_caps.h   |  2 +-
 9 files changed, 111 insertions(+), 9 deletions(-)
diff --git a/.gear/libva-intel-media-driver.spec b/.gear/libva-intel-media-driver.spec
new file mode 100644
index 00000000..139a33c0
--- /dev/null
+++ b/.gear/libva-intel-media-driver.spec
@@ -0,0 +1,93 @@
+%define soname 7
+Name: libva-intel-media-driver
+Version: 20.1.1
+Release: alt1
+
+Summary: Intel(R) Media Driver for VAAPI
+License: MIT
+Group: System/Libraries
+Url: https://github.com/intel/media-driver/
+
+Source: %name-%version.tar
+Patch0: %name-%version-%release.patch
+
+BuildRequires: libdrm-devel libX11-devel libGL-devel libEGL-devel gcc-c++ libpciaccess-devel
+BuildRequires: libva-devel >= 2.3.0
+BuildRequires: cmake rpm-macros-cmake
+BuildRequires: intel-gmmlib-devel >= 18.3.0
+ExclusiveArch: x86_64
+
+%description
+The Intel(R) 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.
+
+%package -n libigfxcmrt%soname
+Group: System/Libraries
+Summary: C bindings for media runtime
+
+%description -n libigfxcmrt%soname
+cmrtlib is a runtime library needed when user wants to execute their own GPU 
+kernels on render engine. It calls iHD media driver to load the kernels and
+allocate the resources. It provides a set of APIs for user to call directly from application.
+
+%package -n libigfxcmrt-devel
+Summary: Development files for libigfxcmrt%soname
+Group: Development/C
+Requires: libigfxcmrt%soname = %EVR
+
+%description -n libigfxcmrt-devel
+This package provides the development environment for libigfxcmrt
+
+%prep
+%setup
+%patch0 -p1
+
+%build
+%cmake
+%cmake_build
+
+%install
+%cmakeinstall_std
+
+%files
+%doc LICENSE.md README.md
+%_libdir/dri/*.so
+
+%files -n libigfxcmrt%soname
+%_libdir/libigfxcmrt.so.%soname
+%_libdir/libigfxcmrt.so.%soname.*
+
+%files -n libigfxcmrt-devel
+%_libdir/libigfxcmrt.so
+%_includedir/igfxcmrt
+%_pkgconfigdir/igfxcmrt.pc
+
+%changelog
+* Mon Apr 20 2020 Anton Farygin <rider@altlinux.ru> 20.1.1-alt1
+- 20.1.1
+
+* Mon Jan 13 2020 Anton Farygin <rider@altlinux.ru> 19.4.0-alt1
+- 19.4.0
+
+* Wed Nov 13 2019 Anton Farygin <rider@altlinux.ru> 19.3.1-alt1
+- 19.3.1
+
+* Sat Oct 12 2019 Anton Farygin <rider@altlinux.ru> 19.3.0-alt1
+- 19.3.0
+
+* Thu Aug 15 2019 Anton Farygin <rider@altlinux.ru> 19.2.1-alt1
+- 19.2.1
+
+* Sun Jun 23 2019 Igor Vlasenko <viy@altlinux.ru> 19.1.0-alt2
+- NMU: remove rpm-build-ubt from BR:
+
+* Fri Apr 26 2019 Anton Farygin <rider@altlinux.ru> 19.1.0-alt1
+- 19.1.0
+
+* Mon Feb 18 2019 Anton Farygin <rider@altlinux.ru> 18.4.1-alt1
+- 18.4.1
+
+* Mon Oct 08 2018 Anton Farygin <rider@altlinux.ru> 18.3.0-alt1
+- first build for ALT
+
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 00000000..faff9dbf
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,3 @@
+tar: intel-media-@version@:.
+diff: intel-media-@version@:. .
+spec: .gear/libva-intel-media-driver.spec
diff --git a/.gear/tags/1b2b1363caef1ae23aa00c0afaf1d638485eee74 b/.gear/tags/1b2b1363caef1ae23aa00c0afaf1d638485eee74
new file mode 100644
index 00000000..8ecd523d
--- /dev/null
+++ b/.gear/tags/1b2b1363caef1ae23aa00c0afaf1d638485eee74
@@ -0,0 +1,6 @@
+object 54492c0d175f298c8a2ef90955febeef30837792
+type commit
+tag intel-media-20.1.1
+tagger sys_mediadev <mediadev@intel.com> 1586360249 +0800
+
+Intel Media Driver 2020Q1 Release
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 00000000..bc2f2396
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+1b2b1363caef1ae23aa00c0afaf1d638485eee74 intel-media-20.1.1
diff --git a/cmrtlib/linux/hardware/cm_device.h b/cmrtlib/linux/hardware/cm_device.h
index 7e2f1e8e..e06037b7 100644
--- a/cmrtlib/linux/hardware/cm_device.h
+++ b/cmrtlib/linux/hardware/cm_device.h
@@ -198,7 +198,6 @@ protected:
 #if !defined(ANDROID)
     static uint32_t m_vaReferenceCount;
     static CSync m_vaReferenceCountCriticalSection;
-    int32_t m_driFileDescriptor;
     static void  *m_vaDrm;
     static pfVAGetDisplayDRM m_vaGetDisplayDrm;
 #else
@@ -215,6 +214,9 @@ protected:
 
     uint32_t       m_createOption;
     uint32_t       m_driverStoreEnabled;
+#if !defined(ANDROID)
+    int32_t m_driFileDescriptor;
+#endif
 
     // Kernel debugger
     CmKernelDebugger *m_kernelDebugger;
diff --git a/cmrtlib/linux/hardware/cm_device_os.cpp b/cmrtlib/linux/hardware/cm_device_os.cpp
index 3e18567f..1791fb92 100644
--- a/cmrtlib/linux/hardware/cm_device_os.cpp
+++ b/cmrtlib/linux/hardware/cm_device_os.cpp
@@ -63,7 +63,6 @@ int32_t CmDevice_RT::GetSupportedRenderer(uint32_t& count)
 {
     INSERT_PROFILER_RECORD();
     int32_t result = CM_SUCCESS;
-    uint32_t i = 0;
     uint32_t k = 0;
     char* driver_name;
 
@@ -534,7 +533,7 @@ int32_t CmDevice_RT::GetLibvaDisplayDrm(VADisplay & vaDisplay)
         return CM_INVALID_LIBVA_INITIALIZE;
     }
 
-    if (m_drmIndex < g_supportedAdapterCount)
+    if (m_drmIndex < (unsigned) g_supportedAdapterCount)
     {
         m_driFileDescriptor = GetRendererFileDescriptor(g_AdapterList[m_drmIndex]->nodes[2]);
     }
diff --git a/cmrtlib/linux/hardware/drm_device.h b/cmrtlib/linux/hardware/drm_device.h
index e4ef5a30..b78ba2d7 100644
--- a/cmrtlib/linux/hardware/drm_device.h
+++ b/cmrtlib/linux/hardware/drm_device.h
@@ -548,6 +548,8 @@ static int parse_separate_sysfs_files(int maj, int min,
     {
         int count = 0;
         count = read(fd, buffer, sizeof(buffer));
+	if (count < 0)
+            printf("Error reading sysfs irqpath directory tree -errno %d\n", errno);
         close(fd);
     }
 
diff --git a/media_driver/linux/common/ddi/media_libva_caps.cpp b/media_driver/linux/common/ddi/media_libva_caps.cpp
index fecbfa09..a354833b 100755
--- a/media_driver/linux/common/ddi/media_libva_caps.cpp
+++ b/media_driver/linux/common/ddi/media_libva_caps.cpp
@@ -79,11 +79,7 @@ const uint32_t MediaLibvaCaps::m_vpSurfaceAttr[m_numVpSurfaceAttr] =
     VA_FOURCC('R', 'G', 'B', 'P'),
     VA_FOURCC('R', 'G', 'B', 'X'),
     VA_FOURCC('P', '0', '1', '0'),
-    VA_FOURCC('R','G','2', '4'),
-    VA_FOURCC_ARGB,
-    VA_FOURCC_ABGR,
-    VA_FOURCC_A2R10G10B10,
-    VA_FOURCC_A2B10G10R10
+    VA_FOURCC('R','G','2', '4')
 };
 
 const uint32_t MediaLibvaCaps::m_jpegSurfaceAttr[m_numJpegSurfaceAttr] =
diff --git a/media_driver/linux/common/ddi/media_libva_caps.h b/media_driver/linux/common/ddi/media_libva_caps.h
old mode 100755
new mode 100644
index 91a40fcf..5bf55a30
--- a/media_driver/linux/common/ddi/media_libva_caps.h
+++ b/media_driver/linux/common/ddi/media_libva_caps.h
@@ -761,7 +761,7 @@ protected:
 
     static const uint16_t m_maxProfiles = 17; //!< Maximum number of supported profiles
     static const uint16_t m_maxProfileEntries = 64; //!< Maximum number of supported profile & entrypoint combinations
-    static const uint32_t m_numVpSurfaceAttr = 15; //!< Number of VP surface attributes
+    static const uint32_t m_numVpSurfaceAttr = 11; //!< Number of VP surface attributes
     static const uint32_t m_numJpegSurfaceAttr = 7; //!< Number of JPEG surface attributes
     static const uint32_t m_numJpegEncSurfaceAttr = 4; //!< Number of JPEG encode surface attributes
     static const uint16_t m_maxEntrypoints = 7; //!<  Maximum number of supported entrypoints
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009