diff --git a/.pick_status.json b/.pick_status.json index c5ba3550b2a..bdf41145f8e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4,7 +4,7 @@ "description": "rusticl/program: handle -cl-no-subgroup-ifp", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/gallium/frontends/rusticl/core/program.rs b/src/gallium/frontends/rusticl/core/program.rs index ce89962898c..93465c71c72 100644 --- a/src/gallium/frontends/rusticl/core/program.rs +++ b/src/gallium/frontends/rusticl/core/program.rs @@ -314,9 +314,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)