From 067dd99d18720a27c9fc33c43fe6ef773fdfacd4 Mon Sep 17 00:00:00 2001 From: Muhammed Efe Cetin Date: Mon, 7 Oct 2024 00:58:16 +0300 Subject: [PATCH] mesa-vpu: don't override DEFAULT_OVERLAYS --- extensions/mesa-vpu.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/mesa-vpu.sh b/extensions/mesa-vpu.sh index 0e647adf74e0..6cb7c04b234a 100644 --- a/extensions/mesa-vpu.sh +++ b/extensions/mesa-vpu.sh @@ -29,7 +29,11 @@ function extension_prepare_config__3d() { # This should be enabled on all for rk3588 distributions where mesa and vendor kernel is present if [[ "${LINUXFAMILY}" =~ ^(rockchip-rk3588|rk35xx)$ && "$BRANCH" == vendor ]]; then - declare -g DEFAULT_OVERLAYS="panthor-gpu" + if [[ -n $DEFAULT_OVERLAYS ]]; then + DEFAULT_OVERLAYS+=" panthor-gpu" + else + declare -g DEFAULT_OVERLAYS="panthor-gpu" + fi fi }