Browse Source

mesa-pvr: refresh patches to remove fuzz

Andreas Cord-Landwehr 1 year ago
parent
commit
7b1d323921
68 changed files with 466 additions and 620 deletions
  1. 20 23
      recipes-graphics/mesa/mesa-pvr/0001-Add-pvr-dri-driver.patch
  2. 4 6
      recipes-graphics/mesa/mesa-pvr/0002-Force-Mesa-to-use-the-PVR-driver-for-platform-device.patch
  3. 7 9
      recipes-graphics/mesa/mesa-pvr/0003-dri-Add-some-new-DRI-formats-and-fourccs.patch
  4. 5 8
      recipes-graphics/mesa/mesa-pvr/0004-GL_EXT_sparse_texture-entry-points.patch
  5. 5 7
      recipes-graphics/mesa/mesa-pvr/0005-Add-support-for-various-GLES-extensions.patch
  6. 8 10
      recipes-graphics/mesa/mesa-pvr/0006-Add-EGL_IMG_cl_image-extension.patch
  7. 5 7
      recipes-graphics/mesa/mesa-pvr/0007-egl-Be-stricter-when-making-a-context-current-withou.patch
  8. 5 7
      recipes-graphics/mesa/mesa-pvr/0008-egl-optimise-eglMakeCurrent-for-the-case-where-nothi.patch
  9. 5 8
      recipes-graphics/mesa/mesa-pvr/0009-GL_EXT_shader_pixel_local_storage2-entry-points.patch
  10. 5 8
      recipes-graphics/mesa/mesa-pvr/0010-GL_IMG_framebuffer_downsample-entry-points.patch
  11. 4 7
      recipes-graphics/mesa/mesa-pvr/0011-GL_OVR_multiview-entry-points.patch
  12. 5 8
      recipes-graphics/mesa/mesa-pvr/0012-Add-OVR_multiview_multisampled_render_to_texture.patch
  13. 5 7
      recipes-graphics/mesa/mesa-pvr/0013-wayland-drm-install-wayland-drm.xml-to-the-configure.patch
  14. 4 6
      recipes-graphics/mesa/mesa-pvr/0014-Enable-buffer-sharing-in-the-kms_swrast-driver.patch
  15. 3 6
      recipes-graphics/mesa/mesa-pvr/0015-egl-wayland-add-support-for-RGB565-back-buffers.patch
  16. 4 6
      recipes-graphics/mesa/mesa-pvr/0016-egl-dri3-fix-segfault-in-eglCopyBuffers.patch
  17. 4 6
      recipes-graphics/mesa/mesa-pvr/0017-egl-automatically-call-eglReleaseThread-on-thread-te.patch
  18. 13 15
      recipes-graphics/mesa/mesa-pvr/0018-egl-add-Tizen-platform-support.patch
  19. 6 9
      recipes-graphics/mesa/mesa-pvr/0019-egl-add-support-for-EGL_TIZEN_image_native_surface.patch
  20. 4 6
      recipes-graphics/mesa/mesa-pvr/0020-egl-wayland-post-maximum-damage-when-blitting.patch
  21. 4 6
      recipes-graphics/mesa/mesa-pvr/0021-egl-wayland-flush-the-drawable-before-blitting.patch
  22. 6 9
      recipes-graphics/mesa/mesa-pvr/0022-egl-tizen-create-an-internal-_EGLImage-for-each-tbm-.patch
  23. 4 6
      recipes-graphics/mesa/mesa-pvr/0023-dri-use-a-supported-API-in-driCreateNewContext.patch
  24. 8 10
      recipes-graphics/mesa/mesa-pvr/0024-gbm-add-gbm_bo_blit.patch
  25. 4 6
      recipes-graphics/mesa/mesa-pvr/0025-gbm-don-t-assert-if-DRI-context-creation-fails.patch
  26. 5 7
      recipes-graphics/mesa/mesa-pvr/0026-egl-wayland-add-pbuffer-support.patch
  27. 5 7
      recipes-graphics/mesa/mesa-pvr/0027-egl-tizen-support-DRI-driver-handling-of-swap-preser.patch
  28. 4 6
      recipes-graphics/mesa/mesa-pvr/0028-egl-eglBindAPI-workaround-for-dEQP-bug.patch
  29. 4 7
      recipes-graphics/mesa/mesa-pvr/0029-GL_EXT_multi_draw_indirect-entry-points.patch
  30. 17 19
      recipes-graphics/mesa/mesa-pvr/0030-dri-add-support-for-YUV-DRI-config.patch
  31. 9 11
      recipes-graphics/mesa/mesa-pvr/0031-egl-add-support-for-EXT_yuv_surface.patch
  32. 4 6
      recipes-graphics/mesa/mesa-pvr/0032-dri-add-missing-__DRI_IMAGE_COMPONENTS-define-for-EG.patch
  33. 5 7
      recipes-graphics/mesa/mesa-pvr/0033-egl-wayland-expose-EXT_yuv_surface-support.patch
  34. 4 6
      recipes-graphics/mesa/mesa-pvr/0034-egl-tizen-expose-EXT_yuv_surface-support.patch
  35. 5 7
      recipes-graphics/mesa/mesa-pvr/0035-gbm-add-some-new-GBM-formats.patch
  36. 11 14
      recipes-graphics/mesa/mesa-pvr/0036-egl-add-null-platform.patch
  37. 9 11
      recipes-graphics/mesa/mesa-pvr/0037-egl-add-config-debug-printout.patch
  38. 7 10
      recipes-graphics/mesa/mesa-pvr/0038-egl-add-support-for-EXT_image_gl_colorspace.patch
  39. 4 6
      recipes-graphics/mesa/mesa-pvr/0039-meson-force-C-2011-for-thread_local.patch
  40. 5 7
      recipes-graphics/mesa/mesa-pvr/0040-dri2-add-support-for-swap-intervals-other-than-1.patch
  41. 5 7
      recipes-graphics/mesa/mesa-pvr/0041-null_platform-add-support-for-explicit-synchronisati.patch
  42. 6 8
      recipes-graphics/mesa/mesa-pvr/0042-egl-null-add-support-for-DRM-image-format-modifiers.patch
  43. 10 12
      recipes-graphics/mesa/mesa-pvr/0043-egl-query-the-supported-ES2-context-version.patch
  44. 8 10
      recipes-graphics/mesa/mesa-pvr/0044-meson-allow-libGL-to-be-built-without-GLX.patch
  45. 4 6
      recipes-graphics/mesa/mesa-pvr/0045-egl-wayland-process-non-resized-window-movement.patch
  46. 9 11
      recipes-graphics/mesa/mesa-pvr/0046-Separate-EXT_framebuffer_object-from-ARB-version.patch
  47. 18 20
      recipes-graphics/mesa/mesa-pvr/0047-egl-null-add-support-for-async-flip-with-front-buffe.patch
  48. 6 8
      recipes-graphics/mesa/mesa-pvr/0048-gbm-add-pbuffer-support.patch
  49. 5 8
      recipes-graphics/mesa/mesa-pvr/0049-egl-null-expose-EXT_yuv_surface-support.patch
  50. 12 14
      recipes-graphics/mesa/mesa-pvr/0050-dri-preserve-the-original-FD-for-driver-use.patch
  51. 5 7
      recipes-graphics/mesa/mesa-pvr/0051-egl-wayland-a-linear-buffer-is-not-needed-with-DRM-f.patch
  52. 7 10
      recipes-graphics/mesa/mesa-pvr/0052-dri3-a-linear-buffer-is-not-needed-with-DRM-format-m.patch
  53. 8 10
      recipes-graphics/mesa/mesa-pvr/0053-egl-drm-add-support-for-DRI_PRIME-GPU-selection.patch
  54. 24 26
      recipes-graphics/mesa/mesa-pvr/0054-egl-null-add-support-for-DRI_PRIME-GPU-selection.patch
  55. 7 9
      recipes-graphics/mesa/mesa-pvr/0055-egl-null-introduce-NULL_DRM_DISPLAY.patch
  56. 4 7
      recipes-graphics/mesa/mesa-pvr/0056-vulkan-wsi-check-the-DRI3-and-Present-XCB-reply-poin.patch
  57. 8 10
      recipes-graphics/mesa/mesa-pvr/0057-vulkan-wsi-Allow-host-visible-memory-to-be-requested.patch
  58. 9 11
      recipes-graphics/mesa/mesa-pvr/0058-vulkan-wsi-make-the-display-FD-available.patch
  59. 14 16
      recipes-graphics/mesa/mesa-pvr/0059-pvr-wsi-add-PowerVR-Vulkan-WSI-library.patch
  60. 6 8
      recipes-graphics/mesa/mesa-pvr/0060-vulkan-wsi-Disable-use-of-VK_EXT_pci_bus_info.patch
  61. 4 6
      recipes-graphics/mesa/mesa-pvr/0061-vulkan-wsi-default-to-force_bgra8_unorm_first-true.patch
  62. 4 6
      recipes-graphics/mesa/mesa-pvr/0062-vulkan-wsi-enable-additional-formats-for-Wayland.patch
  63. 4 6
      recipes-graphics/mesa/mesa-pvr/0063-vulkan-wsi-enable-additional-formats-for-Display.patch
  64. 14 17
      recipes-graphics/mesa/mesa-pvr/0064-mesa-main-dri-add-YUV420_3PLANE-and-YVU420_3PLANE.patch
  65. 5 8
      recipes-graphics/mesa/mesa-pvr/0065-egl-null-add-support-for-YU12-and-YV12.patch
  66. 5 7
      recipes-graphics/mesa/mesa-pvr/0066-mesa-partially-revert-pbuffer-attribute-removal.patch
  67. 5 7
      recipes-graphics/mesa/mesa-pvr/0067-egl_dri2-set-pbuffer-config-attribs-to-0-for-non-pbu.patch
  68. 5 8
      recipes-graphics/mesa/mesa-pvr/0068-GL_ARB_geometry_shader4-entry-points.patch

+ 20 - 23
recipes-graphics/mesa/mesa-pvr/0001-Add-pvr-dri-driver.patch

@@ -1,7 +1,7 @@
-From 1546e69ae9fec54134bc06146143511b4374bf4a Mon Sep 17 00:00:00 2001
+From a97794e871281ac4a8184e65f988bb6d37250500 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Tue, 14 Apr 2020 09:47:46 +0100
-Subject: [PATCH 01/67] Add pvr dri driver
+Subject: [PATCH] Add pvr dri driver
 
 ---
  meson.build                               |  19 +-
@@ -39,7 +39,7 @@ Subject: [PATCH 01/67] Add pvr dri driver
  create mode 100644 src/mesa/drivers/dri/pvr/pvrutil.c
 
 diff --git a/meson.build b/meson.build
-index 155db287796..968b4f5f499 100644
+index 155db28..968b4f5 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -171,11 +171,11 @@ if dri_drivers.contains('auto')
@@ -96,7 +96,7 @@ index 155db287796..968b4f5f499 100644
        'dep_libdrm_' + d[0],
        dependency('libdrm_' + d[0], version : '>=' + _drm_ver)
 diff --git a/meson_options.txt b/meson_options.txt
-index 29c402c4844..dac791099a1 100644
+index 29c402c..dac7910 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -55,7 +55,7 @@ option(
@@ -109,7 +109,7 @@ index 29c402c4844..dac791099a1 100644
  )
  option(
 diff --git a/src/mesa/drivers/dri/meson.build b/src/mesa/drivers/dri/meson.build
-index 239ca962c2a..88a973bb84f 100644
+index 239ca96..88a973b 100644
 --- a/src/mesa/drivers/dri/meson.build
 +++ b/src/mesa/drivers/dri/meson.build
 @@ -48,6 +48,11 @@ if with_dri_nouveau
@@ -126,7 +126,7 @@ index 239ca962c2a..88a973bb84f 100644
    libmesa_dri_drivers = shared_library(
 diff --git a/src/mesa/drivers/dri/pvr/dri_support.h b/src/mesa/drivers/dri/pvr/dri_support.h
 new file mode 100644
-index 00000000000..631410438fd
+index 0000000..6314104
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/dri_support.h
 @@ -0,0 +1,581 @@
@@ -713,7 +713,7 @@ index 00000000000..631410438fd
 +#endif /* defined(__PVRDRIIFCE_H__) */
 diff --git a/src/mesa/drivers/dri/pvr/img_drm_fourcc.h b/src/mesa/drivers/dri/pvr/img_drm_fourcc.h
 new file mode 100644
-index 00000000000..8d570ff8f53
+index 0000000..8d570ff
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/img_drm_fourcc.h
 @@ -0,0 +1,113 @@
@@ -832,7 +832,7 @@ index 00000000000..8d570ff8f53
 +#endif /* IMG_DRM_FOURCC_H */
 diff --git a/src/mesa/drivers/dri/pvr/imgpixfmts.h b/src/mesa/drivers/dri/pvr/imgpixfmts.h
 new file mode 100644
-index 00000000000..da12a0fb5f6
+index 0000000..da12a0f
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/imgpixfmts.h
 @@ -0,0 +1,307 @@
@@ -1145,7 +1145,7 @@ index 00000000000..da12a0fb5f6
 +#endif /* IMGPIXFMTS_H */
 diff --git a/src/mesa/drivers/dri/pvr/imgyuv.h b/src/mesa/drivers/dri/pvr/imgyuv.h
 new file mode 100644
-index 00000000000..7ae8fd19ac0
+index 0000000..7ae8fd1
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/imgyuv.h
 @@ -0,0 +1,58 @@
@@ -1209,7 +1209,7 @@ index 00000000000..7ae8fd19ac0
 +#endif /* IMGYUV_H */
 diff --git a/src/mesa/drivers/dri/pvr/mesa_context.c b/src/mesa/drivers/dri/pvr/mesa_context.c
 new file mode 100644
-index 00000000000..d36bae5ac54
+index 0000000..d36bae5
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/mesa_context.c
 @@ -0,0 +1,208 @@
@@ -1423,7 +1423,7 @@ index 00000000000..d36bae5ac54
 +}
 diff --git a/src/mesa/drivers/dri/pvr/meson.build b/src/mesa/drivers/dri/pvr/meson.build
 new file mode 100644
-index 00000000000..59cccf8add4
+index 0000000..59cccf8
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/meson.build
 @@ -0,0 +1,48 @@
@@ -1477,7 +1477,7 @@ index 00000000000..59cccf8add4
 +)
 diff --git a/src/mesa/drivers/dri/pvr/pvrcb.c b/src/mesa/drivers/dri/pvr/pvrcb.c
 new file mode 100644
-index 00000000000..ea8911c64d5
+index 0000000..ea8911c
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrcb.c
 @@ -0,0 +1,328 @@
@@ -1811,7 +1811,7 @@ index 00000000000..ea8911c64d5
 +}
 diff --git a/src/mesa/drivers/dri/pvr/pvrcompat.c b/src/mesa/drivers/dri/pvr/pvrcompat.c
 new file mode 100644
-index 00000000000..23a57dde682
+index 0000000..23a57dd
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrcompat.c
 @@ -0,0 +1,838 @@
@@ -2655,7 +2655,7 @@ index 00000000000..23a57dde682
 +}
 diff --git a/src/mesa/drivers/dri/pvr/pvrdri.c b/src/mesa/drivers/dri/pvr/pvrdri.c
 new file mode 100644
-index 00000000000..ab941f71567
+index 0000000..ab941f7
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrdri.c
 @@ -0,0 +1,613 @@
@@ -3274,7 +3274,7 @@ index 00000000000..ab941f71567
 +}
 diff --git a/src/mesa/drivers/dri/pvr/pvrdri.h b/src/mesa/drivers/dri/pvr/pvrdri.h
 new file mode 100644
-index 00000000000..fd465bf7f5c
+index 0000000..fd465bf
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrdri.h
 @@ -0,0 +1,188 @@
@@ -3468,7 +3468,7 @@ index 00000000000..fd465bf7f5c
 +#endif /* defined(__PVRDRI_H__) */
 diff --git a/src/mesa/drivers/dri/pvr/pvrdri_support.h b/src/mesa/drivers/dri/pvr/pvrdri_support.h
 new file mode 100644
-index 00000000000..58ea3505a4d
+index 0000000..58ea350
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrdri_support.h
 @@ -0,0 +1,206 @@
@@ -3680,7 +3680,7 @@ index 00000000000..58ea3505a4d
 +#endif /* defined(__PVRDRI_SUPPORT_H__) */
 diff --git a/src/mesa/drivers/dri/pvr/pvrext.c b/src/mesa/drivers/dri/pvr/pvrext.c
 new file mode 100644
-index 00000000000..478399618df
+index 0000000..4783996
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrext.c
 @@ -0,0 +1,704 @@
@@ -4390,7 +4390,7 @@ index 00000000000..478399618df
 +}
 diff --git a/src/mesa/drivers/dri/pvr/pvrmesa.h b/src/mesa/drivers/dri/pvr/pvrmesa.h
 new file mode 100644
-index 00000000000..5e1c9c1b2e6
+index 0000000..5e1c9c1
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrmesa.h
 @@ -0,0 +1,36 @@
@@ -4432,7 +4432,7 @@ index 00000000000..5e1c9c1b2e6
 +#endif /* !defined(__PVRMESA_H__) */
 diff --git a/src/mesa/drivers/dri/pvr/pvrutil.c b/src/mesa/drivers/dri/pvr/pvrutil.c
 new file mode 100644
-index 00000000000..945e18cf220
+index 0000000..945e18c
 --- /dev/null
 +++ b/src/mesa/drivers/dri/pvr/pvrutil.c
 @@ -0,0 +1,239 @@
@@ -4676,7 +4676,7 @@ index 00000000000..945e18cf220
 +   return 0;
 +}
 diff --git a/src/meson.build b/src/meson.build
-index acc7fe94abb..c3bab27718d 100644
+index acc7fe9..c3bab27 100644
 --- a/src/meson.build
 +++ b/src/meson.build
 @@ -25,6 +25,7 @@ inc_gallium = include_directories('gallium/include')
@@ -4687,6 +4687,3 @@ index acc7fe94abb..c3bab27718d 100644
  inc_tool = include_directories('tool')
  pps_datasources = []
  pps_includes = []
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0002-Force-Mesa-to-use-the-PVR-driver-for-platform-device.patch

@@ -1,7 +1,7 @@
-From 184d3da84d449bc05511cb857cc843285dde4b63 Mon Sep 17 00:00:00 2001
+From 15a2b80c0cd5cff126661d48fe7236c903d281c9 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Wed, 17 Jun 2015 15:37:18 +0100
-Subject: [PATCH 02/67] Force Mesa to use the PVR driver for platform devices
+Subject: [PATCH] Force Mesa to use the PVR driver for platform devices
 
 For platform devices, Mesa uses the DRM driver name to determine which DRI
 driver to load. This doesn't work in the multi-DRM driver model where there
@@ -9,12 +9,13 @@ are separate DRM drivers for the display and GPU. This is because we normally
 want Mesa to deal with the display driver and the name of this won't match
 that of the DRI driver. For the time being, take the easy approach and just
 force it to use the PVR DRI driver.
+
 ---
  src/loader/loader.c | 4 ++++
  1 file changed, 4 insertions(+)
 
 diff --git a/src/loader/loader.c b/src/loader/loader.c
-index 08eeb61504b..c7e561ef2e4 100644
+index 08eeb61..c7e561e 100644
 --- a/src/loader/loader.c
 +++ b/src/loader/loader.c
 @@ -436,7 +436,11 @@ loader_get_pci_driver(int fd)
