diff --git a/sdm/include/utils/debug.h b/sdm/include/utils/debug.h index 0d64bbfa..a384509d 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 f2400825..98f5626d 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