From bd324eecf93f59280371440e226f569ab2630f67 Mon Sep 17 00:00:00 2001 From: fewtarius Date: Fri, 14 Apr 2023 10:48:35 +0000 Subject: [PATCH] New wayland checkerboard patch. --- .../0009-hide-wayland-checkerboard.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 packages/emulators/standalone/retroarch/patches/0009-hide-wayland-checkerboard.patch diff --git a/packages/emulators/standalone/retroarch/patches/0009-hide-wayland-checkerboard.patch b/packages/emulators/standalone/retroarch/patches/0009-hide-wayland-checkerboard.patch new file mode 100644 index 000000000..6c03def53 --- /dev/null +++ b/packages/emulators/standalone/retroarch/patches/0009-hide-wayland-checkerboard.patch @@ -0,0 +1,27 @@ +diff --git a/gfx/drivers/vulkan.c b/gfx/drivers/vulkan.c +index d04a24172c..806e336ba2 100644 +--- a/gfx/drivers/vulkan.c ++++ b/gfx/drivers/vulkan.c +@@ -3313,14 +3313,14 @@ static uintptr_t vulkan_load_texture(void *video_data, void *data, + { + /* Create a dummy texture instead. */ + static const uint32_t checkerboard[] = { +- VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, +- VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, +- VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, +- VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, +- VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, +- VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, +- VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, +- VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, VK_T1, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, ++ VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, VK_T0, + }; + *texture = vulkan_create_texture(vk, NULL, + 8, 8, VK_FORMAT_B8G8R8A8_UNORM,