Module: Mesa Branch: main Commit: 382718e0e1493ae9d654a667f4c5a75ac86422b6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=382718e0e1493ae9d654a667f4c5a75ac86422b6
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> --- src/gallium/frontends/rusticl/core/platform.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/rusticl/core/platform.rs b/src/gallium/frontends/rusticl/core/platform.rs index 9b6df3dfc8f..6e948e358c5 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), } }
