diff options
Diffstat (limited to 'wayland-egl.patch')
-rw-r--r-- | wayland-egl.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/wayland-egl.patch b/wayland-egl.patch index 58a079862f35..34e274e6c3da 100644 --- a/wayland-egl.patch +++ b/wayland-egl.patch @@ -1,3 +1,39 @@ +--- a/media/gpu/vaapi/vaapi_video_decode_accelerator.cc 2020-10-07 09:38:47.000000000 -0700 ++++ b/media/gpu/vaapi/vaapi_video_decode_accelerator.cc 2020-10-08 14:09:34.550174093 -0700 +@@ -698,7 +698,6 @@ + // The X11/ANGLE implementation can use |vaapi_wrapper_| to copy from an + // internal libva buffer into an X Pixmap without having to use a processing + // wrapper. +-#if !defined(USE_X11) + // If we aren't in BufferAllocationMode::kNone, we have to allocate a + // |vpp_vaapi_wrapper_| for VaapiPicture to DownloadFromSurface() the VA's + // internal decoded frame. +@@ -708,6 +707,7 @@ + VaapiWrapper::kVideoProcess, VAProfileNone, + base::Bind(&ReportVaapiErrorToUMA, + "Media.VaapiVideoDecodeAccelerator.Vpp.VAAPIError")); ++#if !defined(USE_X11) + RETURN_AND_NOTIFY_ON_FAILURE(vpp_vaapi_wrapper_, + "Failed to initialize VppVaapiWrapper", + PLATFORM_FAILURE, ); +@@ -715,11 +715,15 @@ + RETURN_AND_NOTIFY_ON_FAILURE( + vpp_vaapi_wrapper_->CreateContext(gfx::Size()), + "Failed to create Context", PLATFORM_FAILURE, ); ++#else ++ if (vpp_vaapi_wrapper_) ++ vpp_vaapi_wrapper_->CreateContext(gfx::Size()); ++#endif // !defined(USE_X11) + } +- vaapi_wrapper_for_picture = vpp_vaapi_wrapper_; ++ vaapi_wrapper_for_picture = (vpp_vaapi_wrapper_)? ++ vpp_vaapi_wrapper_:vaapi_wrapper_for_picture; + } + +-#endif // !defined(USE_X11) + + for (size_t i = 0; i < buffers.size(); ++i) { + // TODO(b/139460315): Create with buffers[i] once the AMD driver issue is --- a/ui/gl/gl_image_native_pixmap.cc 2020-05-18 11:40:06.000000000 -0700 +++ b/ui/gl/gl_image_native_pixmap.cc 2020-05-22 02:07:16.007770442 -0700 @@ -288,6 +288,8 @@ |