sdm: Add support to disable NoSplit strategy
Add support to disable NoSplit strategy by setting the system prop
"sdm.debug.prefersplit" to '1'.
CRs-Fixed: 2068538
Change-Id: I7ea1f98a8a300fa077d889a7e46768416106db6d
diff --git a/sdm/include/utils/debug.h b/sdm/include/utils/debug.h
index 0b40e7b..d5974d9 100644
--- a/sdm/include/utils/debug.h
+++ b/sdm/include/utils/debug.h
@@ -78,6 +78,7 @@
static bool IsAVRDisabled();
static bool IsExtAnimDisabled();
static bool IsPartialSplitDisabled();
+ static bool IsSrcSplitPreferred();
static DisplayError GetMixerResolution(uint32_t *width, uint32_t *height);
static DisplayError GetReducedConfig(uint32_t *num_vig_pipes, uint32_t *num_dma_pipes);
static int GetExtMaxlayers();
diff --git a/sdm/libs/utils/debug.cpp b/sdm/libs/utils/debug.cpp
index 60ce0ac..ee881ef 100644
--- a/sdm/libs/utils/debug.cpp
+++ b/sdm/libs/utils/debug.cpp
@@ -177,6 +177,13 @@
return (value == 1);
}
+bool Debug::IsSrcSplitPreferred() {
+ int value = 0;
+ debug_.debug_handler_->GetProperty("sdm.debug.prefersplit", &value);
+
+ return (value == 1);
+}
+
DisplayError Debug::GetMixerResolution(uint32_t *width, uint32_t *height) {
char value[64] = {};