diff options
-rw-r--r-- | sdm/include/utils/debug.h | 1 | ||||
-rw-r--r-- | sdm/libs/utils/debug.cpp | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sdm/include/utils/debug.h b/sdm/include/utils/debug.h index 0d64bbfa9..a384509d7 100644 --- a/sdm/include/utils/debug.h +++ b/sdm/include/utils/debug.h @@ -70,6 +70,7 @@ class Debug { static bool IsVideoModeEnabled(); static bool IsRotatorUbwcDisabled(); static bool IsRotatorSplitDisabled(); + static bool IsScalarDisabled(); private: Debug(); diff --git a/sdm/libs/utils/debug.cpp b/sdm/libs/utils/debug.cpp index f24008254..98f5626d0 100644 --- a/sdm/libs/utils/debug.cpp +++ b/sdm/libs/utils/debug.cpp @@ -120,5 +120,12 @@ bool Debug::IsRotatorSplitDisabled() { return (value == 1); } +bool Debug::IsScalarDisabled() { + int value = 0; + debug_.debug_handler_->GetProperty("sdm.debug.disable_scalar", &value); + + return (value == 1); +} + } // namespace sdm |