summaryrefslogtreecommitdiff
path: root/sdm/libs/core
diff options
context:
space:
mode:
authorSushil Chauhan <sushilchauhan@codeaurora.org>2018-02-04 22:47:54 -0800
committerSushil Chauhan <sushilchauhan@codeaurora.org>2018-02-05 11:35:20 -0800
commit32c1869e20e432a7d4990b66c3515491c46cdf48 (patch)
tree3a6551b859a3cb020c871bd6026eea7b925d94b9 /sdm/libs/core
parentf5464da30116baa43cc1e4e9e5a6af980dca11ac (diff)
downloaddisplay-32c1869e20e432a7d4990b66c3515491c46cdf48.tar.gz
sdm: hwc2: Update HDR blend color space in SDM layer stack
Update the ColorPrimaries and Transfer of HDR blending color space in SDM layer stack. CRs-Fixed: 2167954 Change-Id: I0298ebb004e658fda1e12603d49086129473e53d
Diffstat (limited to 'sdm/libs/core')
-rw-r--r--sdm/libs/core/display_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdm/libs/core/display_base.cpp b/sdm/libs/core/display_base.cpp
index 383bdba7..441aaaa9 100644
--- a/sdm/libs/core/display_base.cpp
+++ b/sdm/libs/core/display_base.cpp
@@ -1525,7 +1525,7 @@ DisplayError DisplayBase::ValidateHDR(LayerStack *layer_stack) {
// HDR color mode is set when hdr layer is present in layer_stack.
// If client flags HDR layer as skipped, then blending happens
// in SDR color space. Hence, need to restore the SDR color mode.
- if (layer_stack->blend_cs != ColorPrimaries_BT2020) {
+ if (layer_stack->blend_cs.first != ColorPrimaries_BT2020) {
error = SetHDRMode(false);
if (error != kErrorNone) {
DLOGW("Failed to restore SDR mode");