sdm: Add Display P3 mode
CRs-Fixed: 2030908
Change-Id: I86c03a79ce80c09b07ab499ffc5c022f570d2828
diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp
index 0aaad8e..dd170d7 100644
--- a/sdm/libs/hwc2/hwc_display.cpp
+++ b/sdm/libs/hwc2/hwc_display.cpp
@@ -189,6 +189,8 @@
PopulateTransform(HAL_COLOR_MODE_ADOBE_RGB, mode_string);
} else if (mode_string.find("hal_dci_p3") != std::string::npos) {
PopulateTransform(HAL_COLOR_MODE_DCI_P3, mode_string);
+ } else if (mode_string.find("hal_display_p3") != std::string::npos) {
+ PopulateTransform(HAL_COLOR_MODE_DISPLAY_P3, mode_string);
}
}
}