rusticl: do not warn on empty RUSTICL_DEBUG or RUSTICL_FEATURES
authorKarol Herbst <kherbst@redhat.com>
Mon, 18 Dec 2023 22:05:46 +0000 (23:05 +0100)
committerEric Engestrom <eric@igalia.com>
Wed, 20 Dec 2023 20:19:35 +0000 (20:19 +0000)
Fixes: b90d1cfbfea ("rusticl/platform: add RUSTICL_FEATURES boilerplate")
Fixes: ca1e9917a9b ("rusticl/program: allow dumping compilation logs through RUSTICL_DEBUG")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26764>
(cherry picked from commit 382718e0e1493ae9d654a667f4c5a75ac86422b6)

.pick_status.json
src/gallium/frontends/rusticl/core/platform.rs

index 136bb42..33b7de9 100644 (file)
         "description": "rusticl: do not warn on empty RUSTICL_DEBUG or RUSTICL_FEATURES",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": "b90d1cfbfea9fe40e2ec6d44e788ab27ff213e2a",
         "notes": null
index 24f60f2..d960509 100644 (file)
@@ -79,6 +79,7 @@ fn load_env() {
                 "clc" => debug.clc = true,
                 "program" => debug.program = true,
                 "sync" => debug.sync_every_event = true,
+                "" => (),
                 _ => eprintln!("Unknown RUSTICL_DEBUG flag found: {}", flag),
             }
         }
@@ -90,6 +91,7 @@ fn load_env() {
             match flag {
                 "fp16" => features.fp16 = true,
                 "fp64" => features.fp64 = true,
+                "" => (),
                 _ => eprintln!("Unknown RUSTICL_FEATURES flag found: {}", flag),
             }
         }