From b73b67431b6f3e332ef6a24c0caaf0cd6335ad14 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Nov 28 2023 21:39:54 +0000 Subject: Build vulkan hw drivers only if with_vulkan_hw is true The previous commit still build vulkan drivers but did not package them resulting rpm build errors due to unpackaged files. Fixes: 83ce8ff ("Disable Zink for now") --- diff --git a/mesa.spec b/mesa.spec index c49b0f0..5af53d1 100644 --- a/mesa.spec +++ b/mesa.spec @@ -8,7 +8,7 @@ %global with_omx 1 %global with_opencl 1 %endif -%global base_vulkan ,amd +%global base_vulkan %{?with_vulkan_hw:,amd} %endif %ifarch %{ix86} x86_64 @@ -20,7 +20,7 @@ %endif %global with_iris 1 %global with_xa 1 -%global intel_platform_vulkan ,intel,intel_hasvk +%global intel_platform_vulkan %{?with_vulkan_hw:,intel,intel_hasvk} %endif %ifarch aarch64 x86_64 %{ix86} @@ -36,7 +36,7 @@ %global with_panfrost 1 %global with_tegra 1 %global with_xa 1 -%global extra_platform_vulkan ,broadcom,freedreno,panfrost +%global extra_platform_vulkan %{?with_vulkan_hw:,broadcom,freedreno,panfrost} %endif %ifnarch s390x