@@ -29,6 +30,3 @@ index 08eeb61504b..c7e561ef2e4 100644
  
     for (i = 0; i < ARRAY_SIZE(driver_map); i++) {
        if (vendor_id != driver_map[i].vendor_id)
--- 
-2.25.1
-

+ 7 - 9
recipes-graphics/mesa/mesa-pvr/0003-dri-Add-some-new-DRI-formats-and-fourccs.patch

@@ -1,11 +1,12 @@
-From fec4f46f7cedb6b3e90bf88c3efc3cd5da0d9131 Mon Sep 17 00:00:00 2001
+From 31cc2cd723963bdecb2c5d5e4c09598ee830f0d6 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Thu, 5 Jun 2014 12:07:01 +0100
-Subject: [PATCH 03/67] dri: Add some new DRI formats and fourccs
+Subject: [PATCH] dri: Add some new DRI formats and fourccs
 
 Add ARGB4444 DRI format and fourcc.
 Add YVU444_PACK10_IMG DRI format and fourcc.
 Add BGR888 DRI format and fourcc.
+
 ---
  include/GL/internal/dri_interface.h    | 4 ++++
  include/drm-uapi/drm_fourcc.h          | 1 +
@@ -14,7 +15,7 @@ Add BGR888 DRI format and fourcc.
  4 files changed, 11 insertions(+)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 66dc0927cb7..510289403d2 100644
+index 66dc092..5102894 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1367,6 +1367,9 @@ struct __DRIdri2ExtensionRec {
@@ -36,7 +37,7 @@ index 66dc0927cb7..510289403d2 100644
  /**
   * Queryable on images created by createImageFromNames.
 diff --git a/include/drm-uapi/drm_fourcc.h b/include/drm-uapi/drm_fourcc.h
-index cd3ce8a8c60..57657592a38 100644
+index cd3ce8a..5765759 100644
 --- a/include/drm-uapi/drm_fourcc.h
 +++ b/include/drm-uapi/drm_fourcc.h
 @@ -344,6 +344,7 @@ extern "C" {
@@ -48,7 +49,7 @@ index cd3ce8a8c60..57657592a38 100644
  /*
   * Format Modifiers:
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index 9e5a55a287c..eee28eb4726 100644
+index 9e5a55a..eee28eb 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -2652,6 +2652,7 @@ dri2_num_fourcc_format_planes(EGLint format)
@@ -60,7 +61,7 @@ index 9e5a55a287c..eee28eb4726 100644
  
     case DRM_FORMAT_NV12:
 diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
-index e2a11240dea..caed5fa6a68 100644
+index e2a1124..caed5fa 100644
 --- a/src/mesa/drivers/dri/common/dri_util.c
 +++ b/src/mesa/drivers/dri/common/dri_util.c
 @@ -904,6 +904,11 @@ static const struct {
@@ -75,6 +76,3 @@ index e2a11240dea..caed5fa6a68 100644
     {
        .image_format    = __DRI_IMAGE_FORMAT_XRGB8888,
        .mesa_format     =        MESA_FORMAT_B8G8R8X8_UNORM,
--- 
-2.25.1
-

+ 5 - 8
recipes-graphics/mesa/mesa-pvr/0004-GL_EXT_sparse_texture-entry-points.patch

@@ -1,7 +1,7 @@
-From e66cd64b65e86a23807260a9a0c73f1355715314 Mon Sep 17 00:00:00 2001
+From 3aac60c44489cbb295442cb8e87396987f84d4b5 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Wed, 12 Aug 2015 09:11:51 +0100
-Subject: [PATCH 04/67] GL_EXT_sparse_texture entry points
+Subject: [PATCH] GL_EXT_sparse_texture entry points
 
 ---
  src/mapi/glapi/gen/EXT_sparse_texture.xml | 56 +++++++++++++++++++++++
@@ -12,7 +12,7 @@ Subject: [PATCH 04/67] GL_EXT_sparse_texture entry points
 
 diff --git a/src/mapi/glapi/gen/EXT_sparse_texture.xml b/src/mapi/glapi/gen/EXT_sparse_texture.xml
 new file mode 100644
-index 00000000000..48d03e7b9c0
+index 0000000..48d03e7
 --- /dev/null
 +++ b/src/mapi/glapi/gen/EXT_sparse_texture.xml
 @@ -0,0 +1,56 @@
@@ -73,7 +73,7 @@ index 00000000000..48d03e7b9c0
 +
 +</OpenGLAPI>
 diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
-index 929b40bbd4a..962170bc58e 100644
+index 929b40b..962170b 100644
 --- a/src/mapi/glapi/gen/es_EXT.xml
 +++ b/src/mapi/glapi/gen/es_EXT.xml
 @@ -1433,6 +1433,9 @@
@@ -87,7 +87,7 @@ index 929b40bbd4a..962170bc58e 100644
      <function name="ViewportArrayvOES" es2="3.1" alias="ViewportArrayv">
          <param name="first" type="GLuint"/>
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index 6accff1b231..d063930bd81 100644
+index 6accff1..d063930 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1689,6 +1689,8 @@ offsets = {
@@ -99,6 +99,3 @@ index 6accff1b231..d063930bd81 100644
  }
  
  functions = [
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0005-Add-support-for-various-GLES-extensions.patch

@@ -1,19 +1,20 @@
-From 4a1be491de2ea78be95dc4cf08af4b1da5e16d91 Mon Sep 17 00:00:00 2001
+From 804b1621754ab265af92c796e04da4d024fb22a5 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 10 Mar 2014 12:27:03 +0000
-Subject: [PATCH 05/67] Add support for various GLES extensions
+Subject: [PATCH] Add support for various GLES extensions
 
 Add support for:
 	EXT_occlusion_query_boolean
 	IMG_multisampled_render_to_texture
 	OES_matrix_palette
+
 ---
  src/mapi/glapi/gen/es_EXT.xml     | 41 ++++++++++++++++++++++++-------
  src/mapi/glapi/gen/static_data.py |  6 +++++
  2 files changed, 38 insertions(+), 9 deletions(-)
 
 diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
-index 962170bc58e..e586b0ec19b 100644
+index 962170b..e586b0e 100644
 --- a/src/mapi/glapi/gen/es_EXT.xml
 +++ b/src/mapi/glapi/gen/es_EXT.xml
 @@ -285,28 +285,25 @@
@@ -85,7 +86,7 @@ index 962170bc58e..e586b0ec19b 100644
  <category name="GL_OES_EGL_image_external" number="87">
      <enum name="TEXTURE_EXTERNAL_OES"                     value="0x8D65"/>
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index d063930bd81..79b8f19cb75 100644
+index d063930..79b8f19 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1691,6 +1691,12 @@ offsets = {
@@ -101,6 +102,3 @@ index d063930bd81..79b8f19cb75 100644
  }
  
  functions = [
--- 
-2.25.1
-

+ 8 - 10
recipes-graphics/mesa/mesa-pvr/0006-Add-EGL_IMG_cl_image-extension.patch

@@ -1,10 +1,11 @@
-From 7fdeb8bf25be01f122a7cb55dbe2b0e67e4a24a2 Mon Sep 17 00:00:00 2001
+From 6d9dc4ffa940f9bde48fc68c85b54ab1b839ea49 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Tue, 11 Mar 2014 11:50:53 +0000
-Subject: [PATCH 06/67] Add EGL_IMG_cl_image extension
+Subject: [PATCH] Add EGL_IMG_cl_image extension
 
 Add support for the experimental EGL_IMG_cl_image extension to EGL, and
 the DRI2 EGL driver.
+
 ---
  include/EGL/eglmesaext.h            |  5 +++
  include/GL/internal/dri_interface.h | 13 +++++++
@@ -14,7 +15,7 @@ the DRI2 EGL driver.
  5 files changed, 73 insertions(+), 8 deletions(-)
 
 diff --git a/include/EGL/eglmesaext.h b/include/EGL/eglmesaext.h
-index f0395a8a58c..5d11f3e488e 100644
+index f0395a8..5d11f3e 100644
 --- a/include/EGL/eglmesaext.h
 +++ b/include/EGL/eglmesaext.h
 @@ -49,6 +49,11 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EG
@@ -30,7 +31,7 @@ index f0395a8a58c..5d11f3e488e 100644
  }
  #endif
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 510289403d2..b197092939f 100644
+index 5102894..b197092 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1831,6 +1831,19 @@ struct __DRIimageExtensionRec {
@@ -54,7 +55,7 @@ index 510289403d2..b197092939f 100644
  
  
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index eee28eb4726..dea5899b3a8 100644
+index eee28eb..dea5899 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -995,6 +995,10 @@ dri2_setup_screen(_EGLDisplay *disp)
@@ -158,7 +159,7 @@ index eee28eb4726..dea5899b3a8 100644
        _eglError(EGL_BAD_PARAMETER, "dri2_create_image_khr");
        return EGL_NO_IMAGE_KHR;
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index 17e36af22e1..6ffcff8b2cc 100644
+index 17e36af..6ffcff8 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -549,6 +549,7 @@ _eglCreateExtensionsString(_EGLDisplay *disp)
@@ -170,7 +171,7 @@ index 17e36af22e1..6ffcff8b2cc 100644
  }
  
 diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
-index 4d2afbc712e..5b05dcc1e6d 100644
+index 4d2afbc..5b05dcc 100644
 --- a/src/egl/main/egldisplay.h
 +++ b/src/egl/main/egldisplay.h
 @@ -150,6 +150,8 @@ struct _egl_extensions
@@ -182,6 +183,3 @@ index 4d2afbc712e..5b05dcc1e6d 100644
  };
  
  struct _egl_display
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0007-egl-Be-stricter-when-making-a-context-current-withou.patch

@@ -1,8 +1,8 @@
-From fa57726f60bc6fc6e7094f16300cdc41b44ff4f3 Mon Sep 17 00:00:00 2001
+From d2badaa4a36fdd2193faf40df67b3595f871ffd7 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Wed, 18 Jun 2014 17:10:28 +0100
-Subject: [PATCH 07/67] egl: Be stricter when making a context current without
- any surfaces
+Subject: [PATCH] egl: Be stricter when making a context current without any
+ surfaces
 
 The EGL_KHR_surfaceless_context extension spec states for eglMakeCurrent:
     "If <ctx> does not support being bound without read and draw
@@ -28,12 +28,13 @@ In order to upstream this patch the check would need to be changed
 to set the error to EGL_BAD_MATCH if EGL_KHR_surfaceless_context is
 supported and the context API isn't OpenGLES or the OpenGLES version
 is 1.0.
+
 ---
  src/egl/main/eglapi.c | 3 +++
  1 file changed, 3 insertions(+)
 
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index 6ffcff8b2cc..3cd69b96a0f 100644
+index 6ffcff8..3cd69b9 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -888,6 +888,9 @@ eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read,
@@ -46,6 +47,3 @@ index 6ffcff8b2cc..3cd69b96a0f 100644
     }
  
     /*    If a native window underlying either draw or read is no longer valid,
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0008-egl-optimise-eglMakeCurrent-for-the-case-where-nothi.patch

@@ -1,18 +1,19 @@
-From f556292d5811750d119acea6c7dc0c5ebd3e1af6 Mon Sep 17 00:00:00 2001
+From 9e3b9f4dfa273c5d0536c748153f65c0899bf3b8 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Tue, 15 Sep 2015 14:15:31 +0100
-Subject: [PATCH 08/67] egl: optimise eglMakeCurrent for the case where nothing
- has changed
+Subject: [PATCH] egl: optimise eglMakeCurrent for the case where nothing has
+ changed
 
 When an application calls eglMakeCurrent with a context, draw surface and
 read surface that match those that are currently bound to the calling
 thread don't perform a flush as this is an expensive operation.
+
 ---
  src/egl/main/eglapi.c | 12 +++++++++++-
  1 file changed, 11 insertions(+), 1 deletion(-)
 
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index 3cd69b96a0f..234449adf64 100644
+index 3cd69b9..234449a 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -853,6 +853,7 @@ eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read,
@@ -41,6 +42,3 @@ index 3cd69b96a0f..234449adf64 100644
  
     RETURN_EGL_EVAL(disp, ret);
  }
--- 
-2.25.1
-

+ 5 - 8
recipes-graphics/mesa/mesa-pvr/0009-GL_EXT_shader_pixel_local_storage2-entry-points.patch

@@ -1,7 +1,7 @@
-From 13e925af5ba3bd763eb4c9e5d0781f92981550f6 Mon Sep 17 00:00:00 2001
+From a0e664462560c48078b696e535bcc0bf9e7431e8 Mon Sep 17 00:00:00 2001
 From: Rufus Hamade <rufus.hamade@imgtec.com>
 Date: Thu, 4 Feb 2016 14:09:26 +0000
-Subject: [PATCH 09/67] GL_EXT_shader_pixel_local_storage2 entry points
+Subject: [PATCH] GL_EXT_shader_pixel_local_storage2 entry points
 
 ---
  .../gen/EXT_shader_pixel_local_storage2.xml   | 35 +++++++++++++++++++
@@ -12,7 +12,7 @@ Subject: [PATCH 09/67] GL_EXT_shader_pixel_local_storage2 entry points
 
 diff --git a/src/mapi/glapi/gen/EXT_shader_pixel_local_storage2.xml b/src/mapi/glapi/gen/EXT_shader_pixel_local_storage2.xml
 new file mode 100644
-index 00000000000..20e186c0f0d
+index 0000000..20e186c
 --- /dev/null
 +++ b/src/mapi/glapi/gen/EXT_shader_pixel_local_storage2.xml
 @@ -0,0 +1,35 @@
@@ -52,7 +52,7 @@ index 00000000000..20e186c0f0d
 +
 +</OpenGLAPI>
 diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
-index e586b0ec19b..a3bfe86a888 100644
+index e586b0e..a3bfe86 100644
 --- a/src/mapi/glapi/gen/es_EXT.xml
 +++ b/src/mapi/glapi/gen/es_EXT.xml
 @@ -1459,6 +1459,9 @@
@@ -66,7 +66,7 @@ index e586b0ec19b..a3bfe86a888 100644
      <function name="ViewportArrayvOES" es2="3.1" alias="ViewportArrayv">
          <param name="first" type="GLuint"/>
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index 79b8f19cb75..99729e21b7f 100644
+index 79b8f19..99729e2 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1697,6 +1697,9 @@ offsets = {
@@ -79,6 +79,3 @@ index 79b8f19cb75..99729e21b7f 100644
  }
  
  functions = [
--- 
-2.25.1
-

+ 5 - 8
recipes-graphics/mesa/mesa-pvr/0010-GL_IMG_framebuffer_downsample-entry-points.patch

@@ -1,7 +1,7 @@
-From f43a3258b8f4859ff3e0e3d3d356b319dd6a5435 Mon Sep 17 00:00:00 2001
+From 16eb24dd94d836480cb3bb1fa7f30b8500b8c12f Mon Sep 17 00:00:00 2001
 From: Rufus Hamade <rufus.hamade@imgtec.com>
 Date: Thu, 4 Feb 2016 14:09:26 +0000
-Subject: [PATCH 10/67] GL_IMG_framebuffer_downsample entry points
+Subject: [PATCH] GL_IMG_framebuffer_downsample entry points
 
 ---
  .../glapi/gen/IMG_framebuffer_downsample.xml  | 37 +++++++++++++++++++
@@ -12,7 +12,7 @@ Subject: [PATCH 10/67] GL_IMG_framebuffer_downsample entry points
 
 diff --git a/src/mapi/glapi/gen/IMG_framebuffer_downsample.xml b/src/mapi/glapi/gen/IMG_framebuffer_downsample.xml
 new file mode 100644
-index 00000000000..b5ce77dfb08
+index 0000000..b5ce77d
 --- /dev/null
 +++ b/src/mapi/glapi/gen/IMG_framebuffer_downsample.xml
 @@ -0,0 +1,37 @@
@@ -54,7 +54,7 @@ index 00000000000..b5ce77dfb08
 +
 +</OpenGLAPI>
 diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
-index a3bfe86a888..b3432820ba6 100644
+index a3bfe86..b343282 100644
 --- a/src/mapi/glapi/gen/es_EXT.xml
 +++ b/src/mapi/glapi/gen/es_EXT.xml
 @@ -1462,6 +1462,9 @@
@@ -68,7 +68,7 @@ index a3bfe86a888..b3432820ba6 100644
      <function name="ViewportArrayvOES" es2="3.1" alias="ViewportArrayv">
          <param name="first" type="GLuint"/>
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index 99729e21b7f..c723cb3fab8 100644
+index 99729e2..c723cb3 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1700,6 +1700,8 @@ offsets = {
@@ -80,6 +80,3 @@ index 99729e21b7f..c723cb3fab8 100644
  }
  
  functions = [
--- 
-2.25.1
-

+ 4 - 7
recipes-graphics/mesa/mesa-pvr/0011-GL_OVR_multiview-entry-points.patch

@@ -1,7 +1,7 @@
-From cbc7a7501ea4ceffd55ca389deb55d12ff9ceb3f Mon Sep 17 00:00:00 2001
+From d7176528f6dbb0c807fe34ebd8a3c5cee5945d3d Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 11 Jul 2016 12:45:30 +0100
-Subject: [PATCH 11/67] GL_OVR_multiview entry points
+Subject: [PATCH] GL_OVR_multiview entry points
 
 ---
  src/mapi/glapi/gen/gl_API.xml     | 17 +++++++++++++++++
@@ -9,7 +9,7 @@ Subject: [PATCH 11/67] GL_OVR_multiview entry points
  2 files changed, 18 insertions(+)
 
 diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
-index cf5a0f0a0c0..4e35de0f4ea 100644
+index cf5a0f0..4e35de0 100644
 --- a/src/mapi/glapi/gen/gl_API.xml
 +++ b/src/mapi/glapi/gen/gl_API.xml
 @@ -13125,6 +13125,23 @@
@@ -37,7 +37,7 @@ index cf5a0f0a0c0..4e35de0f4ea 100644
  
  <!-- 520. GL_EXT_shader_framebuffer_fetch -->
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index c723cb3fab8..73625c7fe41 100644
+index c723cb3..73625c7 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1702,6 +1702,7 @@ offsets = {
@@ -48,6 +48,3 @@ index c723cb3fab8..73625c7fe41 100644
  }
  
  functions = [
--- 
-2.25.1
-

+ 5 - 8
recipes-graphics/mesa/mesa-pvr/0012-Add-OVR_multiview_multisampled_render_to_texture.patch

@@ -1,7 +1,7 @@
-From 91ea37486db99fd403654ebff2a0a8401f7cd600 Mon Sep 17 00:00:00 2001
+From 11e20cde197c451743534f3ab316a9c16bbeda50 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 11 Jul 2016 13:29:51 +0100
-Subject: [PATCH 12/67] Add OVR_multiview_multisampled_render_to_texture
+Subject: [PATCH] Add OVR_multiview_multisampled_render_to_texture
 
 ---
  ...ltiview_multisampled_render_to_texture.xml | 21 +++++++++++++++++++
@@ -12,7 +12,7 @@ Subject: [PATCH 12/67] Add OVR_multiview_multisampled_render_to_texture
 
 diff --git a/src/mapi/glapi/gen/OVR_multiview_multisampled_render_to_texture.xml b/src/mapi/glapi/gen/OVR_multiview_multisampled_render_to_texture.xml
 new file mode 100644
-index 00000000000..86bebc728e9
+index 0000000..86bebc7
 --- /dev/null
 +++ b/src/mapi/glapi/gen/OVR_multiview_multisampled_render_to_texture.xml
 @@ -0,0 +1,21 @@
@@ -38,7 +38,7 @@ index 00000000000..86bebc728e9
 +
 +</OpenGLAPI>
 diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
-index b3432820ba6..fe8f27e1e6f 100644
+index b343282..fe8f27e 100644
 --- a/src/mapi/glapi/gen/es_EXT.xml
 +++ b/src/mapi/glapi/gen/es_EXT.xml
 @@ -1459,6 +1459,9 @@
@@ -52,7 +52,7 @@ index b3432820ba6..fe8f27e1e6f 100644
  <xi:include href="EXT_shader_pixel_local_storage2.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
  
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index 73625c7fe41..dc6bdc9dcce 100644
+index 73625c7..dc6bdc9 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1703,6 +1703,7 @@ offsets = {
@@ -63,6 +63,3 @@ index 73625c7fe41..dc6bdc9dcce 100644
  }
  
  functions = [
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0013-wayland-drm-install-wayland-drm.xml-to-the-configure.patch

@@ -1,11 +1,12 @@
-From b38c4118c7a3a060ef1c8b8477200f5a73305397 Mon Sep 17 00:00:00 2001
+From 4e92d56ba91f5bedc51881bddbe47f665eddca48 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Thu, 18 Aug 2016 15:52:28 +0100
-Subject: [PATCH 13/67] wayland-drm: install wayland-drm.xml to the configured
+Subject: [PATCH] wayland-drm: install wayland-drm.xml to the configured
  pkgdatadir
 
 Add a pkg-config file as well so that it can be located without hardcoding the
 path.
+
 ---
  src/egl/wayland/wayland-drm/meson.build       | 15 +++++++++++++++
  src/egl/wayland/wayland-drm/wayland-drm.pc.in |  7 +++++++
@@ -13,7 +14,7 @@ path.
  create mode 100644 src/egl/wayland/wayland-drm/wayland-drm.pc.in
 
 diff --git a/src/egl/wayland/wayland-drm/meson.build b/src/egl/wayland/wayland-drm/meson.build
-index b4782a013c9..f291ef9f55e 100644
+index b4782a0..f291ef9 100644
 --- a/src/egl/wayland/wayland-drm/meson.build
 +++ b/src/egl/wayland/wayland-drm/meson.build
 @@ -49,6 +49,21 @@ libwayland_drm = static_library(
@@ -40,7 +41,7 @@ index b4782a013c9..f291ef9f55e 100644
  # of EGL and Vulkan WSI, and b) guaranteed to be included before both,
 diff --git a/src/egl/wayland/wayland-drm/wayland-drm.pc.in b/src/egl/wayland/wayland-drm/wayland-drm.pc.in
 new file mode 100644
-index 00000000000..d08ccdaf6ce
+index 0000000..d08ccda
 --- /dev/null
 +++ b/src/egl/wayland/wayland-drm/wayland-drm.pc.in
 @@ -0,0 +1,7 @@
@@ -52,6 +53,3 @@ index 00000000000..d08ccdaf6ce
 +Description: @PACKAGE_NAME@ Wayland protocol files
 +Version: @PACKAGE_VERSION@
 \ No newline at end of file
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0014-Enable-buffer-sharing-in-the-kms_swrast-driver.patch

@@ -1,16 +1,17 @@
-From b80c78b05ebb661e7f088d0a369b0f0d2990afca Mon Sep 17 00:00:00 2001
+From 499acbbea8d82fe7018bd8663bc543fa691d41de Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Wed, 26 Oct 2016 16:24:28 +0100
-Subject: [PATCH 14/67] Enable buffer sharing in the kms_swrast driver
+Subject: [PATCH] Enable buffer sharing in the kms_swrast driver
 
 Enable buffer sharing, so that a DRI driver can be loaded by a
 Wayland client when kms_swrast is being used by the compositor.
+
 ---
  src/gallium/frontends/dri/dri2.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c
-index ebc18a73c86..09f4b02e758 100644
+index ebc18a7..09f4b02 100644
 --- a/src/gallium/frontends/dri/dri2.c
 +++ b/src/gallium/frontends/dri/dri2.c
 @@ -2400,7 +2400,7 @@ dri_kms_init_screen(__DRIscreen * sPriv)
@@ -22,6 +23,3 @@ index ebc18a73c86..09f4b02e758 100644
     screen->auto_fake_front = dri_with_format(sPriv);
     screen->broken_invalidate = !sPriv->dri2.useInvalidate;
     screen->lookup_egl_image = dri2_lookup_egl_image;
--- 
-2.25.1
-

+ 3 - 6
recipes-graphics/mesa/mesa-pvr/0015-egl-wayland-add-support-for-RGB565-back-buffers.patch

@@ -1,14 +1,14 @@
-From 55a15a019dd792477e39f6225f2b4e50a1359b66 Mon Sep 17 00:00:00 2001
+From 0faf5745262a68722abce4fe692a341cbdba811b Mon Sep 17 00:00:00 2001
 From: James Glanville <James.Glanville@imgtec.com>
 Date: Tue, 28 Feb 2017 16:08:47 +0000
-Subject: [PATCH 15/67] egl/wayland: add support for RGB565 back buffers
+Subject: [PATCH] egl/wayland: add support for RGB565 back buffers
 
 ---
  src/egl/drivers/dri2/platform_wayland.c | 13 +++++++++++--
  1 file changed, 11 insertions(+), 2 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index cfff0ade90e..c18edc0de4e 100644
+index cfff0ad..c18edc0 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -633,18 +633,27 @@ back_bo_to_dri_buffer(struct dri2_egl_surface *dri2_surf, __DRIbuffer *buffer)
@@ -41,6 +41,3 @@ index cfff0ade90e..c18edc0de4e 100644
  }
  
  static int
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0016-egl-dri3-fix-segfault-in-eglCopyBuffers.patch

@@ -1,19 +1,20 @@
-From 03f4f18f9edb4090c6aeca16e6f4de602aea68bf Mon Sep 17 00:00:00 2001
+From 09d413ab8c88e98534b32067e170bdd92c887cc5 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 13 Apr 2017 10:12:40 +0100
-Subject: [PATCH 16/67] egl/dri3: fix segfault in eglCopyBuffers
+Subject: [PATCH] egl/dri3: fix segfault in eglCopyBuffers
 
 The loader_dri3_copy_drawable function expected the drawable to have
 a fake front buffer, resulting in a segfault if there wasn't one,
 when dri3_fence_reset was called.
 If there is no fake front buffer, but there are back buffers, use the
 current back buffer.
+
 ---
  src/loader/loader_dri3_helper.c | 15 ++++++++++++---
  1 file changed, 12 insertions(+), 3 deletions(-)
 
 diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
-index 6e825f9a898..ff6d1ffc660 100644
+index 6e825f9..ff6d1ff 100644
 --- a/src/loader/loader_dri3_helper.c
 +++ b/src/loader/loader_dri3_helper.c
 @@ -863,15 +863,24 @@ loader_dri3_copy_drawable(struct loader_dri3_drawable *draw,
@@ -44,6 +45,3 @@ index 6e825f9a898..ff6d1ffc660 100644
  }
  
  void
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0017-egl-automatically-call-eglReleaseThread-on-thread-te.patch

@@ -1,7 +1,7 @@
-From d98cd46b5841ecb785a801a977a1b341d98d08c4 Mon Sep 17 00:00:00 2001
+From df5f4dae5d92afb8d9922197efabd32c26e665a7 Mon Sep 17 00:00:00 2001
 From: Iosif Antochi <iosif.antochi@imgtec.com>
 Date: Wed, 14 Jun 2017 14:49:55 +0100
-Subject: [PATCH 17/67] egl: automatically call eglReleaseThread on thread
+Subject: [PATCH] egl: automatically call eglReleaseThread on thread
  termination
 
 EGL thread cleanup conformance tests could run out of memory as the contexts
@@ -17,12 +17,13 @@ EGL 1.5 spec, eglReleaseThread can be called multiple times without error.
 Fixes:
 dEQP-EGL.functional.thread_cleanup.multi_context_*
 dEQP-EGL.functional.robustness.create_context.query_robust_access
+
 ---
  src/egl/main/eglcurrent.c | 27 ++++++++++++++++++++++++++-
  1 file changed, 26 insertions(+), 1 deletion(-)
 
 diff --git a/src/egl/main/eglcurrent.c b/src/egl/main/eglcurrent.c
-index 11277d3e4c0..c87eac0d007 100644
+index 11277d3..c87eac0 100644
 --- a/src/egl/main/eglcurrent.c
 +++ b/src/egl/main/eglcurrent.c
 @@ -44,6 +44,7 @@ static mtx_t _egl_TSDMutex = _MTX_INITIALIZER_NP;
@@ -73,6 +74,3 @@ index 11277d3e4c0..c87eac0d007 100644
  /**
   * Make sure TSD is initialized and return current value.
   */
--- 
-2.25.1
-

+ 13 - 15
recipes-graphics/mesa/mesa-pvr/0018-egl-add-Tizen-platform-support.patch

@@ -1,10 +1,11 @@
-From a2fea4d0fb40d7bdfd2a3860132c37288f3d7864 Mon Sep 17 00:00:00 2001
+From 70abef4d4511b1e25ab3b4746644e5324140d9d7 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Fri, 6 Jan 2017 16:35:00 +0000
-Subject: [PATCH 18/67] egl: add Tizen platform support
+Subject: [PATCH] egl: add Tizen platform support
 
 Add a new "tizen" platform to support drm/gbm and Wayland on Tizen.
 The platform can be enabled by passing "-Dplatforms=tizen" to Meson.
+
 ---
  meson.build                           |  25 +-
  meson_options.txt                     |   2 +-
@@ -20,7 +21,7 @@ The platform can be enabled by passing "-Dplatforms=tizen" to Meson.
  create mode 100644 src/egl/drivers/dri2/platform_tizen.c
 
 diff --git a/meson.build b/meson.build
-index 968b4f5f499..3d9d345dbf2 100644
+index 968b4f5..3d9d345 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -358,6 +358,11 @@ with_platform_x11 = _platforms.contains('x11')
@@ -84,7 +85,7 @@ index 968b4f5f499..3d9d345dbf2 100644
    endif
    lines += 'EGL/Vulkan/VL platforms:   ' + ' '.join(_platforms)
 diff --git a/meson_options.txt b/meson_options.txt
-index dac791099a1..8230db93c70 100644
+index dac7910..8230db9 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -23,7 +23,7 @@ option(
@@ -97,7 +98,7 @@ index dac791099a1..8230db93c70 100644
    description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
  )
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index dea5899b3a8..6d34395d65d 100644
+index dea5899..6d34395 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -1179,6 +1179,11 @@ dri2_initialize(_EGLDisplay *disp)
@@ -326,7 +327,7 @@ index dea5899b3a8..6d34395d65d 100644
     .GetSyncValuesCHROMIUM = dri2_get_sync_values_chromium,
     .CreateSyncKHR = dri2_create_sync,
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index 6a7eedea112..a8bfe45b1f5 100644
+index 6a7eede..a8bfe45 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
 @@ -62,9 +62,9 @@ struct zwp_linux_dmabuf_v1;
@@ -455,7 +456,7 @@ index 6a7eedea112..a8bfe45b1f5 100644
  
 diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
 new file mode 100644
-index 00000000000..a08bc8c07bf
+index 0000000..a08bc8c
 --- /dev/null
 +++ b/src/egl/drivers/dri2/platform_tizen.c
 @@ -0,0 +1,980 @@
@@ -1440,7 +1441,7 @@ index 00000000000..a08bc8c07bf
 +   return EGL_FALSE;
 +}
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index 234449adf64..43c7b917909 100644
+index 234449a..43c7b91 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -416,6 +416,13 @@ _eglGetPlatformDisplayCommon(EGLenum platform, void *native_display,
@@ -1458,7 +1459,7 @@ index 234449adf64..43c7b917909 100644
        RETURN_EGL_ERROR(NULL, EGL_BAD_PARAMETER, NULL);
     }
 diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
-index 765618f0dd0..486ac3b0557 100644
+index 765618f..486ac3b 100644
 --- a/src/egl/main/egldisplay.c
 +++ b/src/egl/main/egldisplay.c
 @@ -77,6 +77,7 @@ static const struct {
@@ -1529,7 +1530,7 @@ index 765618f0dd0..486ac3b0557 100644
  _eglGetDeviceDisplay(void *native_display,
                       const EGLAttrib *attrib_list)
 diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
-index 5b05dcc1e6d..cbb098331bf 100644
+index 5b05dcc..cbb0983 100644
 --- a/src/egl/main/egldisplay.h
 +++ b/src/egl/main/egldisplay.h
 @@ -52,6 +52,7 @@ enum _egl_platform_type {
@@ -1554,7 +1555,7 @@ index 5b05dcc1e6d..cbb098331bf 100644
  _eglGetDeviceDisplay(void *native_display,
                       const EGLAttrib *attrib_list);
 diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c
-index 6a91952577f..973b7600ab1 100644
+index 6a91952..973b760 100644
 --- a/src/egl/main/egllog.c
 +++ b/src/egl/main/egllog.c
 @@ -46,15 +46,17 @@
@@ -1607,7 +1608,7 @@ index 6a91952577f..973b7600ab1 100644
  
  
 diff --git a/src/egl/meson.build b/src/egl/meson.build
-index ab8f4e1fdbe..5749ec88f89 100644
+index ab8f4e1..5749ec8 100644
 --- a/src/egl/meson.build
 +++ b/src/egl/meson.build
 @@ -106,7 +106,7 @@ if with_dri2
@@ -1631,6 +1632,3 @@ index ab8f4e1fdbe..5749ec88f89 100644
  
  if cc.has_function('mincore')
    c_args_for_egl += '-DHAVE_MINCORE'
--- 
-2.25.1
-

+ 6 - 9
recipes-graphics/mesa/mesa-pvr/0019-egl-add-support-for-EGL_TIZEN_image_native_surface.patch

@@ -1,7 +1,7 @@
-From 230a8cb550dc23a46a96b1852720c262bb244665 Mon Sep 17 00:00:00 2001
+From 917eca873d3c493ce552811cbe4860334e73ddc1 Mon Sep 17 00:00:00 2001
 From: Eric Engestrom <eric.engestrom@imgtec.com>
 Date: Mon, 6 Feb 2017 15:54:00 +0000
-Subject: [PATCH 19/67] egl: add support for EGL_TIZEN_image_native_surface
+Subject: [PATCH] egl: add support for EGL_TIZEN_image_native_surface
 
 ---
  src/egl/drivers/dri2/egl_dri2.c       | 127 ++++++++++++++++++++------
@@ -11,7 +11,7 @@ Subject: [PATCH 19/67] egl: add support for EGL_TIZEN_image_native_surface
  4 files changed, 102 insertions(+), 30 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index 6d34395d65d..eaa0baed066 100644
+index 6d34395..eaa0bae 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -58,6 +58,10 @@
@@ -189,7 +189,7 @@ index 6d34395d65d..eaa0baed066 100644
     case EGL_CL_IMAGE_IMG:
        return dri2_create_image_img_buffer(disp, ctx, target, buffer, attr_list);
 diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
-index a08bc8c07bf..ad75c115d7e 100644
+index a08bc8c..ad75c11 100644
 --- a/src/egl/drivers/dri2/platform_tizen.c
 +++ b/src/egl/drivers/dri2/platform_tizen.c
 @@ -965,6 +965,7 @@ dri2_initialize_tizen(_EGLDisplay *dpy)
@@ -201,7 +201,7 @@ index a08bc8c07bf..ad75c115d7e 100644
     /*
      * Fill vtbl last to prevent accidentally calling virtual function during
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index 43c7b917909..e2a7797d73e 100644
+index 43c7b91..e2a7797 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -553,6 +553,8 @@ _eglCreateExtensionsString(_EGLDisplay *disp)
@@ -214,7 +214,7 @@ index 43c7b917909..e2a7797d73e 100644
     _EGL_CHECK_EXTENSION(WL_create_wayland_buffer_from_image);
  
 diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
-index cbb098331bf..0a7366b7c07 100644
+index cbb0983..0a7366b 100644
 --- a/src/egl/main/egldisplay.h
 +++ b/src/egl/main/egldisplay.h
 @@ -149,6 +149,8 @@ struct _egl_extensions
@@ -226,6 +226,3 @@ index cbb098331bf..0a7366b7c07 100644
     EGLBoolean WL_bind_wayland_display;
     EGLBoolean WL_create_wayland_buffer_from_image;
  
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0020-egl-wayland-post-maximum-damage-when-blitting.patch

@@ -1,7 +1,7 @@
-From 54d08798efca8f8929744a238e2b8b2851083317 Mon Sep 17 00:00:00 2001
+From 047016425214067e3cee93ace2d64018fa13c2ce Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Wed, 8 Nov 2017 15:15:20 +0000
-Subject: [PATCH 20/67] egl/wayland: post maximum damage when blitting
+Subject: [PATCH] egl/wayland: post maximum damage when blitting
 
 When blitting, as part of the "is_different_gpu" case when swapping
 buffers, the blit is done using the full surface dimensions, ignoring
@@ -10,12 +10,13 @@ on screen. Workaround this by posting maximum damage when blitting.
 
 A better fix would be to limit the blit to the damaged region, at least
 when the number of damage rectangles is 1.
+
 ---
  src/egl/drivers/dri2/platform_wayland.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index c18edc0de4e..c2e428769fe 100644
+index c18edc0..c2e4287 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -1112,7 +1112,8 @@ dri2_wl_swap_buffers_with_damage(_EGLDisplay *disp,
@@ -28,6 +29,3 @@ index c18edc0de4e..c2e428769fe 100644
        wl_surface_damage(dri2_surf->wl_surface_wrapper,
                          0, 0, INT32_MAX, INT32_MAX);
  
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0021-egl-wayland-flush-the-drawable-before-blitting.patch

@@ -1,7 +1,7 @@
-From a6aa5c866c25f7f334afbbcc3835467d50eb8965 Mon Sep 17 00:00:00 2001
+From dc5816cc975e908bc213176fc1fccfb634c18c0a Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Wed, 8 Nov 2017 15:26:25 +0000
-Subject: [PATCH 21/67] egl/wayland: flush the drawable before blitting
+Subject: [PATCH] egl/wayland: flush the drawable before blitting
 
 Flush the drawable before blitting in the "is_different_gpu" case when
 swapping buffers, and pass the flush flag to the blitImage call. The
@@ -12,12 +12,13 @@ the flush have been obtained previously, including any native fence
 associated with the blit source. The blit will result in a new native
 fence for the source, and make the one in the drawable parameters
 invalid.
+
 ---
  src/egl/drivers/dri2/platform_wayland.c | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index c2e428769fe..811d28bd669 100644
+index c2e4287..811d28b 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -1117,6 +1117,8 @@ dri2_wl_swap_buffers_with_damage(_EGLDisplay *disp,
@@ -41,6 +42,3 @@ index c2e428769fe..811d28bd669 100644
     dri2_dpy->flush->invalidate(dri2_surf->dri_drawable);
  
     wl_surface_commit(dri2_surf->wl_surface_wrapper);
--- 
-2.25.1
-

+ 6 - 9
recipes-graphics/mesa/mesa-pvr/0022-egl-tizen-create-an-internal-_EGLImage-for-each-tbm-.patch

@@ -1,14 +1,14 @@
-From 404c0e915de381c2337c79657f80b0aa95c1c995 Mon Sep 17 00:00:00 2001
+From 6d364d64fb28069a0ce9bab65a6f12f873707eda Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Wed, 25 Oct 2017 18:15:00 +0100
-Subject: [PATCH 22/67] egl/tizen: create an internal _EGLImage for each tbm
- surface
+Subject: [PATCH] egl/tizen: create an internal _EGLImage for each tbm surface
 
 Create an internal _EGLImage the first time a tbm surface is seen
 by eglCreateImageKHR (with either the EGL_WAYLAND_BUFFER_WL or
 EGL_NATIVE_SURFACE_TIZEN target) and return a copy of it to the
 caller. This avoids some tbm surfaces being frequently mapped and
 then unmapped from the GPU.
+
 ---
  src/egl/drivers/dri2/egl_dri2.c       | 236 +++++++++++++++++++++++++-
  src/egl/drivers/dri2/egl_dri2.h       |  12 ++
@@ -16,7 +16,7 @@ then unmapped from the GPU.
  3 files changed, 251 insertions(+), 3 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index eaa0baed066..db993f8f059 100644
+index eaa0bae..db993f8 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -1264,6 +1264,10 @@ dri2_display_destroy(_EGLDisplay *disp)
@@ -322,7 +322,7 @@ index eaa0baed066..db993f8f059 100644
  }
  
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index a8bfe45b1f5..546bc0a0dbc 100644
+index a8bfe45..546bc0a 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
 @@ -268,6 +268,15 @@ struct dri2_egl_display
@@ -352,7 +352,7 @@ index a8bfe45b1f5..546bc0a0dbc 100644
  
  struct dri2_egl_sync {
 diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
-index ad75c115d7e..49462152beb 100644
+index ad75c11..4946215 100644
 --- a/src/egl/drivers/dri2/platform_tizen.c
 +++ b/src/egl/drivers/dri2/platform_tizen.c
 @@ -891,6 +891,7 @@ dri2_initialize_tizen(_EGLDisplay *dpy)
@@ -375,6 +375,3 @@ index ad75c115d7e..49462152beb 100644
     for (i = TIZEN_DRM_RENDER_MINOR_START; i <= TIZEN_DRM_RENDER_MINOR_MAX; i++) {
        char *render_path;
  
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0023-dri-use-a-supported-API-in-driCreateNewContext.patch

@@ -1,16 +1,17 @@
-From 1f4a1a21384b00e28b8a9dd2c29f9c261f201c6f Mon Sep 17 00:00:00 2001
+From bad7401b26d84646293aef242c710af5f2addf06 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 23 Nov 2017 15:50:21 +0000
-Subject: [PATCH 23/67] dri: use a supported API in driCreateNewContext
+Subject: [PATCH] dri: use a supported API in driCreateNewContext
 
 Don't assume the screen supports OpenGL when creating a new context,
 use an API that the screen supports.
+
 ---
  src/mesa/drivers/dri/common/dri_util.c | 14 +++++++++++++-
  1 file changed, 13 insertions(+), 1 deletion(-)
 
 diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
-index caed5fa6a68..6c45eb007fc 100644
+index caed5fa..6c45eb0 100644
 --- a/src/mesa/drivers/dri/common/dri_util.c
 +++ b/src/mesa/drivers/dri/common/dri_util.c
 @@ -50,6 +50,7 @@
@@ -49,6 +50,3 @@ index caed5fa6a68..6c45eb007fc 100644
                                       config, shared, data);
  }
  
--- 
-2.25.1
-

+ 8 - 10
recipes-graphics/mesa/mesa-pvr/0024-gbm-add-gbm_bo_blit.patch

@@ -1,10 +1,11 @@
-From 0751612b949f1c90338a14453ff7fa4be8bfd016 Mon Sep 17 00:00:00 2001
+From 689befeb2523bc1244efda8de8585e079de47e6f Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Tue, 28 Nov 2017 16:27:38 +0000
-Subject: [PATCH 24/67] gbm: add gbm_bo_blit
+Subject: [PATCH] gbm: add gbm_bo_blit
 
 For the GBM DRI backend, gbm_bo_blit is a wrapper around blitImage in
 the DRI Image extension.
+
 ---
  src/gbm/backends/dri/gbm_dri.c | 33 +++++++++++++++++++++++++++++++++
  src/gbm/main/gbm.c             | 31 +++++++++++++++++++++++++++++++
@@ -14,7 +15,7 @@ the DRI Image extension.
  5 files changed, 113 insertions(+), 2 deletions(-)
 
 diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
-index 96fa9217255..bd8a80cdecf 100644
+index 96fa921..bd8a80c 100644
 --- a/src/gbm/backends/dri/gbm_dri.c
 +++ b/src/gbm/backends/dri/gbm_dri.c
 @@ -1355,6 +1355,37 @@ gbm_dri_surface_destroy(struct gbm_surface *_surf)
@@ -65,7 +66,7 @@ index 96fa9217255..bd8a80cdecf 100644
     dri->num_visuals = ARRAY_SIZE(gbm_dri_visuals_table);
  
 diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c
-index d81931a7483..e2351d34ad8 100644
+index d81931a..e2351d3 100644
 --- a/src/gbm/main/gbm.c
 +++ b/src/gbm/main/gbm.c
 @@ -758,6 +758,37 @@ gbm_format_get_name(uint32_t gbm_format, struct gbm_format_name_desc *desc)
@@ -107,7 +108,7 @@ index d81931a7483..e2351d34ad8 100644
   * A global table of functions and global variables defined in the core GBM
   * code that need to be accessed directly by GBM backends.
 diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h
-index 3a0fe73faae..7c82cd661a3 100644
+index 3a0fe73..7c82cd6 100644
 --- a/src/gbm/main/gbm.h
 +++ b/src/gbm/main/gbm.h
 @@ -246,6 +246,21 @@ enum gbm_bo_flags {
@@ -146,7 +147,7 @@ index 3a0fe73faae..7c82cd661a3 100644
  }
  #endif
 diff --git a/src/gbm/main/gbm_abi_check.c b/src/gbm/main/gbm_abi_check.c
-index f1137be7baf..02ce23b129e 100644
+index f1137be..02ce23b 100644
 --- a/src/gbm/main/gbm_abi_check.c
 +++ b/src/gbm/main/gbm_abi_check.c
 @@ -101,6 +101,21 @@ struct gbm_device_abi0 {
@@ -185,7 +186,7 @@ index f1137be7baf..02ce23b129e 100644
  
     /* Check current gbm_bo ABI against gbm_bo_abi0*/
 diff --git a/src/gbm/main/gbm_backend_abi.h b/src/gbm/main/gbm_backend_abi.h
-index 962ee74f003..3abf29faa92 100644
+index 962ee74..3abf29f 100644
 --- a/src/gbm/main/gbm_backend_abi.h
 +++ b/src/gbm/main/gbm_backend_abi.h
 @@ -72,7 +72,7 @@ struct gbm_backend_desc;
@@ -219,6 +220,3 @@ index 962ee74f003..3abf29faa92 100644
  };
  
  /**
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0025-gbm-don-t-assert-if-DRI-context-creation-fails.patch

@@ -1,16 +1,17 @@
-From dbe611e4cb6f0dddc05ead03f0341274a6b018c8 Mon Sep 17 00:00:00 2001
+From 799e67eeeb7d6984df65fa17ce9374416de5f61c Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Fri, 1 Dec 2017 08:31:15 +0000
-Subject: [PATCH 25/67] gbm: don't assert if DRI context creation fails
+Subject: [PATCH] gbm: don't assert if DRI context creation fails
 
 If the DRI backend fails to create a DRI context, return an error,
 rather than asserting.
+
 ---
  src/gbm/backends/dri/gbm_dri.c | 10 ++++++++--
  1 file changed, 8 insertions(+), 2 deletions(-)
 
 diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
-index bd8a80cdecf..2aa9c7c41ad 100644
+index bd8a80c..2aa9c7c 100644
 --- a/src/gbm/backends/dri/gbm_dri.c
 +++ b/src/gbm/backends/dri/gbm_dri.c
 @@ -1245,8 +1245,11 @@ gbm_dri_bo_map(struct gbm_bo *_bo,
@@ -39,6 +40,3 @@ index bd8a80cdecf..2aa9c7c41ad 100644
  
     /* GBM flags and DRI flags are the same, so just pass them on */
     dri->image->blitImage(dri->context, dst_bo->image, src_bo->image,
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0026-egl-wayland-add-pbuffer-support.patch

@@ -1,16 +1,17 @@
-From f16ea577ee06375423198dced8231d04e94536af Mon Sep 17 00:00:00 2001
+From 965b7a6be10d89e8cf3bfcf6737a7b9e3375e394 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Fri, 17 Mar 2017 16:23:07 +0000
-Subject: [PATCH 26/67] egl/wayland: add pbuffer support
+Subject: [PATCH] egl/wayland: add pbuffer support
 
 The pbuffer code is based on that in the Surfaceless platform code.
+
 ---
  src/egl/drivers/dri2/egl_dri2.h         |   4 +
  src/egl/drivers/dri2/platform_wayland.c | 270 ++++++++++++++++++++----
  2 files changed, 236 insertions(+), 38 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index 546bc0a0dbc..f41f32cd234 100644
+index 546bc0a..f41f32c 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
 @@ -405,6 +405,10 @@ struct dri2_egl_surface
@@ -25,7 +26,7 @@ index 546bc0a0dbc..f41f32cd234 100644
     EGLBoolean enable_out_fence;
  
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index 811d28bd669..a096d9500c1 100644
+index 811d28b..a096d95 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -427,6 +427,99 @@ dri2_wl_create_pixmap_surface(_EGLDisplay *disp, _EGLConfig *conf,
@@ -466,6 +467,3 @@ index 811d28bd669..a096d9500c1 100644
     .destroy_surface = dri2_wl_destroy_surface,
     .create_image = dri2_create_image_khr,
     .swap_buffers = dri2_wl_swrast_swap_buffers,
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0027-egl-tizen-support-DRI-driver-handling-of-swap-preser.patch

@@ -1,7 +1,7 @@
-From 48fe256681d8d7d3892393b102bf0a3ebc697c51 Mon Sep 17 00:00:00 2001
+From 446ff9fb0a0137745a2301982c52d187285d9837 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Mon, 18 Dec 2017 19:22:50 +0000
-Subject: [PATCH 27/67] egl/tizen: support DRI driver handling of swap preserve
+Subject: [PATCH] egl/tizen: support DRI driver handling of swap preserve
 
 This adds a new flag (__DRI_IMAGE_BUFFER_PREV) to the __DRIimageBufferMask
 enum that allows a DRI driver to request the previous back buffer. This
@@ -10,13 +10,14 @@ should result in the DRI driver preserving the previous content instead of
 this being done in the platform code. For hardware that supports it, this
 should avoid a blit being performed every frame, although this will still
 be necessary under certain conditions, e.g. an empty swap.
+
 ---
  include/GL/internal/dri_interface.h   |  3 +++
  src/egl/drivers/dri2/platform_tizen.c | 29 +++++++++++++++++++++------
  2 files changed, 26 insertions(+), 6 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index b197092939f..16cc095ea29 100644
+index b197092..16cc095 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -2073,12 +2073,15 @@ enum __DRIimageBufferMask {
@@ -36,7 +37,7 @@ index b197092939f..16cc095ea29 100644
  
  #define __DRI_IMAGE_LOADER "DRI_IMAGE_LOADER"
 diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
-index 49462152beb..2bc9b3e7c64 100644
+index 4946215..2bc9b3e 100644
 --- a/src/egl/drivers/dri2/platform_tizen.c
 +++ b/src/egl/drivers/dri2/platform_tizen.c
 @@ -147,7 +147,8 @@ create_image_from_native(struct dri2_egl_surface *dri2_surf,
@@ -116,6 +117,3 @@ index 49462152beb..2bc9b3e7c64 100644
     return 1;
  }
  
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0028-egl-eglBindAPI-workaround-for-dEQP-bug.patch

@@ -1,18 +1,19 @@
-From 90c87ad050dd7a4deda3ee1609e6cc27ea7dd616 Mon Sep 17 00:00:00 2001
+From 1a7c1d5f40bd0692460f9a7d164cb7de61826cb9 Mon Sep 17 00:00:00 2001
 From: Eric Engestrom <eric.engestrom@imgtec.com>
 Date: Mon, 25 Sep 2017 15:58:49 +0100
-Subject: [PATCH 28/67] egl: eglBindAPI workaround for dEQP bug
+Subject: [PATCH] egl: eglBindAPI workaround for dEQP bug
 
 dEQP relies on eglBindAPI to only return true if the API can
 successfully be used to create contexts, which the spec does not
 require.
 Until dEQP is fixed, just disable GL on non-X11 platforms.
+
 ---
  src/egl/main/eglcurrent.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/egl/main/eglcurrent.h b/src/egl/main/eglcurrent.h
-index d9a4a90174e..32570970947 100644
+index d9a4a90..3257097 100644
 --- a/src/egl/main/eglcurrent.h
 +++ b/src/egl/main/eglcurrent.h
 @@ -71,7 +71,7 @@ struct _egl_thread_info
@@ -24,6 +25,3 @@ index d9a4a90174e..32570970947 100644
     /* OpenGL is not a valid/supported API on Android */
     return api == EGL_OPENGL_ES_API;
  #else
--- 
-2.25.1
-

+ 4 - 7
recipes-graphics/mesa/mesa-pvr/0029-GL_EXT_multi_draw_indirect-entry-points.patch

@@ -1,7 +1,7 @@
-From a763c01172ee21a26f4c9dbb6055093f78d06fb2 Mon Sep 17 00:00:00 2001
+From 205f2cd0f14568a573154c35416d29621c5233c2 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Tue, 30 Jan 2018 10:25:11 +0000
-Subject: [PATCH 29/67] GL_EXT_multi_draw_indirect entry points
+Subject: [PATCH] GL_EXT_multi_draw_indirect entry points
 
 ---
  src/mapi/glapi/gen/es_EXT.xml     | 19 +++++++++++++++++++
@@ -9,7 +9,7 @@ Subject: [PATCH 29/67] GL_EXT_multi_draw_indirect entry points
  2 files changed, 21 insertions(+)
 
 diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
-index fe8f27e1e6f..e0d60faa9d2 100644
+index fe8f27e..e0d60fa 100644
 --- a/src/mapi/glapi/gen/es_EXT.xml
 +++ b/src/mapi/glapi/gen/es_EXT.xml
 @@ -1140,6 +1140,25 @@
@@ -39,7 +39,7 @@ index fe8f27e1e6f..e0d60faa9d2 100644
  
      <function name="CopyImageSubDataEXT" alias="CopyImageSubData" es2="3.0">
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index dc6bdc9dcce..e231c176264 100644
+index dc6bdc9..e231c17 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1704,6 +1704,8 @@ offsets = {
@@ -51,6 +51,3 @@ index dc6bdc9dcce..e231c176264 100644
  }
  
  functions = [
--- 
-2.25.1
-

+ 17 - 19
recipes-graphics/mesa/mesa-pvr/0030-dri-add-support-for-YUV-DRI-config.patch

@@ -1,11 +1,12 @@
-From 389e1a41360160bf56182a87cc52b5df9dc1265d Mon Sep 17 00:00:00 2001
+From 23b1868e2fbf2340a354559ca3e6ed61e723f7c8 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Fri, 22 Dec 2017 17:17:50 +0000
-Subject: [PATCH 30/67] dri: add support for YUV DRI config
+Subject: [PATCH] dri: add support for YUV DRI config
 
 This is prerequisite for adding support for EGL_EXT_yuv_surface.
 
 This also adds support for NV12 and NV21 EGL configs.
+
 ---
  include/GL/internal/dri_interface.h           | 42 ++++++++-
  src/gallium/frontends/dri/dri_screen.c        |  8 +-
@@ -24,7 +25,7 @@ This also adds support for NV12 and NV21 EGL configs.
  14 files changed, 181 insertions(+), 19 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 16cc095ea29..4d5a1874dc2 100644
+index 16cc095..4d5a187 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -826,7 +826,13 @@ struct __DRIuseInvalidateExtensionRec {
@@ -91,7 +92,7 @@ index 16cc095ea29..4d5a1874dc2 100644
   * This extension defines the core DRI functionality.
   *
 diff --git a/src/gallium/frontends/dri/dri_screen.c b/src/gallium/frontends/dri/dri_screen.c
-index b565a1fe8ec..37a0d4add0c 100644
+index b565a1f..37a0d4a 100644
 --- a/src/gallium/frontends/dri/dri_screen.c
 +++ b/src/gallium/frontends/dri/dri_screen.c
 @@ -324,7 +324,9 @@ dri_fill_in_modes(struct dri_screen *screen)
@@ -117,7 +118,7 @@ index b565a1fe8ec..37a0d4add0c 100644
           }
        }
 diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
-index 0c93d7df6e2..fd653379b7a 100644
+index 0c93d7d..fd65337 100644
 --- a/src/gallium/include/pipe/p_format.h
 +++ b/src/gallium/include/pipe/p_format.h
 @@ -513,6 +513,8 @@ enum pipe_format {
@@ -130,7 +131,7 @@ index 0c93d7df6e2..fd653379b7a 100644
     PIPE_FORMAT_COUNT
  };
 diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
-index a3f2bc57f46..d268dc41fbb 100644
+index a3f2bc5..d268dc4 100644
 --- a/src/mesa/drivers/dri/common/utils.c
 +++ b/src/mesa/drivers/dri/common/utils.c
 @@ -163,6 +163,21 @@ driGetRendererString( char * buffer, const char * hardware_name,
@@ -292,7 +293,7 @@ index a3f2bc57f46..d268dc41fbb 100644
          /* XXX log an error or smth */
          return GL_FALSE;
 diff --git a/src/mesa/drivers/dri/common/utils.h b/src/mesa/drivers/dri/common/utils.h
-index 7be0465c261..ebd98d9dc33 100644
+index 7be0465..ebd98d9 100644
 --- a/src/mesa/drivers/dri/common/utils.h
 +++ b/src/mesa/drivers/dri/common/utils.h
 @@ -45,7 +45,8 @@ driCreateConfigs(mesa_format format,
@@ -306,7 +307,7 @@ index 7be0465c261..ebd98d9dc33 100644
  __DRIconfig **driConcatConfigs(__DRIconfig **a,
  			       __DRIconfig **b);
 diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c
-index 6135357c2a0..a94c6de0a06 100644
+index 6135357..a94c6de 100644
 --- a/src/mesa/drivers/dri/i915/intel_screen.c
 +++ b/src/mesa/drivers/dri/i915/intel_screen.c
 @@ -1083,7 +1083,9 @@ intel_screen_make_configs(__DRIscreen *dri_screen)
@@ -332,7 +333,7 @@ index 6135357c2a0..a94c6de0a06 100644
     }
  
 diff --git a/src/mesa/drivers/dri/i965/brw_screen.c b/src/mesa/drivers/dri/i965/brw_screen.c
-index 56811110567..c450bae1054 100644
+index 5681111..c450bae 100644
 --- a/src/mesa/drivers/dri/i965/brw_screen.c
 +++ b/src/mesa/drivers/dri/i965/brw_screen.c
 @@ -2292,7 +2292,9 @@ brw_screen_make_configs(__DRIscreen *dri_screen)
@@ -369,7 +370,7 @@ index 56811110567..c450bae1054 100644
     }
  
 diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
-index c92efcd7b20..fc87d5eb395 100644
+index c92efcd..fc87d5e 100644
 --- a/src/mesa/drivers/dri/nouveau/nouveau_screen.c
 +++ b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
 @@ -79,7 +79,9 @@ nouveau_get_configs(uint32_t chipset)
@@ -384,7 +385,7 @@ index c92efcd7b20..fc87d5eb395 100644
  
  		configs = driConcatConfigs(configs, config);
 diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
-index 3764a5d6538..f7628555b8f 100644
+index 3764a5d..f762855 100644
 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c
 +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
 @@ -838,7 +838,9 @@ __DRIconfig **radeonInitScreen2(__DRIscreen *psp)
@@ -399,7 +400,7 @@ index 3764a5d6538..f7628555b8f 100644
     }
  
 diff --git a/src/mesa/main/format_info.py b/src/mesa/main/format_info.py
-index edc0324e60b..d58403ea85e 100644
+index edc0324..d58403e 100644
 --- a/src/mesa/main/format_info.py
 +++ b/src/mesa/main/format_info.py
 @@ -29,7 +29,7 @@ import sys
@@ -412,7 +413,7 @@ index edc0324e60b..d58403ea85e 100644
     elif fmat.has_channel('r'):
        if fmat.has_channel('g'):
 diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
-index 9cd026f7507..f81caeceff4 100644
+index 9cd026f..f81caec 100644
 --- a/src/mesa/main/formats.c
 +++ b/src/mesa/main/formats.c
 @@ -1452,6 +1452,15 @@ _mesa_format_matches_format_and_type(mesa_format mformat,
@@ -432,7 +433,7 @@ index 9cd026f7507..f81caeceff4 100644
        if (error)
           *error = GL_INVALID_ENUM;
 diff --git a/src/mesa/main/formats.csv b/src/mesa/main/formats.csv
-index 21cdea26e08..b2d476577e0 100644
+index 21cdea2..b2d4765 100644
 --- a/src/mesa/main/formats.csv
 +++ b/src/mesa/main/formats.csv
 @@ -92,6 +92,8 @@ MESA_FORMAT_A2R10G10B10_UNORM             , packed, 1, 1, 1, un2 , un10, un10, u
@@ -445,7 +446,7 @@ index 21cdea26e08..b2d476577e0 100644
  MESA_FORMAT_RG_RB_UNORM8                  , other , 2, 1, 1, x16 ,     ,     ,     , xyz1, rgb
  MESA_FORMAT_GR_BR_UNORM8                  , other , 2, 1, 1, x16 ,     ,     ,     , xyz1, rgb
 diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
-index 508c9c342d2..0e778d64467 100644
+index 508c9c3..0e778d6 100644
 --- a/src/mesa/main/formats.h
 +++ b/src/mesa/main/formats.h
 @@ -617,6 +617,13 @@ typedef enum pipe_format mesa_format;
@@ -463,7 +464,7 @@ index 508c9c342d2..0e778d64467 100644
  
  /* Packed to array format adapters */
 diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
-index 32528a5f16b..8f77d4c58dd 100644
+index 32528a5..8f77d4c 100644
 --- a/src/mesa/main/mtypes.h
 +++ b/src/mesa/main/mtypes.h
 @@ -158,6 +158,7 @@ _mesa_varying_slot_in_fs(gl_varying_slot slot)
@@ -489,6 +490,3 @@ index 32528a5f16b..8f77d4c58dd 100644
  };
  
  
--- 
-2.25.1
-

+ 9 - 11
recipes-graphics/mesa/mesa-pvr/0031-egl-add-support-for-EXT_yuv_surface.patch

@@ -1,9 +1,10 @@
-From 4e65ae659b775259b4f703eb563feffc623c17b7 Mon Sep 17 00:00:00 2001
+From a94bb1db20b8d60184af23a117ae2602e6c50290 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Wed, 20 Dec 2017 17:41:38 +0000
-Subject: [PATCH 31/67] egl: add support for EXT_yuv_surface
+Subject: [PATCH] egl: add support for EXT_yuv_surface
 
 This implements EXT_yuv_surface but doesn't expose it for any platform.
+
 ---
  include/GL/internal/dri_interface.h |   1 +
  src/egl/drivers/dri2/egl_dri2.c     |  83 +++++++++
@@ -14,7 +15,7 @@ This implements EXT_yuv_surface but doesn't expose it for any platform.
  6 files changed, 348 insertions(+), 5 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 4d5a1874dc2..62517e4004a 100644
+index 4d5a187..62517e4 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1154,6 +1154,7 @@ enum dri_loader_cap {
@@ -26,7 +27,7 @@ index 4d5a1874dc2..62517e4004a 100644
  
  struct __DRIdri2LoaderExtensionRec {
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index db993f8f059..ee3bcda4d12 100644
+index db993f8..ee3bcda 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -306,6 +306,7 @@ static const EGLint dri2_to_egl_attribute_map[__DRI_ATTRIB_MAX] = {
@@ -148,7 +149,7 @@ index db993f8f059..ee3bcda4d12 100644
  
  void
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index e2a7797d73e..6d7f62c6851 100644
+index e2a7797..6d7f62c 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -512,6 +512,7 @@ _eglCreateExtensionsString(_EGLDisplay *disp)
@@ -160,7 +161,7 @@ index e2a7797d73e..6d7f62c6851 100644
     _EGL_CHECK_EXTENSION(IMG_context_priority);
  
 diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c
-index 17d8f3555d4..5e56948ab72 100644
+index 17d8f35..5e56948 100644
 --- a/src/egl/main/eglconfig.c
 +++ b/src/egl/main/eglconfig.c
 @@ -258,6 +258,24 @@ static const struct {
@@ -495,7 +496,7 @@ index 17d8f3555d4..5e56948ab72 100644
  
     return (compare_id) ? (conf1->ConfigID - conf2->ConfigID) : 0;
 diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h
-index 1f2a4008f12..d4a748970b5 100644
+index 1f2a400..d4a7489 100644
 --- a/src/egl/main/eglconfig.h
 +++ b/src/egl/main/eglconfig.h
 @@ -89,6 +89,12 @@ struct _egl_config
@@ -525,7 +526,7 @@ index 1f2a4008f12..d4a748970b5 100644
     default:
        return -1;
 diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
-index 0a7366b7c07..020529c57e2 100644
+index 0a7366b..020529c 100644
 --- a/src/egl/main/egldisplay.h
 +++ b/src/egl/main/egldisplay.h
 @@ -112,6 +112,7 @@ struct _egl_extensions
@@ -536,6 +537,3 @@ index 0a7366b7c07..020529c57e2 100644
  
     unsigned int IMG_context_priority;
  #define  __EGL_CONTEXT_PRIORITY_LOW_BIT    0
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0032-dri-add-missing-__DRI_IMAGE_COMPONENTS-define-for-EG.patch

@@ -1,18 +1,19 @@
-From 5a22280c13e98932ad45fa6a131217abdffd16b4 Mon Sep 17 00:00:00 2001
+From 01febf756ccf6ffd8a8a0a16a465f755c32fc2de Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Fri, 2 Feb 2018 16:59:52 +0000
-Subject: [PATCH 32/67] dri: add missing __DRI_IMAGE_COMPONENTS define for
+Subject: [PATCH] dri: add missing __DRI_IMAGE_COMPONENTS define for
  EGL_TEXTURE_EXTERNAL_WL
 
 The __DRI_IMAGE_COMPONENTS defines have been re-ordered, to make it
 less likely that new defines will be added with the same values as
 existing ones.
+
 ---
  include/GL/internal/dri_interface.h | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 62517e4004a..6490f6e80e2 100644
+index 62517e4..6490f6e 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1461,11 +1461,12 @@ struct __DRIdri2ExtensionRec {
@@ -30,6 +31,3 @@ index 62517e4004a..6490f6e80e2 100644
  
  
  /**
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0033-egl-wayland-expose-EXT_yuv_surface-support.patch

@@ -1,16 +1,17 @@
-From 3d47285da42c76fe36ae67c62e8d0a0d76d18da0 Mon Sep 17 00:00:00 2001
+From ae4a6061fefd930234998c6d81942edeecafbd10 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Thu, 11 Jan 2018 09:38:47 +0000
-Subject: [PATCH 33/67] egl/wayland: expose EXT_yuv_surface support
+Subject: [PATCH] egl/wayland: expose EXT_yuv_surface support
 
 This adds support for YUYV configs.
+
 ---
  src/egl/drivers/dri2/egl_dri2.c         |  1 +
  src/egl/drivers/dri2/platform_wayland.c | 15 ++++++++++++++-
  2 files changed, 15 insertions(+), 1 deletion(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index ee3bcda4d12..d511d73f2ed 100644
+index ee3bcda..d511d73 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -2769,6 +2769,7 @@ static const struct wl_drm_components_descriptor {
@@ -22,7 +23,7 @@ index ee3bcda4d12..d511d73f2ed 100644
  
  static _EGLImage *
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index a096d9500c1..72456d5d748 100644
+index a096d95..72456d5 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -135,6 +135,13 @@ static const struct dri2_wl_visual {
@@ -69,6 +70,3 @@ index a096d9500c1..72456d5d748 100644
           if (dri2_conf) {
              if (dri2_conf->base.ConfigID == count + 1)
                 count++;
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0034-egl-tizen-expose-EXT_yuv_surface-support.patch

@@ -1,15 +1,16 @@
-From 40c0d03cfb2751279b24890d0f752fade968862e Mon Sep 17 00:00:00 2001
+From 6bdf417b37b8b8d50facbb610ab2b936bf5cc626 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Tue, 13 Feb 2018 14:47:48 +0000
-Subject: [PATCH 34/67] egl/tizen: expose EXT_yuv_surface support
+Subject: [PATCH] egl/tizen: expose EXT_yuv_surface support
 
 This adds support for NV12 and NV21 configs.
+
 ---
  src/egl/drivers/dri2/platform_tizen.c | 278 ++++++++++++++++++--------
  1 file changed, 200 insertions(+), 78 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
-index 2bc9b3e7c64..b6478a1875b 100644
+index 2bc9b3e..b6478a1 100644
 --- a/src/egl/drivers/dri2/platform_tizen.c
 +++ b/src/egl/drivers/dri2/platform_tizen.c
 @@ -100,37 +100,93 @@ create_image_from_native(struct dri2_egl_surface *dri2_surf,
@@ -352,6 +353,3 @@ index 2bc9b3e7c64..b6478a1875b 100644
  
        if (caveat & __DRI_ATTRIB_NON_CONFORMANT_CONFIG)
           attr_list[3] = EGL_NON_CONFORMANT_CONFIG;
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0035-gbm-add-some-new-GBM-formats.patch

@@ -1,19 +1,20 @@
-From 5bd42e648dc9068392641436b70fc28a00689c8e Mon Sep 17 00:00:00 2001
+From 7d5e378bf6fb2c000d17805032cb044b38d1218d Mon Sep 17 00:00:00 2001
 From: Silvestrs Timofejevs <silvestrs.timofejevs@imgtec.com>
 Date: Thu, 30 Aug 2018 13:48:53 +0100
-Subject: [PATCH 35/67] gbm: add some new GBM formats
+Subject: [PATCH] gbm: add some new GBM formats
 
 GBM_FORMAT_ARGB4444
 GBM_FORMAT_BGR888
 GBM_FORMAT_YUYV
 GBM_FORMAT_YVU444_PACK10_IMG
+
 ---
  src/gbm/backends/dri/gbm_dri.c | 16 ++++++++++++++++
  src/gbm/main/gbm.h             |  2 ++
  2 files changed, 18 insertions(+)
 
 diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
-index 2aa9c7c41ad..5acb15b516f 100644
+index 2aa9c7c..5acb15b 100644
 --- a/src/gbm/backends/dri/gbm_dri.c
 +++ b/src/gbm/backends/dri/gbm_dri.c
 @@ -514,11 +514,21 @@ static const struct gbm_dri_visual gbm_dri_visuals_table[] = {
@@ -52,7 +53,7 @@ index 2aa9c7c41ad..5acb15b516f 100644
  
  static int
 diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h
-index 7c82cd661a3..81308ab9745 100644
+index 7c82cd6..81308ab 100644
 --- a/src/gbm/main/gbm.h
 +++ b/src/gbm/main/gbm.h
 @@ -167,6 +167,8 @@ enum gbm_bo_format {
@@ -64,6 +65,3 @@ index 7c82cd661a3..81308ab9745 100644
  /*
   * 2 plane YCbCr
   * index 0 = Y plane, [7:0] Y
--- 
-2.25.1
-

+ 11 - 14
recipes-graphics/mesa/mesa-pvr/0036-egl-add-null-platform.patch

@@ -1,7 +1,7 @@
-From def26b8534e4f8e150e5775dd1f7d2d955580c05 Mon Sep 17 00:00:00 2001
+From 7f4c353e7d2778fff8d728c1aed247900610b725 Mon Sep 17 00:00:00 2001
 From: Frank Binns <francisbinns@gmail.com>
 Date: Sun, 5 Jun 2016 12:04:40 +0100
-Subject: [PATCH 36/67] egl: add "null" platform
+Subject: [PATCH] egl: add "null" platform
 
 ---
  meson.build                          |   25 +-
@@ -17,7 +17,7 @@ Subject: [PATCH 36/67] egl: add "null" platform
  create mode 100644 src/egl/drivers/dri2/platform_null.c
 
 diff --git a/meson.build b/meson.build
-index 3d9d345dbf2..2018562a1ec 100644
+index 3d9d345..2018562 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -340,7 +340,7 @@ endif
@@ -74,7 +74,7 @@ index 3d9d345dbf2..2018562a1ec 100644
  if dep_libdrm.found()
    pre_args += '-DHAVE_LIBDRM'
 diff --git a/meson_options.txt b/meson_options.txt
-index 8230db93c70..d90a25f97ff 100644
+index 8230db9..d90a25f 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -23,7 +23,7 @@ option(
@@ -87,7 +87,7 @@ index 8230db93c70..d90a25f97ff 100644
    description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
  )
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index d511d73f2ed..2f8414e0c60 100644
+index d511d73..2f8414e 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -1253,6 +1253,9 @@ dri2_initialize(_EGLDisplay *disp)
@@ -128,7 +128,7 @@ index d511d73f2ed..2f8414e0c60 100644
      * the ones from the gbm device. As such the gbm itself is responsible
      * for the cleanup.
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index f41f32cd234..eb2127e3fe6 100644
+index f41f32c..eb2127e 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
 @@ -81,6 +81,10 @@ struct zwp_linux_dmabuf_v1;
@@ -247,7 +247,7 @@ index f41f32cd234..eb2127e3fe6 100644
  static inline void
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
 new file mode 100644
-index 00000000000..fb03ecc36fd
+index 0000000..fb03ecc
 --- /dev/null
 +++ b/src/egl/drivers/dri2/platform_null.c
 @@ -0,0 +1,1179 @@
@@ -1431,7 +1431,7 @@ index 00000000000..fb03ecc36fd
 +   }
 +}
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index 6d7f62c6851..e4f2c43b4ef 100644
+index 6d7f62c..e4f2c43 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -989,7 +989,10 @@ _eglCreateWindowSurfaceCommon(_EGLDisplay *disp, EGLConfig config,
@@ -1447,7 +1447,7 @@ index 6d7f62c6851..e4f2c43b4ef 100644
     if (disp && (disp->Platform == _EGL_PLATFORM_SURFACELESS ||
                  disp->Platform == _EGL_PLATFORM_DEVICE)) {
 diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
-index 486ac3b0557..395f38156d7 100644
+index 486ac3b..395f381 100644
 --- a/src/egl/main/egldisplay.c
 +++ b/src/egl/main/egldisplay.c
 @@ -78,6 +78,7 @@ static const struct {
@@ -1459,7 +1459,7 @@ index 486ac3b0557..395f38156d7 100644
  
  
 diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
-index 020529c57e2..8489af9dde2 100644
+index 020529c..8489af9 100644
 --- a/src/egl/main/egldisplay.h
 +++ b/src/egl/main/egldisplay.h
 @@ -53,6 +53,7 @@ enum _egl_platform_type {
@@ -1471,7 +1471,7 @@ index 020529c57e2..8489af9dde2 100644
     _EGL_NUM_PLATFORMS,
     _EGL_INVALID_PLATFORM = -1
 diff --git a/src/egl/meson.build b/src/egl/meson.build
-index 5749ec88f89..daa6a3a04f0 100644
+index 5749ec8..daa6a3a 100644
 --- a/src/egl/meson.build
 +++ b/src/egl/meson.build
 @@ -146,6 +146,11 @@ if with_platform_tizen
@@ -1486,6 +1486,3 @@ index 5749ec88f89..daa6a3a04f0 100644
  
  if cc.has_function('mincore')
    c_args_for_egl += '-DHAVE_MINCORE'
--- 
-2.25.1
-

+ 9 - 11
recipes-graphics/mesa/mesa-pvr/0037-egl-add-config-debug-printout.patch

@@ -1,7 +1,7 @@
-From 02065d490a68d542be56c2ea23346b3fa19928cb Mon Sep 17 00:00:00 2001
+From a5c947e12d7b29419f8996ca3a7beeefe424d8dc Mon Sep 17 00:00:00 2001
 From: Silvestrs Timofejevs <silvestrs.timofejevs@imgtec.com>
 Date: Mon, 24 Sep 2018 14:14:25 +0100
-Subject: [PATCH 37/67] egl: add config debug printout
+Subject: [PATCH] egl: add config debug printout
 
 Feature to print out EGL returned configs for debug purposes.
 
@@ -9,6 +9,7 @@ Feature to print out EGL returned configs for debug purposes.
 enabled when the log level equals '_EGL_DEBUG'. The configs are
 printed, and if any of them are "chosen" they are marked with their
 index in the chosen configs array.
+
 ---
  src/egl/main/eglconfig.c      |  20 ++-
  src/egl/main/eglconfigdebug.c | 321 ++++++++++++++++++++++++++++++++++
@@ -21,7 +22,7 @@ index in the chosen configs array.
  create mode 100644 src/egl/main/eglconfigdebug.h
 
 diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c
-index 5e56948ab72..ea4b3c15f3f 100644
+index 5e56948..ea4b3c1 100644
 --- a/src/egl/main/eglconfig.c
 +++ b/src/egl/main/eglconfig.c
 @@ -40,6 +40,7 @@
@@ -70,7 +71,7 @@ index 5e56948ab72..ea4b3c15f3f 100644
  }
 diff --git a/src/egl/main/eglconfigdebug.c b/src/egl/main/eglconfigdebug.c
 new file mode 100644
-index 00000000000..92ac41a5614
+index 0000000..92ac41a
 --- /dev/null
 +++ b/src/egl/main/eglconfigdebug.c
 @@ -0,0 +1,321 @@
@@ -397,7 +398,7 @@ index 00000000000..92ac41a5614
 +}
 diff --git a/src/egl/main/eglconfigdebug.h b/src/egl/main/eglconfigdebug.h
 new file mode 100644
-index 00000000000..562aefff9de
+index 0000000..562aeff
 --- /dev/null
 +++ b/src/egl/main/eglconfigdebug.h
 @@ -0,0 +1,55 @@
@@ -457,7 +458,7 @@ index 00000000000..562aefff9de
 +
 +#endif /* EGLCONFIGDEBUG_INCLUDED */
 diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c
-index 973b7600ab1..7a9032f9bbb 100644
+index 973b760..7a9032f 100644
 --- a/src/egl/main/egllog.c
 +++ b/src/egl/main/egllog.c
 @@ -153,6 +153,15 @@ _eglInitLogger(void)
@@ -477,7 +478,7 @@ index 973b7600ab1..7a9032f9bbb 100644
  /**
   * Log a message with message logger.
 diff --git a/src/egl/main/egllog.h b/src/egl/main/egllog.h
-index 2a06a34684a..a1cf9770ed8 100644
+index 2a06a34..a1cf977 100644
 --- a/src/egl/main/egllog.h
 +++ b/src/egl/main/egllog.h
 @@ -44,6 +44,10 @@ extern "C" {
@@ -492,7 +493,7 @@ index 2a06a34684a..a1cf9770ed8 100644
  _eglLog(EGLint level, const char *fmtStr, ...);
  
 diff --git a/src/egl/meson.build b/src/egl/meson.build
-index daa6a3a04f0..384bb98ebb3 100644
+index daa6a3a..384bb98 100644
 --- a/src/egl/meson.build
 +++ b/src/egl/meson.build
 @@ -31,6 +31,8 @@ files_egl = files(
@@ -504,6 +505,3 @@ index daa6a3a04f0..384bb98ebb3 100644
    'main/eglconfig.c',
    'main/eglconfig.h',
    'main/eglcontext.c',
--- 
-2.25.1
-

+ 7 - 10
recipes-graphics/mesa/mesa-pvr/0038-egl-add-support-for-EXT_image_gl_colorspace.patch

@@ -1,7 +1,7 @@
-From d1d64a3c11fbab083d6225857554ac1c9ad645b6 Mon Sep 17 00:00:00 2001
+From afc48c7cfe5e859832e753a987b9405544ce82e8 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Tue, 29 Jan 2019 14:36:25 +0000
-Subject: [PATCH 38/67] egl: add support for EXT_image_gl_colorspace
+Subject: [PATCH] egl: add support for EXT_image_gl_colorspace
 
 ---
  src/egl/drivers/dri2/egl_dri2.c | 57 +++++++++++++++++++++++++++++++--
@@ -12,7 +12,7 @@ Subject: [PATCH 38/67] egl: add support for EXT_image_gl_colorspace
  5 files changed, 74 insertions(+), 2 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index 2f8414e0c60..6b26ff979ae 100644
+index 2f8414e..6b26ff9 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -1084,6 +1084,9 @@ dri2_setup_screen(_EGLDisplay *disp)
@@ -143,7 +143,7 @@ index 2f8414e0c60..6b26ff979ae 100644
              attrs.DMABufYuvColorSpaceHint.Value,
              attrs.DMABufSampleRangeHint.Value,
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index e4f2c43b4ef..2d3931dfd26 100644
+index e4f2c43..2d3931d 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -508,6 +508,7 @@ _eglCreateExtensionsString(_EGLDisplay *disp)
@@ -155,7 +155,7 @@ index e4f2c43b4ef..2d3931dfd26 100644
     _EGL_CHECK_EXTENSION(EXT_surface_CTA861_3_metadata);
     _EGL_CHECK_EXTENSION(EXT_surface_SMPTE2086_metadata);
 diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
-index 8489af9dde2..6e5b29fe1ac 100644
+index 8489af9..6e5b29f 100644
 --- a/src/egl/main/egldisplay.h
 +++ b/src/egl/main/egldisplay.h
 @@ -108,6 +108,7 @@ struct _egl_extensions
@@ -167,7 +167,7 @@ index 8489af9dde2..6e5b29fe1ac 100644
     EGLBoolean EXT_protected_surface;
     EGLBoolean EXT_surface_CTA861_3_metadata;
 diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c
-index 64bf7f2bfe9..73d4e85b82e 100644
+index 64bf7f2..73d4e85 100644
 --- a/src/egl/main/eglimage.c
 +++ b/src/egl/main/eglimage.c
 @@ -46,6 +46,18 @@ _eglParseKHRImageAttribs(_EGLImageAttribs *attrs, _EGLDisplay *disp,
@@ -199,7 +199,7 @@ index 64bf7f2bfe9..73d4e85b82e 100644
        return EGL_TRUE;
  
 diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h
-index 9837f05dad1..fc02d7a265c 100644
+index 9837f05..fc02d7a 100644
 --- a/src/egl/main/eglimage.h
 +++ b/src/egl/main/eglimage.h
 @@ -80,6 +80,9 @@ struct _egl_image_attribs
@@ -212,6 +212,3 @@ index 9837f05dad1..fc02d7a265c 100644
     /* EGL_EXT_protected_surface */
     EGLBoolean ProtectedContent;
  };
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0039-meson-force-C-2011-for-thread_local.patch

@@ -1,7 +1,7 @@
-From c8a6405eaf4c9693f32381fa7aa6d292e7f95716 Mon Sep 17 00:00:00 2001
+From 7a283afb295d6377892c9aa4078f836cb43e43f8 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 24 Jun 2019 09:35:39 +0100
-Subject: [PATCH 39/67] meson: force C++ 2011 for "thread_local"
+Subject: [PATCH] meson: force C++ 2011 for "thread_local"
 
 For some combinations of Meson and the GNU C++ compiler, Meson does
 not add '-std=c++11' to the command line arguments, resulting in
@@ -9,12 +9,13 @@ compilation errors, due to the use of the "thread_local" keyword (a
 C++ 2011 feature). If the C++ compiler doesn't understand the
 "thread_local" keyword by default, add '-std=c++11' to the compiler
 command line arguments.
+
 ---
  meson.build | 6 ++++++
  1 file changed, 6 insertions(+)
 
 diff --git a/meson.build b/meson.build
-index 2018562a1ec..21d93d372c2 100644
+index 2018562..21d93d3 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -32,6 +32,12 @@ project(
@@ -30,6 +31,3 @@ index 2018562a1ec..21d93d372c2 100644
  null_dep = dependency('', required : false)
  
  if get_option('layout') != 'mirror'
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0040-dri2-add-support-for-swap-intervals-other-than-1.patch

@@ -1,7 +1,7 @@
-From dbb0d023abb9e4bfed70144514595f0477840f3e Mon Sep 17 00:00:00 2001
+From 6d46bd2dc65bde965fe8d6c53112c61274ac837f Mon Sep 17 00:00:00 2001
 From: Luigi Santivetti <luigi.santivetti@imgtec.com>
 Date: Wed, 19 Jun 2019 16:36:06 +0100
-Subject: [PATCH 40/67] dri2: add support for swap intervals other than 1
+Subject: [PATCH] dri2: add support for swap intervals other than 1
 
 Before this change, the swap interval was fixed at 1, with page flips
 scheduled on the next vblank. This change allows any swap interval
@@ -16,13 +16,14 @@ regardless of the timing of subsequent calls to swap buffers.
 
 Change-Id: If7c0495df7ddfaa08583a14f820c46e1b97da788
 Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
+
 ---
  src/egl/drivers/dri2/egl_dri2.h      |  34 +-
  src/egl/drivers/dri2/platform_null.c | 541 +++++++++++++++++++++++----
  2 files changed, 497 insertions(+), 78 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index eb2127e3fe6..64d60ed66e4 100644
+index eb2127e..64d60ed 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
 @@ -332,6 +332,23 @@ struct tpl_swap_queue_elem
@@ -94,7 +95,7 @@ index eb2127e3fe6..64d60ed66e4 100644
  
     int out_fence_fd;
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index fb03ecc36fd..5b7c1ec426c 100644
+index fb03ecc..5b7c1ec 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
 @@ -31,6 +31,7 @@
@@ -780,6 +781,3 @@ index fb03ecc36fd..5b7c1ec426c 100644
  
     if (dri2_dpy->image->base.version < NULL_IMAGE_EXTENSION_VERSION_MIN) {
        _eglError(EGL_NOT_INITIALIZED, "image extension version too old");
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0041-null_platform-add-support-for-explicit-synchronisati.patch

@@ -1,7 +1,7 @@
-From d286d05d0d84c913c8bfcbe8f693083caf3bcc77 Mon Sep 17 00:00:00 2001
+From ced3b5d803cd044526672c8458029b5a6519b86a Mon Sep 17 00:00:00 2001
 From: Silvestrs Timofejevs <silvestrs.timofejevs@imgtec.com>
 Date: Mon, 2 Sep 2019 09:32:01 +0100
-Subject: [PATCH 41/67] null_platform: add support for explicit synchronisation
+Subject: [PATCH] null_platform: add support for explicit synchronisation
 
 This change adds support for the 'in' fence, the 'out' fence will
 potentially be added in subsequent optimisation changes.
@@ -36,13 +36,14 @@ explicit synchronisation failure. As mentioned above, this failure
 will result in implicit synchronisation being used instead.
 
 Change-Id: Ib9c4a0bc3ea1b21192ee37909d7580d6b7b366ec
+
 ---
  src/egl/drivers/dri2/egl_dri2.h      |  2 +
  src/egl/drivers/dri2/platform_null.c | 77 +++++++++++++++++++++++++++-
  2 files changed, 77 insertions(+), 2 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index 64d60ed66e4..eb6e4551087 100644
+index 64d60ed..eb6e455 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
 @@ -106,6 +106,7 @@ struct wl_buffer;
@@ -62,7 +63,7 @@ index 64d60ed66e4..eb6e4551087 100644
  
  enum {
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index 5b7c1ec426c..d36dc0ced2a 100644
+index 5b7c1ec..d36dc0c 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
 @@ -401,6 +401,9 @@ display_output_atomic_init(int fd, struct display_output *output)
@@ -209,6 +210,3 @@ index 5b7c1ec426c..d36dc0ced2a 100644
     return surf;
  
  err_free_surface:
--- 
-2.25.1
-

+ 6 - 8
recipes-graphics/mesa/mesa-pvr/0042-egl-null-add-support-for-DRM-image-format-modifiers.patch

@@ -1,7 +1,7 @@
-From 4f9ca104c16a6eb1af770e2447adb4413fb41cb7 Mon Sep 17 00:00:00 2001
+From dbf265558ceb9688f5ffd626ab8969bd836ca60f Mon Sep 17 00:00:00 2001
 From: Luigi Santivetti <luigi.santivetti@imgtec.com>
 Date: Thu, 26 Sep 2019 13:32:15 +0100
-Subject: [PATCH 42/68] egl/null: add support for DRM image format modifiers
+Subject: [PATCH] egl/null: add support for DRM image format modifiers
 
 This change introduces support for image modifiers to platform_null. In
 order for it to create an image with modifiers, it relies on libdrm to
@@ -25,6 +25,7 @@ Internal notes:
 
 Change-Id: I0f7b030f6e1943690692674bf18daabfc153208a
 Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
+
 ---
  meson.build                          |   5 +
  src/egl/drivers/dri2/egl_dri2.h      |   3 +
@@ -32,7 +33,7 @@ Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
  3 files changed, 203 insertions(+), 26 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index 21d93d372c2..ca89b8ac20d 100644
+index 21d93d3..ca89b8a 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -1581,6 +1581,11 @@ if with_gallium_etnaviv
@@ -48,7 +49,7 @@ index 21d93d372c2..ca89b8ac20d 100644
  # active drivers.
  _drm_blame = ''
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index eb6e4551087..32ad720b343 100644
+index eb6e455..32ad720 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
 @@ -117,6 +117,8 @@ struct display_output {
@@ -69,7 +70,7 @@ index eb6e4551087..32ad720b343 100644
  #endif
  
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index d36dc0ced2a..2c79199da26 100644
+index d36dc0c..2c79199 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
 @@ -40,6 +40,7 @@
@@ -396,6 +397,3 @@ index d36dc0ced2a..2c79199da26 100644
 +
 +   u_vector_finish(&dri2_dpy->output.modifiers);
  }
--- 
-2.25.1
-

+ 10 - 12
recipes-graphics/mesa/mesa-pvr/0043-egl-query-the-supported-ES2-context-version.patch

@@ -1,7 +1,7 @@
-From 1e6466e541e1fc67198be3eeb090e3af22bd6d19 Mon Sep 17 00:00:00 2001
+From 1ae221afb2c03d2b3cd0a607dc6646f33c07341c Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 10 Feb 2020 09:23:03 +0000
-Subject: [PATCH 43/67] egl: query the supported ES2 context version
+Subject: [PATCH] egl: query the supported ES2 context version
 
 For OpenGL ES contexts, the EGL specification states that querying
 EGL_CONTEXT_CLIENT_VERSION with eglQueryContext may return a version
@@ -28,6 +28,7 @@ has been added to the end of the new query name, this should be removed
 if an attempt is made to push this patch upstream. The value of the new
 query should be adjusted to be the next one in sequence, rather than the
 large value it currently has.
+
 ---
  include/GL/internal/dri_interface.h |  2 ++
  src/egl/drivers/dri2/egl_dri2.c     | 21 +++++++++++++++++++++
@@ -39,7 +40,7 @@ large value it currently has.
  7 files changed, 50 insertions(+), 4 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 6490f6e80e2..9c7bcac4cae 100644
+index 6490f6e..9c7bcac 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -2052,6 +2052,8 @@ typedef struct __DRIDriverVtableExtensionRec {
@@ -52,7 +53,7 @@ index 6490f6e80e2..9c7bcac4cae 100644
  struct __DRI2rendererQueryExtensionRec {
     __DRIextension base;
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index 6b26ff979ae..c4a49cae592 100644
+index 6b26ff9..c4a49ca 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -2055,6 +2055,26 @@ dri2_make_current(_EGLDisplay *disp, _EGLSurface *dsurf,
@@ -91,7 +92,7 @@ index 6b26ff979ae..c4a49cae592 100644
     .CreatePixmapSurface = dri2_create_pixmap_surface,
     .CreatePbufferSurface = dri2_create_pbuffer_surface,
 diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp
-index 18c73c9cd8b..2690a82eb75 100644
+index 18c73c9..2690a82 100644
 --- a/src/egl/drivers/haiku/egl_haiku.cpp
 +++ b/src/egl/drivers/haiku/egl_haiku.cpp
 @@ -297,6 +297,14 @@ haiku_make_current(_EGLDisplay *disp, _EGLSurface *dsurf,
@@ -118,7 +119,7 @@ index 18c73c9cd8b..2690a82eb75 100644
  	.CreatePixmapSurface = haiku_create_pixmap_surface,
  	.CreatePbufferSurface = haiku_create_pbuffer_surface,
 diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
-index 2d3931dfd26..1cbff9656e4 100644
+index 2d3931d..1cbff96 100644
 --- a/src/egl/main/eglapi.c
 +++ b/src/egl/main/eglapi.c
 @@ -948,7 +948,7 @@ eglQueryContext(EGLDisplay dpy, EGLContext ctx,
@@ -131,7 +132,7 @@ index 2d3931dfd26..1cbff9656e4 100644
     RETURN_EGL_EVAL(disp, ret);
  }
 diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
-index 15de7c99496..7274d246194 100644
+index 15de7c9..7274d24 100644
 --- a/src/egl/main/eglcontext.c
 +++ b/src/egl/main/eglcontext.c
 @@ -35,6 +35,7 @@
@@ -173,7 +174,7 @@ index 15de7c99496..7274d246194 100644
     case EGL_CONTEXT_CLIENT_TYPE:
        *value = c->ClientAPI;
 diff --git a/src/egl/main/eglcontext.h b/src/egl/main/eglcontext.h
-index 06029e81251..d890217852d 100644
+index 06029e8..d890217 100644
 --- a/src/egl/main/eglcontext.h
 +++ b/src/egl/main/eglcontext.h
 @@ -74,7 +74,8 @@ _eglInitContext(_EGLContext *ctx, _EGLDisplay *disp,
@@ -187,7 +188,7 @@ index 06029e81251..d890217852d 100644
  
  extern EGLBoolean
 diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h
-index 12f9a0aab86..92af8bd16d5 100644
+index 12f9a0a..92af8bd 100644
 --- a/src/egl/main/egldriver.h
 +++ b/src/egl/main/egldriver.h
 @@ -97,6 +97,7 @@ struct _egl_driver
@@ -198,6 +199,3 @@ index 12f9a0aab86..92af8bd16d5 100644
  
     /* surface funcs */
     _EGLSurface *(*CreateWindowSurface)(_EGLDisplay *disp, _EGLConfig *config,
--- 
-2.25.1
-

+ 8 - 10
recipes-graphics/mesa/mesa-pvr/0044-meson-allow-libGL-to-be-built-without-GLX.patch

@@ -1,7 +1,7 @@
-From 64e6997ded5825f10125313ea15e3164bdad769b Mon Sep 17 00:00:00 2001
+From 01c91ceb04478e567cae1685d3fe44faefdfecb3 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 11 Jun 2020 12:29:51 +0100
-Subject: [PATCH 44/67] meson: allow libGL to be built without GLX
+Subject: [PATCH] meson: allow libGL to be built without GLX
 
 If Meson is run with option "glx" set to "null", build the
 OpenGL library without GLX.
@@ -11,6 +11,7 @@ The "eglBindAPI workaround for dEQP bug" change to eglcurrent.h
 modified to use a new EGL_WITH_OPENGL define, which indicates
 whether OpneGL is present or not. This allows EGL to be used
 with OpenGL on platforms other than X11.
+
 ---
  meson.build               |  8 ++++++--
  meson_options.txt         |  2 +-
@@ -20,7 +21,7 @@ with OpenGL on platforms other than X11.
  5 files changed, 27 insertions(+), 12 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index 21d93d372c2..8db1699729a 100644
+index ca89b8a..c0b6264 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -485,6 +485,10 @@ if with_egl and not _platforms.contains(egl_native_platform)
@@ -53,7 +54,7 @@ index 21d93d372c2..8db1699729a 100644
    endif
  endif
 diff --git a/meson_options.txt b/meson_options.txt
-index d90a25f97ff..d36e714ea4c 100644
+index d90a25f..d36e714 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -290,7 +290,7 @@ option(
@@ -66,7 +67,7 @@ index d90a25f97ff..d36e714ea4c 100644
  )
  option(
 diff --git a/src/egl/main/eglcurrent.h b/src/egl/main/eglcurrent.h
-index 32570970947..dcc418afd6f 100644
+index 3257097..dcc418a 100644
 --- a/src/egl/main/eglcurrent.h
 +++ b/src/egl/main/eglcurrent.h
 @@ -71,11 +71,10 @@ struct _egl_thread_info
@@ -85,7 +86,7 @@ index 32570970947..dcc418afd6f 100644
  }
  
 diff --git a/src/glx/meson.build b/src/glx/meson.build
-index 8f642d5e14b..605a9717e37 100644
+index 8f642d5..605a971 100644
 --- a/src/glx/meson.build
 +++ b/src/glx/meson.build
 @@ -122,7 +122,15 @@ else
@@ -127,7 +128,7 @@ index 8f642d5e14b..605a9717e37 100644
    dependencies : [
      dep_libdrm, dep_dl, dep_m, dep_thread, dep_x11, dep_xcb_glx, dep_xcb,
 diff --git a/src/meson.build b/src/meson.build
-index c3bab27718d..f6eede56648 100644
+index c3bab27..f6eede5 100644
 --- a/src/meson.build
 +++ b/src/meson.build
 @@ -110,7 +110,7 @@ subdir('loader')
@@ -139,6 +140,3 @@ index c3bab27718d..f6eede56648 100644
    subdir('glx')
  endif
  if with_gbm
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0045-egl-wayland-process-non-resized-window-movement.patch

@@ -1,17 +1,18 @@
-From 394d340dda351452571ec8861d6768c52d338251 Mon Sep 17 00:00:00 2001
+From b873893f09ebdb8a6816c6f1e9abad953695ab3c Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Tue, 25 Aug 2020 14:12:32 +0100
-Subject: [PATCH 45/67] egl/wayland: process non-resized window movement
+Subject: [PATCH] egl/wayland: process non-resized window movement
 
 The dx and dy parameters to the wl_egl_window_resize function were
 not being processed unless the window width or height were being
 changed.
+
 ---
  src/egl/drivers/dri2/platform_wayland.c | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index 72456d5d748..06272d4081e 100644
+index 72456d5..06272d4 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -266,6 +266,9 @@ resize_callback(struct wl_egl_window *wl_win, void *data)
@@ -33,6 +34,3 @@ index 72456d5d748..06272d4081e 100644
     }
  
     if (dri2_surf->wl_win &&
--- 
-2.25.1
-

+ 9 - 11
recipes-graphics/mesa/mesa-pvr/0046-Separate-EXT_framebuffer_object-from-ARB-version.patch

@@ -1,7 +1,7 @@
-From ed4671544a6add01e87e94c04df59a600403dd21 Mon Sep 17 00:00:00 2001
+From 01d9921f0768cf26cf37a402b2d9f92a6dbfe2c0 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 10 Mar 2014 13:43:45 +0000
-Subject: [PATCH 46/67] Separate EXT_framebuffer_object from ARB version
+Subject: [PATCH] Separate EXT_framebuffer_object from ARB version
 
 This patch separates the EXT_framebuffer_object entry points from the ARB
 equivalents.
@@ -16,6 +16,7 @@ Next time this patch is implemented, see if it can be trimmed down to
 just the above functions, as it may be more upstreamable.
 
 We may need to implement the EXT restrictions if we want to upstream.
+
 ---
  src/mapi/glapi/gen/EXT_framebuffer_object.xml | 30 +++----
  src/mapi/glapi/gen/static_data.py             | 15 ++++
@@ -26,7 +27,7 @@ We may need to implement the EXT restrictions if we want to upstream.
  6 files changed, 176 insertions(+), 15 deletions(-)
 
 diff --git a/src/mapi/glapi/gen/EXT_framebuffer_object.xml b/src/mapi/glapi/gen/EXT_framebuffer_object.xml
-index 6c0e54af1c9..957b6a3a632 100644
+index 6c0e54a..957b6a3 100644
 --- a/src/mapi/glapi/gen/EXT_framebuffer_object.xml
 +++ b/src/mapi/glapi/gen/EXT_framebuffer_object.xml
 @@ -70,7 +70,7 @@
@@ -145,7 +146,7 @@ index 6c0e54af1c9..957b6a3a632 100644
      </function>
  </category>
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index e231c176264..974f366d7b4 100644
+index e231c17..974f366 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1706,6 +1706,21 @@ offsets = {
@@ -171,7 +172,7 @@ index e231c176264..974f366d7b4 100644
  
  functions = [
 diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
-index 49893165250..885aa442911 100644
+index 4989316..885aa44 100644
 --- a/src/mesa/main/fbobject.c
 +++ b/src/mesa/main/fbobject.c
 @@ -1995,6 +1995,11 @@ _mesa_detach_renderbuffer(struct gl_context *ctx,
@@ -356,7 +357,7 @@ index 49893165250..885aa442911 100644
  void GLAPIENTRY
  _mesa_GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment,
 diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h
-index 2a32c158e68..98271d76f50 100644
+index 2a32c15..98271d7 100644
 --- a/src/mesa/main/fbobject.h
 +++ b/src/mesa/main/fbobject.h
 @@ -145,6 +145,9 @@ _mesa_bind_framebuffers(struct gl_context *ctx,
@@ -507,7 +508,7 @@ index 2a32c158e68..98271d76f50 100644
  _mesa_InvalidateSubFramebuffer(GLenum target, GLsizei numAttachments,
                                 const GLenum *attachments, GLint x, GLint y,
 diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c
-index 36727bb7060..8d262e53852 100644
+index 36727bb..8d262e5 100644
 --- a/src/mesa/main/genmipmap.c
 +++ b/src/mesa/main/genmipmap.c
 @@ -267,3 +267,9 @@ _mesa_GenerateMultiTexMipmapEXT(GLenum texunit, GLenum target)
@@ -521,7 +522,7 @@ index 36727bb7060..8d262e53852 100644
 +   _mesa_GenerateMipmap(target);
 +}
 diff --git a/src/mesa/main/genmipmap.h b/src/mesa/main/genmipmap.h
-index c661f2184c7..ff3b45a4417 100644
+index c661f21..ff3b45a 100644
 --- a/src/mesa/main/genmipmap.h
 +++ b/src/mesa/main/genmipmap.h
 @@ -44,6 +44,9 @@ _mesa_GenerateMipmap(GLenum target);
@@ -534,6 +535,3 @@ index c661f2184c7..ff3b45a4417 100644
  extern void GLAPIENTRY
  _mesa_GenerateTextureMipmap(GLuint texture);
  
--- 
-2.25.1
-

+ 18 - 20
recipes-graphics/mesa/mesa-pvr/0047-egl-null-add-support-for-async-flip-with-front-buffe.patch

@@ -1,7 +1,7 @@
-From f775167cbe3f324468f8f355be13bd6efa7d4567 Mon Sep 17 00:00:00 2001
+From 5212f22050e6e92812b14b6cd1fe5029ceeb4225 Mon Sep 17 00:00:00 2001
 From: Luigi Santivetti <luigi.santivetti@imgtec.com>
 Date: Mon, 21 Oct 2019 09:21:52 +0100
-Subject: [PATCH 47/67] egl/null: add support for async flip with front buffer
+Subject: [PATCH] egl/null: add support for async flip with front buffer
  rendering
 
 This change enables the application to render into the buffer being
@@ -39,16 +39,17 @@ than 1.
 
 Change-Id: I3930cfcdb30bfb5358166911bcf84a78bdb4548d
 Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
+
 ---
  src/egl/drivers/dri2/egl_dri2.h      |   8 +-
  src/egl/drivers/dri2/platform_null.c | 153 +++++++++++++++++++++------
  2 files changed, 129 insertions(+), 32 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index 0f683d76e18..13b808bff80 100644
+index 32ad720..27beae5 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
-@@ -282,6 +282,7 @@ struct dri2_egl_display
+@@ -283,6 +283,7 @@ struct dri2_egl_display
  #ifdef HAVE_NULL_PLATFORM
     bool                      atomic_enabled;
     bool                      in_formats_enabled;
@@ -56,7 +57,7 @@ index 0f683d76e18..13b808bff80 100644
     struct display_output     output;
  #endif
  
-@@ -442,8 +443,12 @@ struct dri2_egl_surface
+@@ -439,8 +440,12 @@ struct dri2_egl_surface
  #endif
        bool                locked;
        int                 age;
@@ -69,7 +70,7 @@ index 0f683d76e18..13b808bff80 100644
  
  #ifdef HAVE_ANDROID_PLATFORM
     struct ANativeWindow *window;
-@@ -472,12 +477,13 @@ struct dri2_egl_surface
+@@ -469,12 +474,13 @@ struct dri2_egl_surface
  #endif
  
  #ifdef HAVE_NULL_PLATFORM
@@ -85,10 +86,10 @@ index 0f683d76e18..13b808bff80 100644
  #endif
  
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index 48a586b6f38..33cf576f147 100644
+index 2c79199..0ce7e60 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
-@@ -601,6 +601,15 @@ swap_dequeue_data_finish(struct dri2_egl_surface *dri2_surf)
+@@ -602,6 +602,15 @@ swap_dequeue_data_finish(struct dri2_egl_surface *dri2_surf)
     pthread_mutex_unlock(&dri2_surf->mutex);
  }
  
@@ -104,7 +105,7 @@ index 48a586b6f38..33cf576f147 100644
  static void
  flip_handler(int fd, unsigned int sequence, unsigned int tv_sec,
               unsigned int tv_usec, void *flip_data)
-@@ -1118,15 +1127,15 @@ get_front_bo(struct dri2_egl_surface *dri2_surf)
+@@ -1146,15 +1155,15 @@ get_front_bo(struct dri2_egl_surface *dri2_surf)
     if (dri2_surf->base.Type == EGL_WINDOW_BIT)
        use |= __DRI_IMAGE_USE_SCANOUT;
  
@@ -126,7 +127,7 @@ index 48a586b6f38..33cf576f147 100644
           return false;
        }
     }
-@@ -1330,7 +1339,7 @@ dri2_null_create_window_surface(_EGLDisplay *disp, _EGLConfig *config,
+@@ -1362,7 +1371,7 @@ dri2_null_create_window_surface(_EGLDisplay *disp, _EGLConfig *config,
     }
  
     err = display_output_modeset(dri2_dpy->fd, &dri2_dpy->output,
@@ -135,7 +136,7 @@ index 48a586b6f38..33cf576f147 100644
     if (err) {
        _eglError(EGL_BAD_NATIVE_WINDOW, "window set mode");
        goto err_destroy_surface;
-@@ -1360,6 +1369,60 @@ dri2_null_create_pbuffer_surface(_EGLDisplay *disp, _EGLConfig *config,
+@@ -1392,6 +1401,60 @@ dri2_null_create_pbuffer_surface(_EGLDisplay *disp, _EGLConfig *config,
     return create_surface(disp, config, EGL_PBUFFER_BIT, attrib_list);
  }
  
@@ -196,7 +197,7 @@ index 48a586b6f38..33cf576f147 100644
  static EGLBoolean
  dri2_null_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf)
  {
-@@ -1371,14 +1434,7 @@ dri2_null_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf)
+@@ -1403,14 +1466,7 @@ dri2_null_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf)
      * sure we process the flip event.
      */
     if (dri2_surf->swap_queue_processor) {
@@ -212,7 +213,7 @@ index 48a586b6f38..33cf576f147 100644
        pthread_cancel(dri2_surf->swap_queue_processor);
        pthread_join(dri2_surf->swap_queue_processor, NULL);
     }
-@@ -1392,11 +1448,11 @@ dri2_null_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf)
+@@ -1424,11 +1480,11 @@ dri2_null_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf)
     if (dri2_surf->mutex_init)
        pthread_mutex_destroy(&dri2_surf->mutex);
  
@@ -228,7 +229,7 @@ index 48a586b6f38..33cf576f147 100644
  
     for (unsigned i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) {
        if (dri2_surf->color_buffers[i].fb_id)
-@@ -1423,6 +1479,16 @@ dri2_null_swap_buffers(_EGLDisplay *disp, _EGLSurface *draw)
+@@ -1455,6 +1511,16 @@ dri2_null_swap_buffers(_EGLDisplay *disp, _EGLSurface *draw)
     if (dri2_surf->base.Type != EGL_WINDOW_BIT)
        return EGL_TRUE;
  
@@ -245,7 +246,7 @@ index 48a586b6f38..33cf576f147 100644
     for (unsigned i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++)
        if (dri2_surf->color_buffers[i].age > 0)
           dri2_surf->color_buffers[i].age++;
-@@ -1465,6 +1531,22 @@ dri2_null_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
+@@ -1497,6 +1563,22 @@ dri2_null_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
  static EGLBoolean
  dri2_null_swap_interval(_EGLDisplay *dpy, _EGLSurface *draw, EGLint interval)
  {
@@ -268,7 +269,7 @@ index 48a586b6f38..33cf576f147 100644
     _eglLog(_EGL_DEBUG, "DRI2: set swap interval to %d", interval);
     draw->SwapInterval = interval;
     return EGL_TRUE;
-@@ -1502,7 +1584,7 @@ dri2_null_image_get_buffers(__DRIdrawable *driDrawable, unsigned int format,
+@@ -1534,7 +1616,7 @@ dri2_null_image_get_buffers(__DRIdrawable *driDrawable, unsigned int format,
  
     if (buffer_mask & __DRI_IMAGE_BUFFER_FRONT) {
        buffers->image_mask |= __DRI_IMAGE_BUFFER_FRONT;
@@ -277,7 +278,7 @@ index 48a586b6f38..33cf576f147 100644
     }
  
     if (buffer_mask & __DRI_IMAGE_BUFFER_BACK) {
-@@ -1640,18 +1722,27 @@ dri2_null_setup_swap_interval(_EGLDisplay *disp)
+@@ -1672,18 +1754,27 @@ dri2_null_setup_swap_interval(_EGLDisplay *disp)
     dri2_setup_swap_interval(disp, swap_max_interval);
  
     err = drmGetCap(dri2_dpy->fd, DRM_CAP_ASYNC_PAGE_FLIP, &value);
@@ -316,6 +317,3 @@ index 48a586b6f38..33cf576f147 100644
  }
  
  EGLBoolean
--- 
-2.25.1
-

+ 6 - 8
recipes-graphics/mesa/mesa-pvr/0048-gbm-add-pbuffer-support.patch

@@ -1,7 +1,7 @@
-From 4d19dc5cc9be4f3f25ed8befbfcda70c047065d3 Mon Sep 17 00:00:00 2001
+From e98ab37481eb89284b95a84bdb01a43262841cce Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Fri, 21 Aug 2020 12:13:28 +0100
-Subject: [PATCH 48/67] gbm: add pbuffer support
+Subject: [PATCH] gbm: add pbuffer support
 
 The EGL backend GLX provider for XWayland may get the EGL configs it
 uses to generate the GLX ones from GBM. That platform doesn't support
@@ -12,16 +12,17 @@ being rejected.
 Although support for creating pbuffers has been added, this isn't
 required when using the EGL backend GLX provider, as indirect GLX
 isn't supported.
+
 ---
  src/egl/drivers/dri2/egl_dri2.h     |   3 +
  src/egl/drivers/dri2/platform_drm.c | 110 +++++++++++++++++++++++++---
  2 files changed, 103 insertions(+), 10 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index 13b808bff80..141df1b1732 100644
+index 27beae5..f8792ea 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
-@@ -471,6 +471,9 @@ struct dri2_egl_surface
+@@ -468,6 +468,9 @@ struct dri2_egl_surface
     /* surfaceless and device */
     __DRIimage           *front;
     unsigned int         visual;
@@ -32,7 +33,7 @@ index 13b808bff80..141df1b1732 100644
  #ifdef HAVE_WAYLAND_PLATFORM
     void                 *swrast_front;
 diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c
-index 2b329437f88..258e8b6593e 100644
+index 2b32943..258e8b6 100644
 --- a/src/egl/drivers/dri2/platform_drm.c
 +++ b/src/egl/drivers/dri2/platform_drm.c
 @@ -41,6 +41,38 @@
@@ -224,6 +225,3 @@ index 2b329437f88..258e8b6593e 100644
     .destroy_surface = dri2_drm_destroy_surface,
     .create_image = dri2_drm_create_image_khr,
     .swap_buffers = dri2_drm_swap_buffers,
--- 
-2.25.1
-

+ 5 - 8
recipes-graphics/mesa/mesa-pvr/0049-egl-null-expose-EXT_yuv_surface-support.patch

@@ -1,7 +1,7 @@
-From b0ea3289c16d31d840af71876187cf30b2b32e9a Mon Sep 17 00:00:00 2001
+From d19c811118e56dfc7210927151ba19559cc0a17e Mon Sep 17 00:00:00 2001
 From: Luigi Santivetti <luigi.santivetti@imgtec.com>
 Date: Thu, 2 Sep 2021 22:47:54 +0100
-Subject: [PATCH 49/68] egl/null: expose EXT_yuv_surface support
+Subject: [PATCH] egl/null: expose EXT_yuv_surface support
 
 ---
  include/GL/internal/dri_interface.h  |   2 +
@@ -10,7 +10,7 @@ Subject: [PATCH 49/68] egl/null: expose EXT_yuv_surface support
  3 files changed, 173 insertions(+), 14 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 9c7bcac4cae..888a117d56e 100644
+index 9c7bcac..888a117 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1411,6 +1411,8 @@ struct __DRIdri2ExtensionRec {
@@ -23,7 +23,7 @@ index 9c7bcac4cae..888a117d56e 100644
  #define __DRI_IMAGE_USE_SHARE		0x0001
  #define __DRI_IMAGE_USE_SCANOUT		0x0002
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index f2c481c256b..d1e576af5ce 100644
+index 0ce7e60..8efac19 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
 @@ -79,6 +79,35 @@ uint32_t get_back_buffer_id(struct dri2_egl_surface *dri2_surf)
@@ -317,7 +317,7 @@ index f2c481c256b..d1e576af5ce 100644
           count++;
     }
 diff --git a/src/mesa/drivers/dri/pvr/pvrutil.c b/src/mesa/drivers/dri/pvr/pvrutil.c
-index 945e18cf220..d107a5dafad 100644
+index 945e18c..d107a5d 100644
 --- a/src/mesa/drivers/dri/pvr/pvrutil.c
 +++ b/src/mesa/drivers/dri/pvr/pvrutil.c
 @@ -174,6 +174,10 @@ PVRDRIFormatToFourCC(int dri_format)
@@ -342,6 +342,3 @@ index 945e18cf220..d107a5dafad 100644
     default:
        __driUtilMessage("%s: Unknown format: %d", __func__, iFourCC);
        break;
--- 
-2.25.1
-

+ 12 - 14
recipes-graphics/mesa/mesa-pvr/0050-dri-preserve-the-original-FD-for-driver-use.patch

@@ -1,7 +1,7 @@
-From db015d5fd0ded075e759677c047c581151bb1b52 Mon Sep 17 00:00:00 2001
+From 4163f34fbdbc0516085ba562e0013487b408c7ab Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Tue, 9 Mar 2021 17:15:30 +0000
-Subject: [PATCH 50/67] dri: preserve the original FD for driver use.
+Subject: [PATCH] dri: preserve the original FD for driver use.
 
 If an application uses a different GPU from the default, allow the
 file descriptor (FD) for that original GPU/display to be preserved
@@ -22,6 +22,7 @@ driver, and the platform is responsible for closing it.
 
 The feature is currently supported by the Wayland, and DRI3 based
 X11 EGL and GLX platforms.
+
 ---
  include/GL/internal/dri_interface.h      | 26 +++++++++++++++++--
  src/egl/drivers/dri2/egl_dri2.c          | 10 +++++++
@@ -34,7 +35,7 @@ X11 EGL and GLX platforms.
  8 files changed, 125 insertions(+), 7 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 888a117d56e..2fb440feb50 100644
+index 888a117..2fb440f 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1146,7 +1146,7 @@ struct __DRIbufferRec {
@@ -92,7 +93,7 @@ index 888a117d56e..2fb440feb50 100644
  
  /**
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index c4a49cae592..1df53ef011c 100644
+index c4a49ca..1df53ef 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -1367,6 +1367,16 @@ dri2_display_destroy(_EGLDisplay *disp)
@@ -113,10 +114,10 @@ index c4a49cae592..1df53ef011c 100644
        close(dri2_dpy->fd);
  
 diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
-index 141df1b1732..af03caee623 100644
+index f8792ea..22e27b4 100644
 --- a/src/egl/drivers/dri2/egl_dri2.h
 +++ b/src/egl/drivers/dri2/egl_dri2.h
-@@ -230,6 +230,7 @@ struct dri2_egl_display
+@@ -231,6 +231,7 @@ struct dri2_egl_display
     const __DRIconfigOptionsExtension *configOptions;
     const __DRImutableRenderBufferDriverExtension *mutable_render_buffer;
     int                       fd;
@@ -125,7 +126,7 @@ index 141df1b1732..af03caee623 100644
     /* dri2_initialize/dri2_terminate increment/decrement this count, so does
      * dri2_make_current (tracks if there are active contexts/surfaces). */
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index 06272d4081e..b393e058770 100644
+index 06272d4..b393e05 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -44,6 +44,7 @@
@@ -216,7 +217,7 @@ index 06272d4081e..b393e058770 100644
     if (disp->PlatformDisplay == NULL) {
        dri2_dpy->wl_dpy = wl_display_connect(NULL);
 diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
-index 5ffdf132184..5cf3ce2a369 100644
+index 5ffdf13..5cf3ce2 100644
 --- a/src/egl/drivers/dri2/platform_x11.c
 +++ b/src/egl/drivers/dri2/platform_x11.c
 @@ -1277,6 +1277,7 @@ dri2_initialize_x11_swrast(_EGLDisplay *disp)
@@ -244,7 +245,7 @@ index 5ffdf132184..5cf3ce2a369 100644
        goto cleanup;
  
 diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c
-index e117105fcb6..0babf9f867e 100644
+index e117105..0babf9f 100644
 --- a/src/egl/drivers/dri2/platform_x11_dri3.c
 +++ b/src/egl/drivers/dri2/platform_x11_dri3.c
 @@ -32,6 +32,7 @@
@@ -313,7 +314,7 @@ index e117105fcb6..0babf9f867e 100644
     }
  
 diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
-index db1b079663f..1ed6b60ffe8 100644
+index db1b079..1ed6b60 100644
 --- a/src/glx/dri3_glx.c
 +++ b/src/glx/dri3_glx.c
 @@ -77,6 +77,7 @@
@@ -417,7 +418,7 @@ index db1b079663f..1ed6b60ffe8 100644
        close(psc->fd);
     if (psc->fd_display_gpu >= 0)
 diff --git a/src/glx/dri3_priv.h b/src/glx/dri3_priv.h
-index c0e833c16ef..b3dccf28c06 100644
+index c0e833c..b3dccf2 100644
 --- a/src/glx/dri3_priv.h
 +++ b/src/glx/dri3_priv.h
 @@ -107,6 +107,7 @@ struct dri3_screen {
@@ -428,6 +429,3 @@ index c0e833c16ef..b3dccf28c06 100644
     bool is_different_gpu;
  
     /* fd for display GPU in case of prime */
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0051-egl-wayland-a-linear-buffer-is-not-needed-with-DRM-f.patch

@@ -1,18 +1,19 @@
-From 627ec429d684c57bdee45a21354009810fc03186 Mon Sep 17 00:00:00 2001
+From 1777578c96aba9bac85508d2fc6d6b38407cf9b9 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Wed, 28 Apr 2021 10:57:15 +0100
-Subject: [PATCH 51/67] egl/wayland: a linear buffer is not needed with DRM
- format modifiers
+Subject: [PATCH] egl/wayland: a linear buffer is not needed with DRM format
+ modifiers
 
 If the compositor supports DRM format modifiers, there is no
 need for an additional linear buffer, as the client can allocate
 buffers with attributes known to the compositor.
+
 ---
  src/egl/drivers/dri2/platform_wayland.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
-index b393e058770..60683fa6c1a 100644
+index b393e05..60683fa 100644
 --- a/src/egl/drivers/dri2/platform_wayland.c
 +++ b/src/egl/drivers/dri2/platform_wayland.c
 @@ -695,7 +695,7 @@ get_back_bo(struct dri2_egl_surface *dri2_surf)
@@ -51,6 +52,3 @@ index b393e058770..60683fa6c1a 100644
        _EGLContext *ctx = _eglGetCurrentContext();
        struct dri2_egl_context *dri2_ctx = dri2_egl_context(ctx);
        dri2_dpy->image->blitImage(dri2_ctx->dri_context,
--- 
-2.25.1
-

+ 7 - 10
recipes-graphics/mesa/mesa-pvr/0052-dri3-a-linear-buffer-is-not-needed-with-DRM-format-m.patch

@@ -1,12 +1,12 @@
-From e57b9a1b34a733f88af51b1395eebe647006939d Mon Sep 17 00:00:00 2001
+From a10f534a4b8cc1c07532628b35874cf54a1bfd89 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Wed, 28 Apr 2021 16:33:42 +0100
-Subject: [PATCH 52/67] dri3: a linear buffer is not needed with DRM format
- modifiers
+Subject: [PATCH] dri3: a linear buffer is not needed with DRM format modifiers
 
 If the X Server supports DRM format modifiers, there is no need
 for an additional linear buffer, as the client can allocate buffers
 with attributes known to the Server.
+
 ---
  src/egl/drivers/dri2/platform_x11_dri3.c |   7 +-
  src/glx/dri3_glx.c                       | 137 +++++++++++++++--------
@@ -15,7 +15,7 @@ with attributes known to the Server.
  4 files changed, 113 insertions(+), 50 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c
-index 0babf9f867e..94205a495a6 100644
+index 0babf9f..94205a4 100644
 --- a/src/egl/drivers/dri2/platform_x11_dri3.c
 +++ b/src/egl/drivers/dri2/platform_x11_dri3.c
 @@ -143,6 +143,7 @@ dri3_create_surface(_EGLDisplay *disp, EGLint type, _EGLConfig *conf,
@@ -47,7 +47,7 @@ index 0babf9f867e..94205a495a6 100644
                                   dri_config,
                                   &dri2_dpy->loader_dri3_ext,
 diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
-index 1ed6b60ffe8..025ad0128ec 100644
+index 1ed6b60..025ad01 100644
 --- a/src/glx/dri3_glx.c
 +++ b/src/glx/dri3_glx.c
 @@ -354,6 +354,21 @@ dri3_destroy_drawable(__GLXDRIdrawable *base)
@@ -263,7 +263,7 @@ index 1ed6b60ffe8..025ad0128ec 100644
     if (!psc->image || psc->image->base.version < 7 || !psc->image->createImageFromFds) {
        ErrorMessageF("Version 7 or imageFromFds image extension not found\n");
 diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
-index ff6d1ffc660..5c0379ab5de 100644
+index ff6d1ff..5c0379a 100644
 --- a/src/loader/loader_dri3_helper.c
 +++ b/src/loader/loader_dri3_helper.c
 @@ -2288,3 +2288,18 @@ dri3_find_back_alloc(struct loader_dri3_drawable *draw)
@@ -286,7 +286,7 @@ index ff6d1ffc660..5c0379ab5de 100644
 +#endif
 +}
 diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h
-index 028e25dc070..5790f5444f5 100644
+index 028e25d..5790f54 100644
 --- a/src/loader/loader_dri3_helper.h
 +++ b/src/loader/loader_dri3_helper.h
 @@ -287,4 +287,8 @@ loader_dri3_swapbuffer_barrier(struct loader_dri3_drawable *draw);
@@ -298,6 +298,3 @@ index 028e25dc070..5790f5444f5 100644
 +loader_dri3_has_modifiers(bool multiplanes_available,
 +                          const __DRIimageExtension *image);
  #endif
--- 
-2.25.1
-

+ 8 - 10
recipes-graphics/mesa/mesa-pvr/0053-egl-drm-add-support-for-DRI_PRIME-GPU-selection.patch

@@ -1,7 +1,7 @@
-From 8de0535741ce8d126da4d9b0b0eb8c46dd4810b5 Mon Sep 17 00:00:00 2001
+From f92304242d7656cf296e978eb9e4a5fc09050b75 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 20 May 2021 14:43:29 +0100
-Subject: [PATCH 53/67] egl/drm: add support for DRI_PRIME GPU selection
+Subject: [PATCH] egl/drm: add support for DRI_PRIME GPU selection
 
 Add support for selecting the GPU to be used for rendering using
 the DRI_PRIME environment variable. If a different GPU is selected,
@@ -17,6 +17,7 @@ been selected. It may be that the driver can still support
 PRIME; for example, by making use of the original (default)
 file descriptor. The driver can indicate it supports PRIME
 via the getCapabilities function in the DRI Image extension.
+
 ---
  include/GL/internal/dri_interface.h |  2 ++
  src/egl/drivers/dri2/egl_dri2.c     | 10 ++++++++
@@ -26,7 +27,7 @@ via the getCapabilities function in the DRI Image extension.
  5 files changed, 66 insertions(+), 11 deletions(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 2fb440feb50..080d191b0a3 100644
+index 2fb440f..080d191 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1548,6 +1548,8 @@ enum __DRIChromaSiting {
@@ -39,7 +40,7 @@ index 2fb440feb50..080d191b0a3 100644
  
  /**
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index 1df53ef011c..ec4ac602a84 100644
+index 1df53ef..ec4ac60 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -1368,6 +1368,7 @@ dri2_display_destroy(_EGLDisplay *disp)
@@ -67,7 +68,7 @@ index 1df53ef011c..ec4ac602a84 100644
     dri2_dpy->wl_server_drm =
             wayland_drm_init(wl_dpy, device_name,
 diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c
-index 258e8b6593e..f160ad1175e 100644
+index 258e8b6..f160ad1 100644
 --- a/src/egl/drivers/dri2/platform_drm.c
 +++ b/src/egl/drivers/dri2/platform_drm.c
 @@ -595,7 +595,7 @@ dri2_drm_authenticate(_EGLDisplay *disp, uint32_t id)
@@ -131,7 +132,7 @@ index 258e8b6593e..f160ad1175e 100644
     dri2_set_WL_bind_wayland_display(disp);
  
 diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
-index 5acb15b516f..c1586f42e46 100644
+index 5acb15b..c1586f4 100644
 --- a/src/gbm/backends/dri/gbm_dri.c
 +++ b/src/gbm/backends/dri/gbm_dri.c
 @@ -51,6 +51,7 @@
@@ -239,7 +240,7 @@ index 5acb15b516f..c1586f42e46 100644
     dri->base.v0.backend_version = gbm_backend_version;
     dri->base.v0.bo_create = gbm_dri_bo_create;
 diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h
-index 9e77ba5887c..e33a96edb0b 100644
+index 9e77ba5..e33a96e 100644
 --- a/src/gbm/backends/dri/gbm_driint.h
 +++ b/src/gbm/backends/dri/gbm_driint.h
 @@ -61,6 +61,8 @@ struct gbm_dri_visual {
@@ -262,6 +263,3 @@ index 9e77ba5887c..e33a96edb0b 100644
 +}
 +
  #endif
--- 
-2.25.1
-

+ 24 - 26
recipes-graphics/mesa/mesa-pvr/0054-egl-null-add-support-for-DRI_PRIME-GPU-selection.patch

@@ -1,7 +1,7 @@
-From f1f625dbcb4e0cc062369729b1da3d7fc65969e8 Mon Sep 17 00:00:00 2001
+From e92a09b72b44a0969983635803022f7dc1a50924 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 20 May 2021 20:16:18 +0100
-Subject: [PATCH 54/67] egl/null: add support for DRI_PRIME GPU selection
+Subject: [PATCH] egl/null: add support for DRI_PRIME GPU selection
 
 Add support for selecting the GPU to be used for rendering using
 the DRI_PRIME environment variable. If a different GPU is selected,
@@ -15,13 +15,14 @@ This is to prevent failure on PC based test systems, that often
 include display hardware that is incompatible with the driver.
 This code would not be needed for systems that don't use the PVR
 driver, or on production systems that use the PVR driver.
+
 ---
  src/egl/drivers/dri2/egl_dri2.c      |   1 +
  src/egl/drivers/dri2/platform_null.c | 133 +++++++++++++++++++--------
  2 files changed, 98 insertions(+), 36 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index ec4ac602a84..56b5175db6e 100644
+index ec4ac60..56b5175 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -1369,6 +1369,7 @@ dri2_display_destroy(_EGLDisplay *disp)
@@ -33,10 +34,10 @@ index ec4ac602a84..56b5175db6e 100644
     case _EGL_PLATFORM_X11:
        if (dri2_dpy->fd_dpy >= 0 && dri2_dpy->fd_dpy != dri2_dpy->fd)
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index db6f1147670..af77ea4dd89 100644
+index 8efac19..0d81151 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
-@@ -44,6 +44,7 @@
+@@ -45,6 +45,7 @@
  
  #include "egl_dri2.h"
  #include "loader.h"
@@ -44,7 +45,7 @@ index db6f1147670..af77ea4dd89 100644
  
  #define NULL_CARD_MINOR_MAX 63U
  
-@@ -953,7 +954,7 @@ swap_idle_get_target_frame(struct dri2_egl_surface *dri2_surf,
+@@ -975,7 +976,7 @@ swap_idle_get_target_frame(struct dri2_egl_surface *dri2_surf,
      * current vblank by the number of intervals set at the time swapBuffer
      * is called. For intervals of 1 or 0, we don't need a target frame.
      */
@@ -53,7 +54,7 @@ index db6f1147670..af77ea4dd89 100644
     if (err)
        return err;
  
-@@ -1003,7 +1004,7 @@ swap_vblank_state_transition(struct dri2_egl_surface *dri2_surf,
+@@ -1025,7 +1026,7 @@ swap_vblank_state_transition(struct dri2_egl_surface *dri2_surf,
     uint32_t flags = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
     int err;
  
@@ -62,7 +63,7 @@ index db6f1147670..af77ea4dd89 100644
                                  flags, dri2_surf);
     if (err) {
        dri2_surf->swap_state = SWAP_ERROR;
-@@ -1029,7 +1030,7 @@ swap_flip_state_transition(struct dri2_egl_surface *dri2_surf)
+@@ -1051,7 +1052,7 @@ swap_flip_state_transition(struct dri2_egl_surface *dri2_surf)
        flags |= DRM_MODE_PAGE_FLIP_ASYNC;
     }
  
@@ -71,7 +72,7 @@ index db6f1147670..af77ea4dd89 100644
                               dri2_surf->swap_data->fb_id, flags, dri2_surf);
     if (err) {
        dri2_surf->swap_state = SWAP_ERROR;
-@@ -1049,7 +1050,7 @@ swap_poll_state_transition(struct dri2_egl_surface *dri2_surf)
+@@ -1071,7 +1072,7 @@ swap_poll_state_transition(struct dri2_egl_surface *dri2_surf)
     int err;
  
     /* dri2_surf->swap_state is being set inside the handler */
@@ -80,7 +81,7 @@ index db6f1147670..af77ea4dd89 100644
     if (err) {
        dri2_surf->swap_state = SWAP_ERROR;
        return err;
-@@ -1201,7 +1202,7 @@ add_fb_for_dri_image(struct dri2_egl_display *dri2_dpy, __DRIimage *image,
+@@ -1226,7 +1227,7 @@ add_fb_for_dri_image(struct dri2_egl_display *dri2_dpy, __DRIimage *image,
        handles[i] = (uint32_t) handle;
     }
  
@@ -89,7 +90,7 @@ index db6f1147670..af77ea4dd89 100644
                                        dri2_null_formats[format_idx].drm_format,
                                        handles, pitches, offsets, modifiers,
                                        fb_id_out, flags);
-@@ -1459,7 +1460,7 @@ dri2_null_create_window_surface(_EGLDisplay *disp, _EGLConfig *config,
+@@ -1494,7 +1495,7 @@ dri2_null_create_window_surface(_EGLDisplay *disp, _EGLConfig *config,
        goto err_destroy_surface;
     }
  
@@ -98,7 +99,7 @@ index db6f1147670..af77ea4dd89 100644
                                  dri2_surf->front_buffer.fb_id);
     if (err) {
        _eglError(EGL_BAD_NATIVE_WINDOW, "window set mode");
-@@ -1573,11 +1574,11 @@ dri2_null_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf)
+@@ -1608,11 +1609,11 @@ dri2_null_destroy_surface(_EGLDisplay *disp, _EGLSurface *surf)
        dri2_dpy->image->destroyImage(dri2_surf->front_buffer.dri_image);
  
     if (dri2_surf->front_buffer.fb_id)
@@ -112,7 +113,7 @@ index db6f1147670..af77ea4dd89 100644
        if (dri2_surf->color_buffers[i].dri_image)
           dri2_dpy->image->destroyImage(dri2_surf->color_buffers[i].dri_image);
     }
-@@ -1734,12 +1735,22 @@ dri2_null_flush_front_buffer(__DRIdrawable * driDrawable, void *loaderPrivate)
+@@ -1769,12 +1770,22 @@ dri2_null_flush_front_buffer(__DRIdrawable * driDrawable, void *loaderPrivate)
     (void) loaderPrivate;
  }
  
@@ -136,7 +137,7 @@ index db6f1147670..af77ea4dd89 100644
  };
  
  static const __DRIextension *image_loader_extensions[] = {
-@@ -1768,12 +1779,74 @@ dri2_null_device_is_kms(int fd)
+@@ -1803,12 +1814,74 @@ dri2_null_device_is_kms(int fd)
     return is_kms;
  }
  
@@ -211,7 +212,7 @@ index db6f1147670..af77ea4dd89 100644
  
     for (unsigned i = 0; i <= NULL_CARD_MINOR_MAX; i++) {
        char *card_path;
-@@ -1781,32 +1854,20 @@ dri2_null_probe_device(_EGLDisplay *disp)
+@@ -1816,32 +1889,20 @@ dri2_null_probe_device(_EGLDisplay *disp)
        if (asprintf(&card_path, DRM_DEV_NAME, DRM_DIR_NAME, i) < 0)
           continue;
  
@@ -254,7 +255,7 @@ index db6f1147670..af77ea4dd89 100644
        dri2_dpy->fd = -1;
     }
  
-@@ -1867,7 +1928,7 @@ dri2_null_setup_swap_interval(_EGLDisplay *disp)
+@@ -1902,7 +1963,7 @@ dri2_null_setup_swap_interval(_EGLDisplay *disp)
  
     dri2_setup_swap_interval(disp, swap_max_interval);
  
@@ -263,7 +264,7 @@ index db6f1147670..af77ea4dd89 100644
     if (err || value == 0) {
  
        /* DRM/KMS does not support async page flip. In order to support
-@@ -1914,7 +1975,7 @@ dri2_initialize_null(_EGLDisplay *disp)
+@@ -1950,7 +2011,7 @@ dri2_initialize_null(_EGLDisplay *disp)
      * modesetting if not. If this succeeds then universal planes will also have
      * been enabled.
      */
@@ -272,7 +273,7 @@ index db6f1147670..af77ea4dd89 100644
     dri2_dpy->atomic_enabled = !err;
  
     if (!dri2_dpy->atomic_enabled) {
-@@ -1922,7 +1983,7 @@ dri2_initialize_null(_EGLDisplay *disp)
+@@ -1958,7 +2019,7 @@ dri2_initialize_null(_EGLDisplay *disp)
         * Enable universal planes so that we can get the pixel formats for the
         * primary plane
         */
@@ -281,17 +282,17 @@ index db6f1147670..af77ea4dd89 100644
        if (err) {
           _eglError(EGL_NOT_INITIALIZED, "failed to enable universal planes");
           goto cleanup;
-@@ -1955,7 +2016,7 @@ dri2_initialize_null(_EGLDisplay *disp)
-    prefer_in_formats = dri2_dpy->image->base.version >= 14 &&
-       dri2_dpy->image->createImageWithModifiers;
+@@ -1994,7 +2055,7 @@ dri2_initialize_null(_EGLDisplay *disp)
+          dri2_dpy->image->createImageWithModifiers;
+    }
  
 -   if (!display_output_init(dri2_dpy->fd, &dri2_dpy->output,
 +   if (!display_output_init(dri2_dpy->fd_dpy, &dri2_dpy->output,
                              dri2_dpy->atomic_enabled,
                              prefer_in_formats,
                              &dri2_dpy->in_formats_enabled)) {
-@@ -1990,7 +2051,7 @@ dri2_teardown_null(struct dri2_egl_display *dri2_dpy)
-    drmModeFreeFormats(dri2_dpy->output.in_formats);
+@@ -2028,7 +2089,7 @@ dri2_teardown_null(struct dri2_egl_display *dri2_dpy)
+    drmModeAtomicFree(dri2_dpy->output.atomic_state);
  
     if (dri2_dpy->output.mode_blob_id)
 -      drmModeDestroyPropertyBlob(dri2_dpy->fd, dri2_dpy->output.mode_blob_id);
@@ -299,6 +300,3 @@ index db6f1147670..af77ea4dd89 100644
  
     if (dri2_dpy->output.plane_prop_res) {
        for (unsigned i = 0; dri2_dpy->output.plane_prop_res[i]; i++)
--- 
-2.25.1
-

+ 7 - 9
recipes-graphics/mesa/mesa-pvr/0055-egl-null-introduce-NULL_DRM_DISPLAY.patch

@@ -1,7 +1,7 @@
-From 693fff6d87abfcae887afde7f80f402b7ff5c0ab Mon Sep 17 00:00:00 2001
+From 58e030c23402e2ea7a5e7627daabe1e68f1d8130 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 28 Jun 2021 16:36:15 +0100
-Subject: [PATCH 55/67] egl/null: introduce NULL_DRM_DISPLAY
+Subject: [PATCH] egl/null: introduce NULL_DRM_DISPLAY
 
 Introduce the NULL_DRM_DISPLAY environment variable, which allows
 a particular DRM display to be selected, rather than the first
@@ -11,15 +11,16 @@ To select a particular display, NULL_DRM_DISPLAY should be set to
 the card number (i.e. minor number) of the DRM device representing
 the display. For example, NULL_DRM_DISPLAY=2 will select
 /dev/dri/card2.
+
 ---
  src/egl/drivers/dri2/platform_null.c | 65 ++++++++++++++++++++--------
  1 file changed, 46 insertions(+), 19 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index af77ea4dd89..529cc7a2a2f 100644
+index 0d81151..c9409c0 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
-@@ -1784,6 +1784,8 @@ dri2_null_try_device(_EGLDisplay *disp)
+@@ -1819,6 +1819,8 @@ dri2_null_try_device(_EGLDisplay *disp)
  {
     struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
  
@@ -28,7 +29,7 @@ index af77ea4dd89..529cc7a2a2f 100644
     if (!dri2_null_device_is_kms(dri2_dpy->fd_dpy))
        return false;
  
-@@ -1841,34 +1843,56 @@ dri2_null_try_device(_EGLDisplay *disp)
+@@ -1876,34 +1878,56 @@ dri2_null_try_device(_EGLDisplay *disp)
  }
  
  static bool
@@ -103,7 +104,7 @@ index af77ea4dd89..529cc7a2a2f 100644
     }
  
     return false;
-@@ -1965,7 +1989,10 @@ dri2_initialize_null(_EGLDisplay *disp)
+@@ -2001,7 +2025,10 @@ dri2_initialize_null(_EGLDisplay *disp)
  
     disp->DriverData = (void *) dri2_dpy;
  
@@ -115,6 +116,3 @@ index af77ea4dd89..529cc7a2a2f 100644
        _eglError(EGL_NOT_INITIALIZED, "failed to load driver");
        goto cleanup;
     }
--- 
-2.25.1
-

+ 4 - 7
recipes-graphics/mesa/mesa-pvr/0056-vulkan-wsi-check-the-DRI3-and-Present-XCB-reply-poin.patch

@@ -1,17 +1,17 @@
-From a422756b7d73b48d3d10d15066a61e9332370719 Mon Sep 17 00:00:00 2001
+From eae8f032db504187079fe3ae3fa56990593cd857 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Mon, 21 Jun 2021 17:05:17 +0100
-Subject: [PATCH 56/67] vulkan/wsi: check the DRI3 and Present XCB reply
- pointers
+Subject: [PATCH] vulkan/wsi: check the DRI3 and Present XCB reply pointers
 
 Check that the DRI3 and Present version replies are not NULL
 before accessing the version fields.
+
 ---
  src/vulkan/wsi/wsi_common_x11.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
-index 9dce78eddeb..9eb624df640 100644
+index 9dce78e..9eb624d 100644
 --- a/src/vulkan/wsi/wsi_common_x11.c
 +++ b/src/vulkan/wsi/wsi_common_x11.c
 @@ -216,7 +216,7 @@ wsi_x11_connection_create(struct wsi_device *wsi_dev,
@@ -32,6 +32,3 @@ index 9dce78eddeb..9eb624df640 100644
          (ver_reply->major_version > 1 || ver_reply->minor_version >= 2);
        free(ver_reply);
     }
--- 
-2.25.1
-

+ 8 - 10
recipes-graphics/mesa/mesa-pvr/0057-vulkan-wsi-Allow-host-visible-memory-to-be-requested.patch

@@ -1,13 +1,14 @@
-From b900d4998b95a8bdfb01600f81635ff76810cfe6 Mon Sep 17 00:00:00 2001
+From 0bfb1babce715e05151d35dec1daa0afe952b9c0 Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Tue, 16 Feb 2021 20:17:32 +0000
-Subject: [PATCH 57/67] vulkan/wsi: Allow host visible memory to be requested
+Subject: [PATCH] vulkan/wsi: Allow host visible memory to be requested
 
 Allow host visible memory to be explicitly requested when allocating
 native images.
 
 For a software driver on X11, we need to be able to map the memory on
 the host, in order to present the contents to the X Server.
+
 ---
  src/vulkan/wsi/wsi_common_display.c |  2 +-
  src/vulkan/wsi/wsi_common_drm.c     | 17 +++++++++++++----
@@ -17,7 +18,7 @@ the host, in order to present the contents to the X Server.
  5 files changed, 18 insertions(+), 6 deletions(-)
 
 diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
-index aa07cada107..71a84e54079 100644
+index aa07cad..71a84e5 100644
 --- a/src/vulkan/wsi/wsi_common_display.c
 +++ b/src/vulkan/wsi/wsi_common_display.c
 @@ -1031,7 +1031,7 @@ wsi_display_image_init(VkDevice device_h,
@@ -30,7 +31,7 @@ index aa07cada107..71a84e54079 100644
     if (result != VK_SUCCESS)
        return result;
 diff --git a/src/vulkan/wsi/wsi_common_drm.c b/src/vulkan/wsi/wsi_common_drm.c
-index 70d934aef13..aabb761908c 100644
+index 70d934a..aabb761 100644
 --- a/src/vulkan/wsi/wsi_common_drm.c
 +++ b/src/vulkan/wsi/wsi_common_drm.c
 @@ -66,6 +66,7 @@ wsi_device_matches_drm_fd(const struct wsi_device *wsi, int drm_fd)
@@ -101,7 +102,7 @@ index 70d934aef13..aabb761908c 100644
     result = wsi->AllocateMemory(chain->device, &memory_info,
                                  &chain->alloc, &image->memory);
 diff --git a/src/vulkan/wsi/wsi_common_private.h b/src/vulkan/wsi/wsi_common_private.h
-index 1fe8211f9cb..5ad087b32e0 100644
+index 1fe8211..5ad087b 100644
 --- a/src/vulkan/wsi/wsi_common_private.h
 +++ b/src/vulkan/wsi/wsi_common_private.h
 @@ -94,6 +94,7 @@ wsi_create_native_image(const struct wsi_swapchain *chain,
@@ -113,7 +114,7 @@ index 1fe8211f9cb..5ad087b32e0 100644
  
  VkResult
 diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
-index 40f5338314f..983833e880b 100644
+index 40f5338..983833e 100644
 --- a/src/vulkan/wsi/wsi_common_wayland.c
 +++ b/src/vulkan/wsi/wsi_common_wayland.c
 @@ -1074,7 +1074,8 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain,
@@ -127,7 +128,7 @@ index 40f5338314f..983833e880b 100644
     if (result != VK_SUCCESS)
        return result;
 diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
-index 9eb624df640..eb639d6c265 100644
+index 9eb624d..eb639d6 100644
 --- a/src/vulkan/wsi/wsi_common_x11.c
 +++ b/src/vulkan/wsi/wsi_common_x11.c
 @@ -1315,6 +1315,7 @@ x11_image_init(VkDevice device_h, struct x11_swapchain *chain,
@@ -138,6 +139,3 @@ index 9eb624df640..eb639d6c265 100644
                                         &image->base);
     }
     if (result < 0)
--- 
-2.25.1
-

+ 9 - 11
recipes-graphics/mesa/mesa-pvr/0058-vulkan-wsi-make-the-display-FD-available.patch

@@ -1,10 +1,11 @@
-From afcfb076e89365ff1f33c658a6a615d2108d97f5 Mon Sep 17 00:00:00 2001
+From d370e0dc9a60f70abe7d150837a2f816be2f1dee Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 17 Jun 2021 17:17:07 +0100
-Subject: [PATCH 58/67] vulkan/wsi: make the display FD available
+Subject: [PATCH] vulkan/wsi: make the display FD available
 
 Pass the display FD to the Vulkan image create and memory
 allocation functions when allocating swapchain images.
+
 ---
  src/vulkan/wsi/wsi_common.h         |  14 +++
  src/vulkan/wsi/wsi_common_display.c |   2 +-
@@ -15,7 +16,7 @@ allocation functions when allocating swapchain images.
  6 files changed, 169 insertions(+), 40 deletions(-)
 
 diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h
-index d5367db3a94..c2563c677e6 100644
+index d5367db..c2563c6 100644
 --- a/src/vulkan/wsi/wsi_common.h
 +++ b/src/vulkan/wsi/wsi_common.h
 @@ -37,6 +37,8 @@
@@ -47,7 +48,7 @@ index d5367db3a94..c2563c677e6 100644
     VkDevice                     device;
     const struct wsi_device      *wsi_device;
 diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
-index 71a84e54079..f135b4e38de 100644
+index 71a84e5..f135b4e 100644
 --- a/src/vulkan/wsi/wsi_common_display.c
 +++ b/src/vulkan/wsi/wsi_common_display.c
 @@ -1032,7 +1032,7 @@ wsi_display_image_init(VkDevice device_h,
@@ -60,7 +61,7 @@ index 71a84e54079..f135b4e38de 100644
        return result;
  
 diff --git a/src/vulkan/wsi/wsi_common_drm.c b/src/vulkan/wsi/wsi_common_drm.c
-index aabb761908c..6201891ca80 100644
+index aabb761..6201891 100644
 --- a/src/vulkan/wsi/wsi_common_drm.c
 +++ b/src/vulkan/wsi/wsi_common_drm.c
 @@ -113,6 +113,7 @@ wsi_create_native_image(const struct wsi_swapchain *chain,
@@ -125,7 +126,7 @@ index aabb761908c..6201891ca80 100644
     };
     const VkMemoryDedicatedAllocateInfo prime_memory_dedicated_info = {
 diff --git a/src/vulkan/wsi/wsi_common_private.h b/src/vulkan/wsi/wsi_common_private.h
-index 5ad087b32e0..e46328156dc 100644
+index 5ad087b..e463281 100644
 --- a/src/vulkan/wsi/wsi_common_private.h
 +++ b/src/vulkan/wsi/wsi_common_private.h
 @@ -95,12 +95,14 @@ wsi_create_native_image(const struct wsi_swapchain *chain,
@@ -144,7 +145,7 @@ index 5ad087b32e0..e46328156dc 100644
  
  void
 diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
-index 983833e880b..1109d3f07b6 100644
+index 983833e..1109d3f 100644
 --- a/src/vulkan/wsi/wsi_common_wayland.c
 +++ b/src/vulkan/wsi/wsi_common_wayland.c
 @@ -32,6 +32,8 @@
@@ -344,7 +345,7 @@ index 983833e880b..1109d3f07b6 100644
     if (result != VK_SUCCESS)
        return result;
 diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
-index eb639d6c265..ba64e260932 100644
+index eb639d6..ba64e26 100644
 --- a/src/vulkan/wsi/wsi_common_x11.c
 +++ b/src/vulkan/wsi/wsi_common_x11.c
 @@ -1303,7 +1303,8 @@ x11_image_init(VkDevice device_h, struct x11_swapchain *chain,
@@ -414,6 +415,3 @@ index eb639d6c265..ba64e260932 100644
     }
  
     if ((chain->base.present_mode == VK_PRESENT_MODE_FIFO_KHR ||
--- 
-2.25.1
-

+ 14 - 16
recipes-graphics/mesa/mesa-pvr/0059-pvr-wsi-add-PowerVR-Vulkan-WSI-library.patch

@@ -1,7 +1,7 @@
-From 650cbfe1007a3f9dd4ef8a3bbe829bbfed4ab1cc Mon Sep 17 00:00:00 2001
+From 65c47424e2dd558d2c79ef5f1b9008fe38b3b0bf Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 18 Mar 2021 13:44:57 +0000
-Subject: [PATCH 59/67] pvr/wsi: add PowerVR Vulkan WSI library
+Subject: [PATCH] pvr/wsi: add PowerVR Vulkan WSI library
 
 PowerVR Vulkan will load the WSI library, libpvr_mesa_wsi.so,
 and lookup the symbol pvr_mesa_wsi_sym_addr, which is a used to
@@ -14,6 +14,7 @@ by the WSI library to lookup symbols in Vulkan.
 The interface between PVR Vulkan and the WSI library is defined in
 pvr_mesa_wsi_interface.h. Most of the functions defined on the WSI
 side are wrappers around Mesa WSI functions.
+
 ---
  meson.build                          |   1 +
  meson_options.txt                    |   2 +-
@@ -37,7 +38,7 @@ side are wrappers around Mesa WSI functions.
  create mode 100644 src/pvr/wsi/pvr_wsi_x11.c
 
 diff --git a/meson.build b/meson.build
-index 8db1699729a..9341e5500fc 100644
+index c0b6264..3f6ddb6 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -296,6 +296,7 @@ with_swrast_vk = _vulkan_drivers.contains('swrast')
@@ -49,7 +50,7 @@ index 8db1699729a..9341e5500fc 100644
  
  with_any_broadcom = with_gallium_vc4 or with_gallium_v3d or with_broadcom_vk
 diff --git a/meson_options.txt b/meson_options.txt
-index d36e714ea4c..e0c25a5b15b 100644
+index d36e714..e0c25a5 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
 @@ -194,7 +194,7 @@ option(
@@ -62,7 +63,7 @@ index d36e714ea4c..e0c25a5b15b 100644
  )
  option(
 diff --git a/src/meson.build b/src/meson.build
-index f6eede56648..36fec262020 100644
+index f6eede5..36fec26 100644
 --- a/src/meson.build
 +++ b/src/meson.build
 @@ -90,6 +90,9 @@ endif
@@ -77,7 +78,7 @@ index f6eede56648..36fec262020 100644
  endif
 diff --git a/src/pvr/meson.build b/src/pvr/meson.build
 new file mode 100644
-index 00000000000..09a6986a4c9
+index 0000000..09a6986
 --- /dev/null
 +++ b/src/pvr/meson.build
 @@ -0,0 +1,23 @@
@@ -106,7 +107,7 @@ index 00000000000..09a6986a4c9
 +endif
 diff --git a/src/pvr/wsi/meson.build b/src/pvr/wsi/meson.build
 new file mode 100644
-index 00000000000..57c7623c4bb
+index 0000000..57c7623
 --- /dev/null
 +++ b/src/pvr/wsi/meson.build
 @@ -0,0 +1,75 @@
@@ -187,7 +188,7 @@ index 00000000000..57c7623c4bb
 +)
 diff --git a/src/pvr/wsi/pvr_mesa_wsi_interface.h b/src/pvr/wsi/pvr_mesa_wsi_interface.h
 new file mode 100644
-index 00000000000..b4b1bcb0c9d
+index 0000000..b4b1bcb
 --- /dev/null
 +++ b/src/pvr/wsi/pvr_mesa_wsi_interface.h
 @@ -0,0 +1,306 @@
@@ -499,7 +500,7 @@ index 00000000000..b4b1bcb0c9d
 +#endif /* PVR_MESA_WSI_INTERFACE_H */
 diff --git a/src/pvr/wsi/pvr_wsi.c b/src/pvr/wsi/pvr_wsi.c
 new file mode 100644
-index 00000000000..a1fcdfd6164
+index 0000000..a1fcdfd
 --- /dev/null
 +++ b/src/pvr/wsi/pvr_wsi.c
 @@ -0,0 +1,333 @@
@@ -838,7 +839,7 @@ index 00000000000..a1fcdfd6164
 +}
 diff --git a/src/pvr/wsi/pvr_wsi.h b/src/pvr/wsi/pvr_wsi.h
 new file mode 100644
-index 00000000000..142358db3de
+index 0000000..142358d
 --- /dev/null
 +++ b/src/pvr/wsi/pvr_wsi.h
 @@ -0,0 +1,78 @@
@@ -922,7 +923,7 @@ index 00000000000..142358db3de
 +#endif
 diff --git a/src/pvr/wsi/pvr_wsi_display.c b/src/pvr/wsi/pvr_wsi_display.c
 new file mode 100644
-index 00000000000..65a1c99507c
+index 0000000..65a1c99
 --- /dev/null
 +++ b/src/pvr/wsi/pvr_wsi_display.c
 @@ -0,0 +1,293 @@
@@ -1221,7 +1222,7 @@ index 00000000000..65a1c99507c
 +
 diff --git a/src/pvr/wsi/pvr_wsi_wayland.c b/src/pvr/wsi/pvr_wsi_wayland.c
 new file mode 100644
-index 00000000000..5b052667ac9
+index 0000000..5b05266
 --- /dev/null
 +++ b/src/pvr/wsi/pvr_wsi_wayland.c
 @@ -0,0 +1,45 @@
@@ -1272,7 +1273,7 @@ index 00000000000..5b052667ac9
 +}
 diff --git a/src/pvr/wsi/pvr_wsi_x11.c b/src/pvr/wsi/pvr_wsi_x11.c
 new file mode 100644
-index 00000000000..0a69e92ac9e
+index 0000000..0a69e92
 --- /dev/null
 +++ b/src/pvr/wsi/pvr_wsi_x11.c
 @@ -0,0 +1,62 @@
@@ -1338,6 +1339,3 @@ index 00000000000..0a69e92ac9e
 +				  pCreateInfo,
 +				  pSurface);
 +}
--- 
-2.25.1
-

+ 6 - 8
recipes-graphics/mesa/mesa-pvr/0060-vulkan-wsi-Disable-use-of-VK_EXT_pci_bus_info.patch

@@ -1,7 +1,7 @@
-From 83953c9325e4cc9adb23ad7654a02ddabdd3fd99 Mon Sep 17 00:00:00 2001
+From 2e1cdcd98f084bf62a2b1f4a8ecb77f3be8548db Mon Sep 17 00:00:00 2001
 From: brendan King <Brendan.King@imgtec.com>
 Date: Fri, 30 Jul 2021 15:34:13 +0100
-Subject: [PATCH 60/67] vulkan/wsi: Disable use of VK_EXT_pci_bus_info
+Subject: [PATCH] vulkan/wsi: Disable use of VK_EXT_pci_bus_info
 
 The VK_EXT_pci_bus_info related code has been wrapped in
 VULKAN_WSI_USE_PCI_BUS_INFO, effectively disabling it.
@@ -9,6 +9,7 @@ VULKAN_WSI_USE_PCI_BUS_INFO, effectively disabling it.
 Not all platforms support the VK_EXT_pci_bus_info extension.
 A better fix might be to pass another parameter to wsi_device_init,
 to indicate that the device is a PCI one.
+
 ---
  src/vulkan/wsi/wsi_common.c     | 4 ++++
  src/vulkan/wsi/wsi_common.h     | 2 ++
@@ -16,7 +17,7 @@ to indicate that the device is a PCI one.
  3 files changed, 10 insertions(+)
 
 diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c
-index b1360edb911..66d6683a7c1 100644
+index b1360ed..66d6683 100644
 --- a/src/vulkan/wsi/wsi_common.c
 +++ b/src/vulkan/wsi/wsi_common.c
 @@ -56,11 +56,15 @@ wsi_device_init(struct wsi_device *wsi,
@@ -36,7 +37,7 @@ index b1360edb911..66d6683a7c1 100644
     GetPhysicalDeviceProperties2(pdevice, &pdp2);
  
 diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h
-index c2563c677e6..4a733665d2c 100644
+index c2563c6..4a73366 100644
 --- a/src/vulkan/wsi/wsi_common.h
 +++ b/src/vulkan/wsi/wsi_common.h
 @@ -112,7 +112,9 @@ struct wsi_device {
@@ -50,7 +51,7 @@ index c2563c677e6..4a733665d2c 100644
     bool supports_modifiers;
     uint32_t maxImageDimension2D;
 diff --git a/src/vulkan/wsi/wsi_common_drm.c b/src/vulkan/wsi/wsi_common_drm.c
-index 6201891ca80..49a78cf4c62 100644
+index 6201891..49a78cf 100644
 --- a/src/vulkan/wsi/wsi_common_drm.c
 +++ b/src/vulkan/wsi/wsi_common_drm.c
 @@ -45,6 +45,7 @@ wsi_device_matches_drm_fd(const struct wsi_device *wsi, int drm_fd)
@@ -71,6 +72,3 @@ index 6201891ca80..49a78cf4c62 100644
  
     drmFreeDevice(&fd_device);
  
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0061-vulkan-wsi-default-to-force_bgra8_unorm_first-true.patch

@@ -1,7 +1,7 @@
-From 10a0d4ec4f9d468c792f5e675d924fa7a8f97373 Mon Sep 17 00:00:00 2001
+From 1669fb1a9b11036ac939635090a3e7bba849f339 Mon Sep 17 00:00:00 2001
 From: brendan King <Brendan.King@imgtec.com>
 Date: Mon, 2 Aug 2021 16:29:36 +0100
-Subject: [PATCH 61/67] vulkan/wsi: default to force_bgra8_unorm_first true
+Subject: [PATCH] vulkan/wsi: default to force_bgra8_unorm_first true
 
 If VULKAN_WSI_BGRA8_SNORM_FIRST is not defined, default to
 force_bgra8_unorm_first true.
@@ -10,12 +10,13 @@ This brings Mesa WSI into line with IMG WSI with regards to the
 VK_FORMAT_B8G8R8A8_UNORM and VK_FORMAT_B8G8R8A8_SRGB formats.
 With this change, the IMG Vulkan unit test, vkbonjour, will default
 to VK_FORMAT_B8G8R8A8_UNORM rather than VK_FORMAT_B8G8R8A8_SRGB.
+
 ---
  src/vulkan/wsi/wsi_common.c | 4 ++++
  1 file changed, 4 insertions(+)
 
 diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c
-index 66d6683a7c1..1ffca6fecfb 100644
+index 66d6683..1ffca6f 100644
 --- a/src/vulkan/wsi/wsi_common.c
 +++ b/src/vulkan/wsi/wsi_common.c
 @@ -158,6 +158,10 @@ wsi_device_init(struct wsi_device *wsi,
@@ -29,6 +30,3 @@ index 66d6683a7c1..1ffca6fecfb 100644
  
     return VK_SUCCESS;
  #if defined(VK_USE_PLATFORM_XCB_KHR) || \
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0062-vulkan-wsi-enable-additional-formats-for-Wayland.patch

@@ -1,17 +1,18 @@
-From 7e8bb12d48651796da6d8f3df1b388551d3b5510 Mon Sep 17 00:00:00 2001
+From 5e54d8fe1f2daab845340cf7ad519b85ad27fb27 Mon Sep 17 00:00:00 2001
 From: brendan King <Brendan.King@imgtec.com>
 Date: Mon, 2 Aug 2021 11:21:16 +0100
-Subject: [PATCH 62/67] vulkan/wsi: enable additional formats for Wayland
+Subject: [PATCH] vulkan/wsi: enable additional formats for Wayland
 
 Add VK_FORMAT_R5G6B5_UNORM_PACK16.
 
 This is for compatibility with IMG WSI.
+
 ---
  src/vulkan/wsi/wsi_common_wayland.c | 10 ++++++++++
  1 file changed, 10 insertions(+)
 
 diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
-index 1109d3f07b6..e520aa9af00 100644
+index 1109d3f..e520aa9 100644
 --- a/src/vulkan/wsi/wsi_common_wayland.c
 +++ b/src/vulkan/wsi/wsi_common_wayland.c
 @@ -68,6 +68,7 @@ struct wsi_wl_display_dmabuf {
@@ -59,6 +60,3 @@ index 1109d3f07b6..e520aa9af00 100644
        default:
           modifiers = NULL;
           break;
--- 
-2.25.1
-

+ 4 - 6
recipes-graphics/mesa/mesa-pvr/0063-vulkan-wsi-enable-additional-formats-for-Display.patch

@@ -1,17 +1,18 @@
-From c2b91fcb7c88bfec23077ae31c0035684249ea1b Mon Sep 17 00:00:00 2001
+From 4cd52452e7c525e69005989c3c7376158d9d3c7e Mon Sep 17 00:00:00 2001
 From: brendan King <Brendan.King@imgtec.com>
 Date: Tue, 3 Aug 2021 15:44:57 +0100
-Subject: [PATCH 63/67] vulkan/wsi: enable additional formats for Display
+Subject: [PATCH] vulkan/wsi: enable additional formats for Display
 
 Add VK_FORMAT_R5G6B5_UNORM_PACK16.
 
 This is for compatibility with IMG WSI.
+
 ---
  src/vulkan/wsi/wsi_common_display.c | 1 +
  1 file changed, 1 insertion(+)
 
 diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
-index f135b4e38de..298c78809c3 100644
+index f135b4e..298c788 100644
 --- a/src/vulkan/wsi/wsi_common_display.c
 +++ b/src/vulkan/wsi/wsi_common_display.c
 @@ -900,6 +900,7 @@ static const struct {
@@ -22,6 +23,3 @@ index f135b4e38de..298c78809c3 100644
  };
  
  static void
--- 
-2.25.1
-

+ 14 - 17
recipes-graphics/mesa/mesa-pvr/0064-mesa-main-dri-add-YUV420_3PLANE-and-YVU420_3PLANE.patch

@@ -1,7 +1,7 @@
-From 85762f3538a21a99bf1b71d87345ebe51f9de453 Mon Sep 17 00:00:00 2001
+From fa99f7580504ea68bf36cf1f0dcf7cdcd0338916 Mon Sep 17 00:00:00 2001
 From: Luigi Santivetti <luigi.santivetti@imgtec.com>
 Date: Thu, 12 Aug 2021 00:55:46 +0100
-Subject: [PATCH 64/67] mesa/main: dri: add YUV420_3PLANE and YVU420_3PLANE
+Subject: [PATCH] mesa/main: dri: add YUV420_3PLANE and YVU420_3PLANE
 
 ---
  include/GL/internal/dri_interface.h    |  2 ++
@@ -16,7 +16,7 @@ Subject: [PATCH 64/67] mesa/main: dri: add YUV420_3PLANE and YVU420_3PLANE
  9 files changed, 49 insertions(+), 1 deletion(-)
 
 diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
-index 080d191b0a3..7d9a1bd9ba6 100644
+index 080d191..7d9a1bd 100644
 --- a/include/GL/internal/dri_interface.h
 +++ b/include/GL/internal/dri_interface.h
 @@ -1424,6 +1424,8 @@ struct __DRIdri2ExtensionRec {
@@ -29,7 +29,7 @@ index 080d191b0a3..7d9a1bd9ba6 100644
  #define __DRI_IMAGE_USE_SHARE		0x0001
  #define __DRI_IMAGE_USE_SCANOUT		0x0002
 diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
-index fd653379b7a..970f07598d5 100644
+index fd65337..970f075 100644
 --- a/src/gallium/include/pipe/p_format.h
 +++ b/src/gallium/include/pipe/p_format.h
 @@ -516,6 +516,9 @@ enum pipe_format {
@@ -43,7 +43,7 @@ index fd653379b7a..970f07598d5 100644
  };
  
 diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
-index d268dc41fbb..df5f8cbfdc0 100644
+index d268dc4..df5f8cb 100644
 --- a/src/mesa/drivers/dri/common/utils.c
 +++ b/src/mesa/drivers/dri/common/utils.c
 @@ -330,6 +330,24 @@ driCreateConfigs(mesa_format format,
@@ -72,20 +72,20 @@ index d268dc41fbb..df5f8cbfdc0 100644
        fprintf(stderr, "[%s:%u] Unknown framebuffer type %s (%d).\n",
                __func__, __LINE__,
 diff --git a/src/mesa/drivers/dri/pvr/dri_support.h b/src/mesa/drivers/dri/pvr/dri_support.h
-index ab0b9dd9a23..a4999dc36bf 100644
+index 6314104..51524a9 100644
 --- a/src/mesa/drivers/dri/pvr/dri_support.h
 +++ b/src/mesa/drivers/dri/pvr/dri_support.h
-@@ -189,6 +189,8 @@ typedef enum
+@@ -92,6 +92,8 @@ typedef enum
  #define PVRDRI_MESA_FORMAT_YVU420_2PLANE	8
  #define PVRDRI_MESA_FORMAT_B8G8R8A8_SRGB	9
  #define PVRDRI_MESA_FORMAT_R8G8B8A8_SRGB	10
 +#define PVRDRI_MESA_FORMAT_YUV420_3PLANE	11
 +#define PVRDRI_MESA_FORMAT_YVU420_3PLANE	12
  
- /* The blit flags match their DRI counterparts */
- #define PVRDRI_BLIT_FLAG_FLUSH		0x0001
+ typedef struct __DRIimageRec __DRIimage;
+ 
 diff --git a/src/mesa/drivers/dri/pvr/pvrutil.c b/src/mesa/drivers/dri/pvr/pvrutil.c
-index d107a5dafad..ee11ac55914 100644
+index d107a5d..ee11ac5 100644
 --- a/src/mesa/drivers/dri/pvr/pvrutil.c
 +++ b/src/mesa/drivers/dri/pvr/pvrutil.c
 @@ -118,6 +118,10 @@ PVRDRIMesaFormatToMesaFormat(int pvrdri_mesa_format)
@@ -123,7 +123,7 @@ index d107a5dafad..ee11ac55914 100644
        __driUtilMessage("%s: Unknown format: %d", __func__, iFourCC);
        break;
 diff --git a/src/mesa/main/format_info.py b/src/mesa/main/format_info.py
-index d58403ea85e..bc18db74f17 100644
+index d58403e..bc18db7 100644
 --- a/src/mesa/main/format_info.py
 +++ b/src/mesa/main/format_info.py
 @@ -29,7 +29,7 @@ import sys
@@ -136,7 +136,7 @@ index d58403ea85e..bc18db74f17 100644
     elif fmat.has_channel('r'):
        if fmat.has_channel('g'):
 diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
-index f81caeceff4..d7b0d0a07c9 100644
+index f81caec..d7b0d0a 100644
 --- a/src/mesa/main/formats.c
 +++ b/src/mesa/main/formats.c
 @@ -1455,6 +1455,8 @@ _mesa_format_matches_format_and_type(mesa_format mformat,
@@ -149,7 +149,7 @@ index f81caeceff4..d7b0d0a07c9 100644
  
     default:
 diff --git a/src/mesa/main/formats.csv b/src/mesa/main/formats.csv
-index b2d476577e0..825443b10ce 100644
+index b2d4765..825443b 100644
 --- a/src/mesa/main/formats.csv
 +++ b/src/mesa/main/formats.csv
 @@ -94,6 +94,8 @@ MESA_FORMAT_YCBCR                         , other , 1, 1, 1, x16 ,     ,     ,
@@ -162,7 +162,7 @@ index b2d476577e0..825443b10ce 100644
  MESA_FORMAT_RG_RB_UNORM8                  , other , 2, 1, 1, x16 ,     ,     ,     , xyz1, rgb
  MESA_FORMAT_GR_BR_UNORM8                  , other , 2, 1, 1, x16 ,     ,     ,     , xyz1, rgb
 diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
-index 0e778d64467..1ab03d2be7e 100644
+index 0e778d6..1ab03d2 100644
 --- a/src/mesa/main/formats.h
 +++ b/src/mesa/main/formats.h
 @@ -624,6 +624,12 @@ typedef enum pipe_format mesa_format;
@@ -178,6 +178,3 @@ index 0e778d64467..1ab03d2be7e 100644
  #define MESA_FORMAT_COUNT                        PIPE_FORMAT_COUNT
  
  /* Packed to array format adapters */
--- 
-2.25.1
-

+ 5 - 8
recipes-graphics/mesa/mesa-pvr/0065-egl-null-add-support-for-YU12-and-YV12.patch

@@ -1,17 +1,17 @@
-From 89f34a04c15c8657cb77bbbc94fb9b9d0ac76980 Mon Sep 17 00:00:00 2001
+From 033231f1902849d2ff8ff3c82bef02174a62e01d Mon Sep 17 00:00:00 2001
 From: Luigi Santivetti <luigi.santivetti@imgtec.com>
 Date: Mon, 23 Aug 2021 09:18:37 +0100
-Subject: [PATCH 65/67] egl/null: add support for YU12 and YV12
+Subject: [PATCH] egl/null: add support for YU12 and YV12
 
 ---
  src/egl/drivers/dri2/platform_null.c | 28 ++++++++++++++++++++++++++++
  1 file changed, 28 insertions(+)
 
 diff --git a/src/egl/drivers/dri2/platform_null.c b/src/egl/drivers/dri2/platform_null.c
-index 529cc7a2a2f..2e86d6533de 100644
+index c9409c0..03fb5e0 100644
 --- a/src/egl/drivers/dri2/platform_null.c
 +++ b/src/egl/drivers/dri2/platform_null.c
-@@ -106,6 +106,20 @@ static const struct dri2_null_yuv_attrib {
+@@ -107,6 +107,20 @@ static const struct dri2_null_yuv_attrib {
        .num_planes = 2,
        .plane_bpp = __DRI_ATTRIB_YUV_PLANE_BPP_8_BIT,
     },
@@ -32,7 +32,7 @@ index 529cc7a2a2f..2e86d6533de 100644
  };
  
  /*
-@@ -161,6 +175,20 @@ static const struct dri2_null_format {
+@@ -162,6 +176,20 @@ static const struct dri2_null_format {
        .rgba_sizes = { 0, 0, 0, 0 },
        .yuv = &dri2_null_yuv_attribs[2],
     },
@@ -53,6 +53,3 @@ index 529cc7a2a2f..2e86d6533de 100644
  };
  
  
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0066-mesa-partially-revert-pbuffer-attribute-removal.patch

@@ -1,20 +1,21 @@
-From 28e4349702566ba34dad4c214c64bfd702177c8a Mon Sep 17 00:00:00 2001
+From 61e1720715598622318c7763f22f5d0e10fbca74 Mon Sep 17 00:00:00 2001
 From: brendan King <Brendan.King@imgtec.com>
 Date: Thu, 16 Sep 2021 17:46:28 +0100
-Subject: [PATCH 66/67] mesa: partially revert pbuffer attribute removal
+Subject: [PATCH] mesa: partially revert pbuffer attribute removal
 
 This partially reverts commit 5ffd1ebe6b3c8c7dd316dd47fac088044222e6ef
 ("mesa: Remove misc pbuffer attributes from struct gl_config").
 
 The IMG PowerVR driver sets meaningful values for the maximum
 pbuffer width, height and pixels.
+
 ---
  src/mesa/drivers/dri/common/utils.c | 7 ++++---
  src/mesa/main/mtypes.h              | 5 +++++
  2 files changed, 9 insertions(+), 3 deletions(-)
 
 diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
-index df5f8cbfdc0..28debe4e013 100644
+index df5f8cb..28debe4 100644
 --- a/src/mesa/drivers/dri/common/utils.c
 +++ b/src/mesa/drivers/dri/common/utils.c
 @@ -480,6 +480,7 @@ __DRIconfig **driConcatConfigs(__DRIconfig **a,
@@ -39,7 +40,7 @@ index df5f8cbfdc0..28debe4e013 100644
      case __DRI_ATTRIB_OPTIMAL_PBUFFER_HEIGHT:
      case __DRI_ATTRIB_VISUAL_SELECT_GROUP:
 diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
-index 8f77d4c58dd..e37c61d23d0 100644
+index 8f77d4c..e37c61d 100644
 --- a/src/mesa/main/mtypes.h
 +++ b/src/mesa/main/mtypes.h
 @@ -175,6 +175,11 @@ struct gl_config
@@ -54,6 +55,3 @@ index 8f77d4c58dd..e37c61d23d0 100644
     /* OML_swap_method */
     GLint swapMethod;
  
--- 
-2.25.1
-

+ 5 - 7
recipes-graphics/mesa/mesa-pvr/0067-egl_dri2-set-pbuffer-config-attribs-to-0-for-non-pbu.patch

@@ -1,20 +1,21 @@
-From 9bb8868ebab2d041c24c76487b6419a8039a5ce7 Mon Sep 17 00:00:00 2001
+From 8dd3c5e884c1ff76bcc67759dd3f6f8559096859 Mon Sep 17 00:00:00 2001
 From: Frank Binns <frank.binns@imgtec.com>
 Date: Wed, 4 Jun 2014 13:43:03 +0100
-Subject: [PATCH 67/67] egl_dri2: set pbuffer config attribs to 0 for
- non-pbuffer configs
+Subject: [PATCH] egl_dri2: set pbuffer config attribs to 0 for non-pbuffer
+ configs
 
 If the EGL_PBUFFER_BIT isn't set in the surface type, don't set the
 EGL_MAX_PBUFFER_WIDTH, EGL_MAX_PBUFFER_HEIGHT and
 EGL_MAX_PBUFFER_PIXELS attributes to non-zero values when adding an
 EGL config. If the EGL_PBUFFER_BIT is set, don't override non-zero
 values from the DRI config.
+
 ---
  src/egl/drivers/dri2/egl_dri2.c | 20 ++++++++++++++++++--
  1 file changed, 18 insertions(+), 2 deletions(-)
 
 diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
-index 56b5175db6e..1b10c2e7362 100644
+index 56b5175..1b10c2e 100644
 --- a/src/egl/drivers/dri2/egl_dri2.c
 +++ b/src/egl/drivers/dri2/egl_dri2.c
 @@ -407,6 +407,7 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
@@ -61,6 +62,3 @@ index 56b5175db6e..1b10c2e7362 100644
     if (attr_list)
        for (int i = 0; attr_list[i] != EGL_NONE; i += 2)
           _eglSetConfigKey(&base, attr_list[i], attr_list[i+1]);
--- 
-2.25.1
-

+ 5 - 8
recipes-graphics/mesa/mesa-pvr/0068-GL_ARB_geometry_shader4-entry-points.patch

@@ -1,7 +1,7 @@
-From f9c028d508bac22d7c78b0232c625e27d13340a7 Mon Sep 17 00:00:00 2001
+From 64890c411e05d8a87e9e692b1d8cf470e7d4488c Mon Sep 17 00:00:00 2001
 From: Brendan King <Brendan.King@imgtec.com>
 Date: Thu, 11 Nov 2021 12:09:38 +0000
-Subject: [PATCH 68/68] GL_ARB_geometry_shader4 entry points.
+Subject: [PATCH] GL_ARB_geometry_shader4 entry points.
 
 ---
  src/mapi/glapi/gen/ARB_geometry_shader4.xml | 97 +++++++++++++++++++++
@@ -12,7 +12,7 @@ Subject: [PATCH 68/68] GL_ARB_geometry_shader4 entry points.
 
 diff --git a/src/mapi/glapi/gen/ARB_geometry_shader4.xml b/src/mapi/glapi/gen/ARB_geometry_shader4.xml
 new file mode 100644
-index 00000000000..d92dc577b17
+index 0000000..d92dc57
 --- /dev/null
 +++ b/src/mapi/glapi/gen/ARB_geometry_shader4.xml
 @@ -0,0 +1,97 @@
@@ -114,7 +114,7 @@ index 00000000000..d92dc577b17
 +
 +</OpenGLAPI>
 diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
-index 4e35de0f4ea..d5a5e7f5386 100644
+index 4e35de0..d5a5e7f 100644
 --- a/src/mapi/glapi/gen/gl_API.xml
 +++ b/src/mapi/glapi/gen/gl_API.xml
 @@ -8064,7 +8064,7 @@
@@ -127,7 +127,7 @@ index 4e35de0f4ea..d5a5e7f5386 100644
  <!-- 48. GL_ARB_half_float_vertex -->
  
 diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
-index 974f366d7b4..833ad73dd6a 100644
+index 974f366..833ad73 100644
 --- a/src/mapi/glapi/gen/static_data.py
 +++ b/src/mapi/glapi/gen/static_data.py
 @@ -1721,6 +1721,10 @@ offsets = {
@@ -141,6 +141,3 @@ index 974f366d7b4..833ad73dd6a 100644
  }
  
  functions = [
--- 
-2.25.1
-