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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28873>
This commit is contained in:
Karol Herbst 2024-04-22 18:23:45 +02:00 committed by Marge Bot
parent ca861e8f75
commit cd5c9870ea
1 changed files with 5 additions and 3 deletions

View File

@ -326,9 +326,11 @@ fn prepare_options(options: &str, dev: &Device) -> Vec<CString> {
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)