Commit 9651b882 authored by Abhishek Kumar's avatar Abhishek Kumar Committed by Commit Bot

media/gpu/vaapi: Fix Lowpower encoder entrypoint check

crrev.com/c/2292780/ refactors profile support and added entrypoint check
in IsProfileSupported.Currently in IsLowPowerEncSupported function
all LP encoder supported profiles(kSupportedLowPowerEncodeProfiles) are
checked if it support VAEntrypointEncSliceLP and returns true if any
profile supports lp entrypoint.This Cl fixes lp encoder entrypoint check
and returns true only if va_profile(function argument) supports
VAEntrypointEncSliceLP.

Fixes:a9bbd8a5

BUG=chromium:1105103
TEST=tast run -checktestdeps=false <IP> video.EncodeAccel.vp9* on octopus

Change-Id: Ia3310db0a82f5d9663408fc785aca36773c2ab2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2334806
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795489}
parent 7177a80a
...@@ -1075,11 +1075,9 @@ bool IsLowPowerEncSupported(VAProfile va_profile) { ...@@ -1075,11 +1075,9 @@ bool IsLowPowerEncSupported(VAProfile va_profile) {
return false; return false;
} }
for (const VAProfile va_profile : kSupportedLowPowerEncodeProfiles) { if (VASupportedProfiles::Get().IsProfileSupported(
if (VASupportedProfiles::Get().IsProfileSupported( VaapiWrapper::kEncode, va_profile, VAEntrypointEncSliceLP)) {
VaapiWrapper::kEncode, va_profile, VAEntrypointEncSliceLP)) { return true;
return true;
}
} }
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment