Bug 1787182 [Linux] Build and run VA-API test on MOZ_WAYLAND builds only r=emilio

Depends on D175236

Differential Revision: https://phabricator.services.mozilla.com/D175323
This commit is contained in:
stransky 2023-04-13 09:49:59 +00:00
parent 4337c6c266
commit aa94035b7c
3 changed files with 9 additions and 3 deletions

View File

@ -104,12 +104,12 @@
#endif
#endif
#ifdef MOZ_GTK
@BINPATH@/glxtest
@BINPATH@/@DLL_PREFIX@mozgtk@DLL_SUFFIX@
#ifdef MOZ_WAYLAND
@BINPATH@/@DLL_PREFIX@mozwayland@DLL_SUFFIX@
#endif
@BINPATH@/vaapitest
@BINPATH@/glxtest
#endif
#endif
; We don't have a complete view of which dlls to expect when doing an artifact

View File

@ -554,7 +554,8 @@ void GfxInfo::GetData() {
AddCrashReportAnnotations();
}
int fire_vaapi_process(const char* aRenderDevicePath, int* aOutPipe) {
#ifdef MOZ_WAYLAND
static int fire_vaapi_process(const char* aRenderDevicePath, int* aOutPipe) {
nsCOMPtr<nsIFile> appFile;
nsresult rv = XRE_GetBinaryPath(getter_AddRefs(appFile));
if (NS_FAILED(rv)) {
@ -705,6 +706,7 @@ void GfxInfo::GetDataVAAPI() {
}
}
}
#endif
const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
if (!sDriverInfo->Length()) {
@ -1132,7 +1134,9 @@ nsresult GfxInfo::GetFeatureStatusImpl(
// Probe VA-API on supported devices only
if (aFeature == nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING &&
*aStatus == nsIGfxInfo::FEATURE_STATUS_OK) {
#ifdef MOZ_WAYLAND
GetDataVAAPI();
#endif
if (!mIsVAAPISupported.value()) {
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_PLATFORM_TEST;
aFailureId = "FEATURE_FAILURE_VIDEO_DECODING_TEST_FAILED";

View File

@ -114,7 +114,9 @@ class GfxInfo final : public GfxInfoBase {
bool mGlxTestError;
mozilla::Maybe<bool> mIsVAAPISupported;
#ifdef MOZ_WAYLAND
void GetDataVAAPI();
#endif
void AddCrashReportAnnotations();
};