From 1b596cfd68d7291b106e7066a72d80667f5a7853 Mon Sep 17 00:00:00 2001 From: Tianhao Ni Date: Mon, 28 Feb 2022 09:18:37 +0800 Subject: [PATCH] Fix build issue of x86,i586 platform Change-Id: I15595c08ad24ed3d074705b426e5061aaa68ca03 Signed-off-by: Tianhao Ni --- packaging/mesa.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packaging/mesa.spec b/packaging/mesa.spec index 6423c4f..473446f 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -44,10 +44,6 @@ BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24 ExclusiveArch: %endif -%define USE_GBM 0 -%define USE_VULKAN 1 -%define VULKAN_DRIVER broadcom - %define enable_driver() %{expand:%%{?!enable_%{1}: %%global enable_%{1} 1}} %ifarch %ix86 x86_64 @@ -55,6 +51,9 @@ ExclusiveArch: %define vulkan_drivers "" %define dri_drivers "" %else +%define USE_GBM 0 +%define USE_VULKAN 1 +%define VULKAN_DRIVER broadcom %if %{USE_LLVM} == 1 %enable_driver llvm %endif -- 2.7.4