Package Details: libva-intel-driver-git 2.4.1.r6.gab755cb7-1

Git Clone URL: https://aur.archlinux.org/libva-intel-driver-git.git (read-only, click to copy)
Package Base: libva-intel-driver-git
Description: VA-API implementation for Intel G45 and HD Graphics family (git version)
Upstream URL: https://01.org/linuxmedia/vaapi/
Licenses: MIT
Conflicts: libva-intel-driver
Provides: libva-intel-driver
Replaces: libva-driver-intel
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 2
Popularity: 0.011658
First Submitted: 2017-12-26 15:10 (UTC)
Last Updated: 2023-02-25 15:17 (UTC)

Dependencies (4)

Required by (31)

Sources (1)

Latest Comments

carterli commented on 2024-12-06 07:42 (UTC)

For anyone still uses old Intel iGPU

From c9d8988dfc9799db982ac0008f0bf2ab2598e09b Mon Sep 17 00:00:00 2001
From: Carter Li <zhangsongcui3371@sina.com>
Date: Fri, 6 Dec 2024 15:35:11 +0800
Subject: [PATCH] Add patch #514

https://github.com/intel/intel-vaapi-driver/pull/514
---
 514.patch | 41 +++++++++++++++++++++++++++++++++++++++++
 PKGBUILD  |  7 +++++--
 2 files changed, 46 insertions(+), 2 deletions(-)
 create mode 100644 514.patch

diff --git a/514.patch b/514.patch
new file mode 100644
index 0000000..f63e32a
--- /dev/null
+++ b/514.patch
@@ -0,0 +1,41 @@
+From 3aa8fbe690e33e2026002f7af713d52faf1bd617 Mon Sep 17 00:00:00 2001
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Sun, 5 Jul 2020 19:27:11 +0200
+Subject: [PATCH] fix exporting buffers with 3 planes and
+ VA_EXPORT_SURFACE_SEPARATE_LAYERS
+
+To get the plane offset, y_cb_offset or y_cr_offset must be multiplied with
+the pitch for the 'Y' plane. See for example i965_DeriveImage().
+
+Without this, exporting formats with 3 planes where cb_cr_pitch == width/2
+is broken, because the offset of the third plane is calculated incorrectly.
+---
+ src/i965_drv_video.c | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
+index ff163887e..2202b8494 100644
+--- a/src/i965_drv_video.c
++++ b/src/i965_drv_video.c
+@@ -6904,16 +6904,17 @@ i965_ExportSurfaceHandle(VADriverContextP ctx, VASurfaceID surface_id,
+                 else
+                   y_offset = obj_surface->y_cr_offset;
+             } else {
+-                y_offset = obj_surface->y_cr_offset - obj_surface->y_cb_offset;              
+-                if (y_offset < 0)
+-                  y_offset = -y_offset;
++                if (obj_surface->y_cb_offset < obj_surface->y_cr_offset)
++                  y_offset = obj_surface->y_cr_offset;
++                else
++                  y_offset = obj_surface->y_cb_offset;
+                 pitch  = obj_surface->cb_cr_pitch;
+                 height = obj_surface->cb_cr_height;
+             }
+ 
+             desc->layers[p].offset[0] = offset;
+             desc->layers[p].pitch[0]  = pitch;
+-            offset += pitch * y_offset;
++            offset = obj_surface->width * y_offset;
+         }
+     }
+ 
diff --git a/PKGBUILD b/PKGBUILD
index 7657a17..b9457bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
 # Maintainer: Daniel Bermond <dbermond@archlinux.org>

 pkgname=libva-intel-driver-git
-pkgver=2.4.1.r6.gab755cb7
+pkgver=2.4.1.r10.gfd727a4e
 pkgrel=1
 pkgdesc='VA-API implementation for Intel G45 and HD Graphics family (git version)'
 arch=('x86_64')
 url='https://01.org/linuxmedia/vaapi/'
 license=('MIT')
-depends=('libdrm' 'libva-git')
+depends=('libdrm' 'libva')
 makedepends=('git' 'meson')
 provides=('libva-intel-driver')
 conflicts=('libva-intel-driver')
@@ -19,6 +19,9 @@ prepare() {
     # Only relevant if intel-gpu-tools is installed,
     # since then the shaders will be recompiled
     sed -i '1s/python$/&2/' intel-vaapi-driver/src/shaders/gpp.py
+
+    cd intel-vaapi-driver
+    patch -Np1 -i ../../514.patch
 }

 pkgver() {
-- 
2.47.1