b733bdb
diff -up chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc
b733bdb
--- chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc.me	2023-05-21 10:05:00.357860329 +0200
b733bdb
+++ chromium-114.0.5735.35/media/gpu/vaapi/vaapi_video_encode_accelerator.cc	2023-05-21 10:18:09.665432735 +0200
b733bdb
@@ -41,7 +41,6 @@
b733bdb
 #include "media/gpu/gpu_video_encode_accelerator_helpers.h"
b733bdb
 #include "media/gpu/h264_dpb.h"
b733bdb
 #include "media/gpu/macros.h"
b733bdb
-#include "media/gpu/vaapi/av1_vaapi_video_encoder_delegate.h"
b733bdb
 #include "media/gpu/vaapi/h264_vaapi_video_encoder_delegate.h"
b733bdb
 #include "media/gpu/vaapi/va_surface.h"
b733bdb
 #include "media/gpu/vaapi/vaapi_common.h"
b733bdb
@@ -200,7 +199,7 @@ bool VaapiVideoEncodeAccelerator::Initia
b733bdb
 
b733bdb
   const VideoCodec codec = VideoCodecProfileToVideoCodec(config.output_profile);
b733bdb
   if (codec != VideoCodec::kH264 && codec != VideoCodec::kVP8 &&
b733bdb
-      codec != VideoCodec::kVP9 && codec != VideoCodec::kAV1) {
b733bdb
+      codec != VideoCodec::kVP9) {
b733bdb
     MEDIA_LOG(ERROR, media_log.get())
b733bdb
         << "Unsupported profile: " << GetProfileName(config.output_profile);
b733bdb
     return false;
b733bdb
@@ -293,7 +292,6 @@ void VaapiVideoEncodeAccelerator::Initia
b733bdb
         break;
b733bdb
       case VideoCodec::kVP8:
b733bdb
       case VideoCodec::kVP9:
b733bdb
-      case VideoCodec::kAV1:
b733bdb
         mode = VaapiWrapper::kEncodeConstantQuantizationParameter;
b733bdb
         break;
b733bdb
       default:
b733bdb
@@ -356,12 +354,6 @@ void VaapiVideoEncodeAccelerator::Initia
b733bdb
             vaapi_wrapper_, error_cb);
b733bdb
       }
b733bdb
       break;
b733bdb
-    case VideoCodec::kAV1:
b733bdb
-      if (!IsConfiguredForTesting()) {
b733bdb
-        encoder_ = std::make_unique<AV1VaapiVideoEncoderDelegate>(
b733bdb
-            vaapi_wrapper_, error_cb);
b733bdb
-      }
b733bdb
-      break;
b733bdb
     default:
b733bdb
       NOTREACHED() << "Unsupported codec type " << GetCodecName(output_codec_);
b733bdb
       return;
b733bdb
@@ -835,10 +827,6 @@ VaapiVideoEncodeAccelerator::CreateEncod
b733bdb
     case VideoCodec::kVP9:
b733bdb
       picture = new VaapiVP9Picture(std::move(reconstructed_surface));
b733bdb
       break;
b733bdb
-    case VideoCodec::kAV1:
b733bdb
-      picture = new VaapiAV1Picture(/*display_va_surface=*/nullptr,
b733bdb
-                                    std::move(reconstructed_surface));
b733bdb
-      break;
b733bdb
     default:
b733bdb
       return nullptr;
b733bdb
   }
b733bdb
diff -up chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn
b733bdb
--- chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn.revert-av1enc	2023-05-18 00:37:57.000000000 +0200
b733bdb
+++ chromium-114.0.5735.35/media/gpu/vaapi/BUILD.gn	2023-05-20 13:14:10.756183626 +0200
b733bdb
@@ -38,8 +38,6 @@ source_set("vaapi") {
b733bdb
   sources = [
b733bdb
     "av1_vaapi_video_decoder_delegate.cc",
b733bdb
     "av1_vaapi_video_decoder_delegate.h",
b733bdb
-    "av1_vaapi_video_encoder_delegate.cc",
b733bdb
-    "av1_vaapi_video_encoder_delegate.h",
b733bdb
     "h264_vaapi_video_decoder_delegate.cc",
b733bdb
     "h264_vaapi_video_decoder_delegate.h",
b733bdb
     "h264_vaapi_video_encoder_delegate.cc",
9ef6902
diff -up chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc.me chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc
9ef6902
--- chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc.me	2023-11-02 15:08:30.921325747 +0100
9ef6902
+++ chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.cc	2023-11-02 15:09:46.123692602 +0100
9ef6902
@@ -3124,6 +3124,7 @@ bool VaapiWrapper::GetSupportedPackedHea
9ef6902
   return true;
9ef6902
 }
9ef6902
 
9ef6902
+#if 0 //disable AV1 due to old libva on epel9
9ef6902
 bool VaapiWrapper::GetMinAV1SegmentSize(VideoCodecProfile profile,
9ef6902
                                         uint32_t& min_seg_size) {
9ef6902
   CHECK(!enforce_sequence_affinity_ ||
9ef6902
@@ -3141,6 +3142,7 @@ bool VaapiWrapper::GetMinAV1SegmentSize(
9ef6902
 
9ef6902
   return true;
9ef6902
 }
9ef6902
+#endif
9ef6902
 
9ef6902
 bool VaapiWrapper::BlitSurface(const VASurface& va_surface_src,
9ef6902
                                const VASurface& va_surface_dest,
9ef6902
diff -up chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h.me chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h
9ef6902
--- chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h.me	2023-11-02 15:09:58.973928395 +0100
9ef6902
+++ chromium-119.0.6045.105/media/gpu/vaapi/vaapi_wrapper.h	2023-11-02 15:10:45.990791114 +0100
9ef6902
@@ -553,9 +553,11 @@ class MEDIA_GPU_EXPORT VaapiWrapper
9ef6902
       bool& packed_pps,
9ef6902
       bool& packed_slice);
9ef6902
 
9ef6902
+#if 0 //disable AV1 due to old libva on epel9
9ef6902
   // Gets the minimum segment block size supported for AV1 encoding.
9ef6902
   [[nodiscard]] bool GetMinAV1SegmentSize(VideoCodecProfile profile,
9ef6902
                                           uint32_t& min_seg_size);
9ef6902
+#endif
9ef6902
 
9ef6902
   // Blits a VASurface |va_surface_src| into another VASurface
9ef6902
   // |va_surface_dest| applying pixel format conversion, cropping