mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
f174be0a3e
commit
90b256f146
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue