hwc2: Handle Gamma2.8
Layers with gamma 2.8 were being marked as not supported and falling back to GPU, report them as supported and handle them for HW composition bug:77471420 Test: Reproduce bug scenario. With the CLs, verified both video and audio work as expected using all the video modes. Merge from https://partner-android-review.googlesource.com/#/c/1063539 Bug: 77471420 Change-Id: I5a94cbfc1ac9be22a6165803a79f6dca5711db34 Crs-fixed: 2220717
This commit is contained in:
parent
3756b400ce
commit
cefe2e70a0
|
@ -119,8 +119,11 @@ bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer) {
|
|||
case HAL_DATASPACE_TRANSFER_GAMMA2_2:
|
||||
*gamma_transfer = Transfer_Gamma2_2;
|
||||
break;
|
||||
case HAL_DATASPACE_TRANSFER_GAMMA2_8:
|
||||
*gamma_transfer = Transfer_Gamma2_8;
|
||||
break;
|
||||
default:
|
||||
DLOGV_IF(kTagStrategy, "Unsupported Transfer Request = %d", transfer);
|
||||
DLOGE("Unsupported Transfer Request = %d", transfer);
|
||||
supported_transfer = false;
|
||||
}
|
||||
return supported_transfer;
|
||||
|
|
Loading…
Reference in New Issue