Module: Mesa
Branch: staging/23.3
Commit: a23408d57a8bf5d09e0c562c9d1bd032f5e217c7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a23408d57a8bf5d09e0c562c9d1bd032f5e217c7

Author: Karol Herbst <[email protected]>
Date:   Mon Dec 18 23:05:46 2023 +0100

rusticl: do not warn on empty RUSTICL_DEBUG or RUSTICL_FEATURES

Fixes: b90d1cfbfea ("rusticl/platform: add RUSTICL_FEATURES boilerplate")
Fixes: ca1e9917a9b ("rusticl/program: allow dumping compilation logs through 
RUSTICL_DEBUG")
Signed-off-by: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26764>
(cherry picked from commit 382718e0e1493ae9d654a667f4c5a75ac86422b6)

---

 .pick_status.json                              | 2 +-
 src/gallium/frontends/rusticl/core/platform.rs | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 136bb42286f..33b7de9321e 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -244,7 +244,7 @@
         "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
diff --git a/src/gallium/frontends/rusticl/core/platform.rs 
b/src/gallium/frontends/rusticl/core/platform.rs
index 24f60f2af9d..d9605092ca5 100644
--- a/src/gallium/frontends/rusticl/core/platform.rs
+++ b/src/gallium/frontends/rusticl/core/platform.rs
@@ -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),
             }
         }

Reply via email to