- Add patch to build on Leap 42.x:

* chromium-old-libva.patch

OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1203
This commit is contained in:
Tomáš Chvátal
2018-12-06 14:13:38 +00:00
committed by Git OBS Bridge
parent 489392659f
commit d4a60b5560
3 changed files with 23 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 6 14:13:10 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch to build on Leap 42.x:
* chromium-old-libva.patch
-------------------------------------------------------------------
Thu Dec 6 08:41:53 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
+1
View File
@@ -77,6 +77,7 @@ Patch11: chromium-system-libusb.patch
Patch12: chromium-old-glibc.patch
Patch13: chromium-initialize-list.patch
Patch14: chromium-skia-aarch64-buildfix.patch
Patch15: chromium-old-libva.patch
# Google seem not too keen on merging this but GPU accel is quite important
# https://chromium-review.googlesource.com/c/chromium/src/+/532294
# https://github.com/saiarcot895/chromium-ubuntu-build/tree/master/debian/patches
+16
View File
@@ -0,0 +1,16 @@
Index: chromium-71.0.3578.80/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
===================================================================
--- chromium-71.0.3578.80.orig/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
+++ chromium-71.0.3578.80/media/gpu/vaapi/vaapi_jpeg_decode_accelerator.cc
@@ -58,9 +58,11 @@ constexpr VAImageFormat kImageFormatYUYV
bool VaSurfaceFormatToImageFormat(uint32_t va_rt_format,
VAImageFormat* va_image_format) {
switch (va_rt_format) {
+#ifdef VA_FOURCC_I420
case VA_RT_FORMAT_YUV420:
*va_image_format = kImageFormatI420;
return true;
+#endif
case VA_RT_FORMAT_YUV422:
*va_image_format = kImageFormatYUYV;
return true;