From 4ba95cb475143f64943221891426600c2a98f35b Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 3 Jun 2024 18:53:54 -0400 Subject: [PATCH] Enable libclc in RHEL builds As of 24.1, the Intel drivers cannot be built without libclc. --- mesa.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mesa.spec b/mesa.spec index ee92cdd..0629003 100644 --- a/mesa.spec +++ b/mesa.spec @@ -27,9 +27,7 @@ %global with_i915 1 %global with_iris 1 %global with_xa 1 -%if !0%{?rhel} %global with_intel_clc 1 -%endif %global intel_platform_vulkan ,intel,intel_hasvk %endif %ifarch x86_64 @@ -143,14 +141,16 @@ BuildRequires: flatbuffers-devel BuildRequires: flatbuffers-compiler BuildRequires: xtensor-devel %endif -%if 0%{?with_opencl} || 0%{?with_nvk} +%if 0%{?with_opencl} || 0%{?with_nvk} || 0%{?with_intel_clc} BuildRequires: clang-devel -BuildRequires: bindgen -BuildRequires: rust-packaging BuildRequires: pkgconfig(libclc) BuildRequires: pkgconfig(SPIRV-Tools) BuildRequires: pkgconfig(LLVMSPIRVLib) %endif +%if 0%{?with_opencl} || 0%{?with_nvk} +BuildRequires: bindgen +BuildRequires: rust-packaging +%endif %if 0%{?with_nvk} BuildRequires: cbindgen BuildRequires: (crate(paste) >= 1.0.14 with crate(paste) < 2)