[packages/beignet] Add support for some newer Skylake CPUs
jajcus
jajcus at pld-linux.org
Wed Jun 14 17:40:38 CEST 2017
commit 1a11410a433771c5e4da0e0eae20cee2a2c89fe5
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Wed Jun 14 17:39:27 2017 +0200
Add support for some newer Skylake CPUs
Release: 2
beignet.spec | 4 +++-
new_SKL_ids.patch | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 1 deletion(-)
---
diff --git a/beignet.spec b/beignet.spec
index a5a111a..ed8adc4 100644
--- a/beignet.spec
+++ b/beignet.spec
@@ -2,13 +2,14 @@ Summary: Open source implementation of the OpenCL specification for Intel GPUs
Summary(pl.UTF-8): Mająca otwarte źródła implementacja specyfikacji OpenCL dla GPU formy Intel
Name: beignet
Version: 1.3.1
-Release: 1
+Release: 2
License: LGPL v2+
Group: Libraries
Source0: https://01.org/sites/default/files/beignet-%{version}-source.tar.gz
# Source0-md5: 850886a71a34672ca26a42046d0bb442
Patch0: cflags.patch
Patch1: static_llvm.patch
+Patch2: new_SKL_ids.patch
URL: http://www.freedesktop.org/wiki/Software/Beignet/
BuildRequires: Mesa-libgbm-devel
BuildRequires: Mesa-libGL-devel >= 13.0.0
@@ -54,6 +55,7 @@ poleceń, jądra i programów oraz uruchamia je na GPU.
%setup -qn Beignet-%{version}-Source
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
install -d build
diff --git a/new_SKL_ids.patch b/new_SKL_ids.patch
new file mode 100644
index 0000000..cbdb9df
--- /dev/null
+++ b/new_SKL_ids.patch
@@ -0,0 +1,39 @@
+diff --git a/src/cl_device_data.h b/src/cl_device_data.h
+index c3d6c45..123b619 100644
+--- a/src/cl_device_data.h
++++ b/src/cl_device_data.h
+@@ -247,7 +247,9 @@
+ /* SKL */
+ #define PCI_CHIP_SKYLAKE_ULT_GT1 0x1906 /* Intel(R) Skylake ULT - GT1 */
+ #define PCI_CHIP_SKYLAKE_ULT_GT2 0x1916 /* Intel(R) Skylake ULT - GT2 */
+-#define PCI_CHIP_SKYLAKE_ULT_GT3 0x1926 /* Intel(R) Skylake ULT - GT3 */
++#define PCI_CHIP_SKYLAKE_ULT_GT3 0x1923 /* Intel(R) Skylake ULT - GT3 */
++#define PCI_CHIP_SKYLAKE_ULT_GT3E1 0x1926 /* Intel(R) Skylake ULT - GT3E */
++#define PCI_CHIP_SKYLAKE_ULT_GT3E2 0x1927 /* Intel(R) Skylake ULT - GT3E */
+ #define PCI_CHIP_SKYLAKE_ULT_GT2F 0x1921 /* Intel(R) Skylake ULT - GT2F */
+ #define PCI_CHIP_SKYLAKE_ULX_GT1 0x190E /* Intel(R) Skylake ULX - GT1 */
+ #define PCI_CHIP_SKYLAKE_ULX_GT2 0x191E /* Intel(R) Skylake ULX - GT2 */
+@@ -284,6 +286,8 @@
+
+ #define IS_SKL_GT3(devid) \
+ (devid == PCI_CHIP_SKYLAKE_ULT_GT3 || \
++ devid == PCI_CHIP_SKYLAKE_ULT_GT3E1 || \
++ devid == PCI_CHIP_SKYLAKE_ULT_GT3E2 || \
+ devid == PCI_CHIP_SKYLAKE_HALO_GT3 || \
+ devid == PCI_CHIP_SKYLAKE_SRV_GT3 || \
+ devid == PCI_CHIP_SKYLAKE_MEDIA_SRV_GT3)
+diff --git a/src/cl_device_id.c b/src/cl_device_id.c
+index 76549a4..b9a60bb 100644
+--- a/src/cl_device_id.c
++++ b/src/cl_device_id.c
+@@ -605,6 +605,10 @@ skl_gt2_break:
+
+ case PCI_CHIP_SKYLAKE_ULT_GT3:
+ DECL_INFO_STRING(skl_gt3_break, intel_skl_gt3_device, name, "Intel(R) HD Graphics Skylake ULT GT3");
++ case PCI_CHIP_SKYLAKE_ULT_GT3E1:
++ DECL_INFO_STRING(skl_gt3_break, intel_skl_gt3_device, name, "Intel(R) HD Graphics Skylake ULT GT3E");
++ case PCI_CHIP_SKYLAKE_ULT_GT3E2:
++ DECL_INFO_STRING(skl_gt3_break, intel_skl_gt3_device, name, "Intel(R) HD Graphics Skylake ULT GT3E");
+ case PCI_CHIP_SKYLAKE_HALO_GT3:
+ DECL_INFO_STRING(skl_gt3_break, intel_skl_gt3_device, name, "Intel(R) HD Graphics Skylake Halo GT3");
+ case PCI_CHIP_SKYLAKE_SRV_GT3:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/beignet.git/commitdiff/1a11410a433771c5e4da0e0eae20cee2a2c89fe5
More information about the pld-cvs-commit
mailing list