Fix build issue of x86,i586 platform
authorTianhao Ni <tianhao.ni@samsung.com>
Mon, 28 Feb 2022 01:18:37 +0000 (09:18 +0800)
committerXuelian Bai <xuelian.bai@samsung.com>
Tue, 21 Feb 2023 06:50:48 +0000 (14:50 +0800)
Change-Id: I15595c08ad24ed3d074705b426e5061aaa68ca03
Signed-off-by: Tianhao Ni <tianhao.ni@samsung.com>
packaging/mesa.spec

index 6423c4f..473446f 100644 (file)
@@ -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