Message ID | 1515564345-1339-5-git-send-email-john.stultz@linaro.org |
---|---|
State | New |
Headers | show |
Series | drm_hwcomposer: Changes to support HiKey/HiKey960 | expand |
diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp index dfca1a6..5ab4595 100644 --- a/drmhwctwo.cpp +++ b/drmhwctwo.cpp @@ -692,12 +692,10 @@ HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types, case HWC2::Composition::SolidColor: case HWC2::Composition::Cursor: case HWC2::Composition::Sideband: + default: layer.set_validated_type(HWC2::Composition::Client); ++*num_types; break; - default: - layer.set_validated_type(layer.sf_type()); - break; } } return *num_types ? HWC2::Error::HasChanges : HWC2::Error::None;