From 3e0d0f34ccc61769ec2ed024ce85cc85fd1b9e6f Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sat, 10 Jan 2026 11:41:44 +0100 Subject: [PATCH] fix(hwaccel): make beignet-opencl-icd optional for legacy Intel GPUs (#10677) - Check if beignet-opencl-icd package is available before installation - Package was removed in Debian 12+ and Ubuntu 22.04+ - VA-API hardware acceleration still works without OpenCL - Prevents installation failure on systems with Intel HD 2000-5999 GPUs --- misc/tools.func | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 8debfe9b2..43050ca5c 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2926,8 +2926,15 @@ _setup_intel_legacy() { vainfo \ intel-gpu-tools 2>/dev/null || msg_warn "Some Intel legacy packages failed" - # beignet provides OpenCL for older Intel GPUs (if available) - $STD apt -y install beignet-opencl-icd 2>/dev/null || true + # beignet provides OpenCL for older Intel GPUs (Sandy Bridge to Broadwell) + # Note: beignet-opencl-icd was removed in Debian 12+ and Ubuntu 22.04+ + # Check if package is available before attempting installation + if apt-cache show beignet-opencl-icd &>/dev/null; then + $STD apt -y install beignet-opencl-icd 2>/dev/null || msg_warn "beignet-opencl-icd installation failed (optional)" + else + msg_warn "beignet-opencl-icd not available - OpenCL support for legacy Intel GPU limited" + msg_warn "Note: Hardware video encoding/decoding (VA-API) still works without OpenCL" + fi msg_ok "Intel Legacy GPU configured" }