libhwc2.1: don't check SKIP_VALIDATE in HWC3
SKIP_VALIDATE is deprecated in HWC3, so we don't need to check it when
executing PresentOrValidateDisplay.
Bug: 271531314
Test: scroll
Change-Id: Iebc97333d773943a3c89b1756743d0459c66129d
diff --git a/base/hwc3/ComposerCommandEngine.cpp b/base/hwc3/ComposerCommandEngine.cpp
index f8c4861..3b06fef 100644
--- a/base/hwc3/ComposerCommandEngine.cpp
+++ b/base/hwc3/ComposerCommandEngine.cpp
@@ -206,16 +206,12 @@
void ComposerCommandEngine::executePresentOrValidateDisplay(
int64_t display, const std::optional<ClockMonotonicTimestamp> expectedPresentTime) {
executeSetExpectedPresentTimeInternal(display, expectedPresentTime);
-
- int err;
// First try to Present as is.
- if (mHal->hasCapability(Capability::SKIP_VALIDATE)) {
- err = mResources->mustValidateDisplay(display) ? IComposerClient::EX_NOT_VALIDATED
- : executePresentDisplay(display);
- if (!err) {
- mWriter->setPresentOrValidateResult(display, PresentOrValidate::Result::Presented);
- return;
- }
+ auto err = mResources->mustValidateDisplay(display) ? IComposerClient::EX_NOT_VALIDATED
+ : executePresentDisplay(display);
+ if (!err) {
+ mWriter->setPresentOrValidateResult(display, PresentOrValidate::Result::Presented);
+ return;
}
// Fallback to validate