mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
intel-vaapi-driver: update to intel-vaapi-driver-2.4.0
This commit is contained in:
parent
cf785757ce
commit
bc0eb53541
@ -3,8 +3,8 @@
|
|||||||
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="intel-vaapi-driver"
|
PKG_NAME="intel-vaapi-driver"
|
||||||
PKG_VERSION="2.3.0"
|
PKG_VERSION="2.4.0"
|
||||||
PKG_SHA256="fcc3f09291e58fd316fd015d4e1329e7e03c38cffa4651bda725d500a66aa74e"
|
PKG_SHA256="58567dac882167021f031489062cbbab76bc646214be0ee44d5f724d960b3d76"
|
||||||
PKG_ARCH="x86_64"
|
PKG_ARCH="x86_64"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://01.org/linuxmedia"
|
PKG_SITE="https://01.org/linuxmedia"
|
||||||
|
@ -1,81 +0,0 @@
|
|||||||
From fa7fd06b25e98a6af3b221eb7c653887f53ece3d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Haihao Xiang <haihao.xiang@intel.com>
|
|
||||||
Date: Fri, 7 Dec 2018 13:31:43 +0800
|
|
||||||
Subject: [PATCH] Check the interface from libva first
|
|
||||||
|
|
||||||
And bump libva dependency to 1.4.0
|
|
||||||
|
|
||||||
This fixes https://github.com/intel/intel-vaapi-driver/issues/419
|
|
||||||
|
|
||||||
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
|
|
||||||
---
|
|
||||||
configure.ac | 2 +-
|
|
||||||
src/i965_output_wayland.c | 27 ++++++++++++++++-----------
|
|
||||||
2 files changed, 17 insertions(+), 12 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 6cde1a3a..a0b462fb 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -10,7 +10,7 @@ m4_append([intel_vaapi_driver_version], intel_vaapi_driver_pre_version, [.pre])
|
|
||||||
])
|
|
||||||
|
|
||||||
# libva minimum version requirement
|
|
||||||
-m4_define([va_api_version], [1.1.0])
|
|
||||||
+m4_define([va_api_version], [1.4.0])
|
|
||||||
|
|
||||||
# libdrm minimum version requirement
|
|
||||||
m4_define([libdrm_version], [2.4.52])
|
|
||||||
diff --git a/src/i965_output_wayland.c b/src/i965_output_wayland.c
|
|
||||||
index 122db953..a637552e 100644
|
|
||||||
--- a/src/i965_output_wayland.c
|
|
||||||
+++ b/src/i965_output_wayland.c
|
|
||||||
@@ -397,6 +397,7 @@ i965_output_wayland_init(VADriverContextP ctx)
|
|
||||||
struct i965_driver_data * const i965 = i965_driver_data(ctx);
|
|
||||||
struct dso_handle *dso_handle;
|
|
||||||
struct wl_vtable *wl_vtable;
|
|
||||||
+ struct VADriverVTableWayland * const vtable = ctx->vtable_wayland;
|
|
||||||
|
|
||||||
static const struct dso_symbol libegl_symbols[] = {
|
|
||||||
{
|
|
||||||
@@ -465,25 +466,29 @@ i965_output_wayland_init(VADriverContextP ctx)
|
|
||||||
if (!i965->wl_output)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
- i965->wl_output->libegl_handle = dso_open(LIBEGL_NAME);
|
|
||||||
- if (!i965->wl_output->libegl_handle) {
|
|
||||||
- i965->wl_output->libegl_handle = dso_open(LIBEGL_NAME_FALLBACK);
|
|
||||||
- if (!i965->wl_output->libegl_handle)
|
|
||||||
+ wl_vtable = &i965->wl_output->vtable;
|
|
||||||
+
|
|
||||||
+ if (vtable->wl_interface)
|
|
||||||
+ wl_vtable->drm_interface = vtable->wl_interface;
|
|
||||||
+ else {
|
|
||||||
+ i965->wl_output->libegl_handle = dso_open(LIBEGL_NAME);
|
|
||||||
+ if (!i965->wl_output->libegl_handle) {
|
|
||||||
+ i965->wl_output->libegl_handle = dso_open(LIBEGL_NAME_FALLBACK);
|
|
||||||
+ if (!i965->wl_output->libegl_handle)
|
|
||||||
+ goto error;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ dso_handle = i965->wl_output->libegl_handle;
|
|
||||||
+ if (!dso_get_symbols(dso_handle, wl_vtable, sizeof(*wl_vtable),
|
|
||||||
+ libegl_symbols))
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
- dso_handle = i965->wl_output->libegl_handle;
|
|
||||||
- wl_vtable = &i965->wl_output->vtable;
|
|
||||||
- if (!dso_get_symbols(dso_handle, wl_vtable, sizeof(*wl_vtable),
|
|
||||||
- libegl_symbols))
|
|
||||||
- goto error;
|
|
||||||
-
|
|
||||||
i965->wl_output->libwl_client_handle = dso_open(LIBWAYLAND_CLIENT_NAME);
|
|
||||||
if (!i965->wl_output->libwl_client_handle)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
dso_handle = i965->wl_output->libwl_client_handle;
|
|
||||||
- wl_vtable = &i965->wl_output->vtable;
|
|
||||||
if (!dso_get_symbols(dso_handle, wl_vtable, sizeof(*wl_vtable),
|
|
||||||
libwl_client_symbols))
|
|
||||||
goto error;
|
|
Loading…
x
Reference in New Issue
Block a user