hwc2: Do not throw error on unspecified dataspace attribute
A legacy or non-WCG App may keep the Standard, Transfer or Range
attribute of data-space as UNSPECIFIED, which is the default value.
Do not throw error in such cases. HWC is marking such layer as SKIP.
CRs-Fixed: 2239912
Change-Id: I7b508f0dc4e569936ce097e8ff32032e28f365c0
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp
index a9be2bc..6a1c82c 100644
--- a/sdm/libs/hwc2/hwc_layers.cpp
+++ b/sdm/libs/hwc2/hwc_layers.cpp
@@ -86,7 +86,7 @@
*color_primary = ColorPrimaries_BT2020;
break;
default:
- DLOGE("Unsupported Standard Request = %d", standard);
+ DLOGV_IF(kTagClient, "Unsupported Standard Request = %d", standard);
supported_csc = false;
}
return supported_csc;
@@ -118,7 +118,7 @@
*gamma_transfer = Transfer_Gamma2_8;
break;
default:
- DLOGE("Unsupported Transfer Request = %d", transfer);
+ DLOGV_IF(kTagClient, "Unsupported Transfer Request = %d", transfer);
supported_transfer = false;
}
return supported_transfer;
@@ -137,7 +137,7 @@
*color_range = Range_Extended;
break;
default:
- DLOGE("Unsupported Range Request = %d", range);
+ DLOGV_IF(kTagClient, "Unsupported Range Request = %d", range);
return false;
}
return true;