From e7a339aa96007c1ad89606ba6b7fcfe53b03334d Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Sat, 4 Apr 2020 11:11:14 +0200 Subject: [PATCH] Apply iris patch --- ...te-dri-vaapi-driver-mapping-for-iris.patch | 30 +++++++++++++++++++ libva.spec | 1 + 2 files changed, 31 insertions(+) create mode 100644 0001-Update-dri-vaapi-driver-mapping-for-iris.patch diff --git a/0001-Update-dri-vaapi-driver-mapping-for-iris.patch b/0001-Update-dri-vaapi-driver-mapping-for-iris.patch new file mode 100644 index 0000000..79cb87c --- /dev/null +++ b/0001-Update-dri-vaapi-driver-mapping-for-iris.patch @@ -0,0 +1,30 @@ +From ec97c93be5da43124e0404ab8ed520377532d116 Mon Sep 17 00:00:00 2001 +From: Nicolas Chauvet +Date: Sat, 4 Apr 2020 11:07:24 +0200 +Subject: [PATCH] Update dri/vaapi driver mapping for iris + +As reported https://github.com/intel/libva/issues/396 + +Update the driver mapping to take the new Iris intel driver into account + +Signed-off-by: Nicolas Chauvet +--- + va/drm/va_drm_utils.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/va/drm/va_drm_utils.c b/va/drm/va_drm_utils.c +index 1bd68ef..b50a4ea 100644 +--- a/va/drm/va_drm_utils.c ++++ b/va/drm/va_drm_utils.c +@@ -37,6 +37,8 @@ struct driver_name_map { + }; + + static const struct driver_name_map g_driver_name_map[] = { ++ { "iris", 4, "iHD" }, // Intel Media driver with Iris DRI driver ++ { "iris", 4, "i965" }, // Intel OTC GenX driver with Iris DRI driver + { "i915", 4, "iHD" }, // Intel Media driver + { "i915", 4, "i965" }, // Intel OTC GenX driver + { "pvrsrvkm", 8, "pvr" }, // Intel UMG PVR driver +-- +2.25.1 + diff --git a/libva.spec b/libva.spec index 9a07d9d..2389379 100644 --- a/libva.spec +++ b/libva.spec @@ -7,6 +7,7 @@ Summary: Video Acceleration (VA) API for Linux License: MIT URL: https://github.com/intel/libva Source0: %{url}/archive/%{version}%{?pre_release}/%{name}-%{version}%{?pre_release}.tar.gz +Patch0: 0001-Update-dri-vaapi-driver-mapping-for-iris.patch BuildRequires: libtool