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>
(cherry picked from commit cd5c9870ea)
This commit is contained in:
Karol Herbst 2024-04-22 18:23:45 +02:00 committed by Eric Engestrom
parent f174be0a3e
commit 90b256f146
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -314,9 +314,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)