5fce08a6c5
[ci skip] - Built for x86_64 and x86_64-musl. - Tested on x86_64. - Turn on vaapi build option by default. With this build option, the chromium package now supports VA-API for Intel and AMD GPUs. However, users must opt-in to enabling this feature at run-time by enabling "Override software rendering list" in chrome://flags or by passing the --ignore-gpu-blacklist to chromium. Otherwise this feature is disabled and not used. This has been tested with YouTube with multiple Intel GPUs. - Add ffmpeg patch to workaround some problems with ffmpeg 4.3: https://bugs.chromium.org/p/chromium/issues/detail?id=1095962
40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
From 9ff06536caf7ea51aad9fd2bb649c858eaf7ee84 Mon Sep 17 00:00:00 2001
|
|
From: Akarshan Biswas <akarshanbiswas@fedoraproject.org>
|
|
Date: Sat, 26 Oct 2019 10:06:30 +0530
|
|
Subject: [PATCH] Move offending function to chromeos only
|
|
|
|
--- media/gpu/vaapi/vaapi_video_decode_accelerator.cc
|
|
+++ media/gpu/vaapi/vaapi_video_decode_accelerator.cc
|
|
@@ -66,6 +66,7 @@ void ReportToUMA(VAVDADecoderFailure fai
|
|
VAVDA_DECODER_FAILURES_MAX + 1);
|
|
}
|
|
|
|
+#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
|
|
// Returns true if the CPU is an Intel Gemini Lake or later (including Kaby
|
|
// Lake) Cpu platform id's are referenced from the following file in kernel
|
|
// source arch/x86/include/asm/intel-family.h
|
|
@@ -78,6 +79,7 @@ bool IsGeminiLakeOrLater() {
|
|
cpuid.model() >= kGeminiLakeModelId;
|
|
return is_geminilake_or_later;
|
|
}
|
|
+#endif
|
|
|
|
} // namespace
|
|
|
|
@@ -1155,6 +1157,8 @@ VaapiVideoDecodeAccelerator::DecideBuffe
|
|
if (output_mode_ == VideoDecodeAccelerator::Config::OutputMode::IMPORT)
|
|
return BufferAllocationMode::kNormal;
|
|
|
|
+#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
|
|
+ // Move this to chromeOs only as it is causing problem in some intel linux drivers
|
|
// On Gemini Lake, Kaby Lake and later we can pass to libva the client's
|
|
// PictureBuffers to decode onto, which skips the use of the Vpp unit and its
|
|
// associated format reconciliation copy, avoiding all internal buffer
|
|
@@ -1171,6 +1175,7 @@ VaapiVideoDecodeAccelerator::DecideBuffe
|
|
num_extra_pics_ = 3;
|
|
return BufferAllocationMode::kNone;
|
|
}
|
|
+#endif
|
|
|
|
// If we're here, we have to use the Vpp unit and allocate buffers for
|
|
// |decoder_|; usually we'd have to allocate the |decoder_|s
|