From cd5c9870ea1d7e73d05f125b229f34e5749c8345 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 22 Apr 2024 18:23:45 +0200 Subject: [PATCH] rusticl/program: handle -cl-no-subgroup-ifp As per spec we don't have to do anything with that flag. Cc: mesa-stable Part-of: --- src/gallium/frontends/rusticl/core/program.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallium/frontends/rusticl/core/program.rs b/src/gallium/frontends/rusticl/core/program.rs index ffdd1a5056bca..566bd63486d44 100644 --- a/src/gallium/frontends/rusticl/core/program.rs +++ b/src/gallium/frontends/rusticl/core/program.rs @@ -326,9 +326,11 @@ fn prepare_options(options: &str, dev: &Device) -> Vec { res.push(&options[old..]); res.iter() - .map(|&a| match a { - "-cl-denorms-are-zero" => "-fdenormal-fp-math=positive-zero", - _ => a, + .filter_map(|&a| match a { + "-cl-denorms-are-zero" => Some("-fdenormal-fp-math=positive-zero"), + // We can ignore it as long as we don't support ifp + "-cl-no-subgroup-ifp" => None, + _ => Some(a), }) .map(CString::new) .map(Result::unwrap)