Skip to content

Commit e6aeda8

Browse files
committed
Use client composition for dGPU local memory layers
Signed-off-by: Weifeng Liu <[email protected]>
1 parent 0e39068 commit e6aeda8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/Backend.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ bool Backend::IsClientLayer(HwcDisplay *display, HwcLayer *layer) {
123123
!layer->IsLayerUsableAsDevice() ||
124124
display->color_transform_hint() != HAL_COLOR_TRANSFORM_IDENTITY ||
125125
(layer->GetLayerData().pi.RequireScalingOrPhasing() &&
126-
display->GetHwc2()->GetResMan().ForcedScalingWithGpu()) ||
127-
(!IsVideoLayer(layer) && IsDownScaling(layer)) ||
126+
display->GetHwc2()->GetResMan().ForcedScalingWithGpu()) ||
127+
(!IsVideoLayer(layer) && IsDownScaling(layer)) ||
128+
has_local_memory_flag(layer->GetLayerData().bi->usage) ||
128129
(!display->IsInHeadlessMode() && display->GetPipe().device->IsIvshmDev());
129130
}
130131

0 commit comments

Comments
 (0)