diff options
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2/0001-video-restore-ability-to-disable-fb-accel-via-hint.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.24.0.bb (renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb) | 10 |
2 files changed, 5 insertions, 41 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2/0001-video-restore-ability-to-disable-fb-accel-via-hint.patch b/meta/recipes-graphics/libsdl2/libsdl2/0001-video-restore-ability-to-disable-fb-accel-via-hint.patch deleted file mode 100644 index fc74d30556..0000000000 --- a/meta/recipes-graphics/libsdl2/libsdl2/0001-video-restore-ability-to-disable-fb-accel-via-hint.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 14ad91658fd296e34bb9e833281e72c871bfb189 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex@linutronix.de> | ||
| 3 | Date: Tue, 3 May 2022 12:31:50 +0200 | ||
| 4 | Subject: [PATCH] video: restore ability to disable fb accel via hint | ||
| 5 | |||
| 6 | Somewhere in code refactoring between .20 and .22 this check | ||
| 7 | was lost, and so the hint had no effect anymore. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/libsdl-org/SDL/pull/5611] | ||
| 10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 11 | --- | ||
| 12 | src/video/SDL_video.c | 8 ++++++++ | ||
| 13 | 1 file changed, 8 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c | ||
| 16 | index 93c803e..cbe7616 100644 | ||
| 17 | --- a/src/video/SDL_video.c | ||
| 18 | +++ b/src/video/SDL_video.c | ||
| 19 | @@ -2503,6 +2503,14 @@ SDL_CreateWindowFramebuffer(SDL_Window * window) | ||
| 20 | if (!_this->checked_texture_framebuffer) { | ||
| 21 | SDL_bool attempt_texture_framebuffer = SDL_TRUE; | ||
| 22 | |||
| 23 | + /* See if the user or application wants to specifically disable the framebuffer */ | ||
| 24 | + const char *hint = SDL_GetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION); | ||
| 25 | + if (hint) { | ||
| 26 | + if (*hint == '0' || SDL_strcasecmp(hint, "false") == 0) { | ||
| 27 | + attempt_texture_framebuffer = SDL_FALSE; | ||
| 28 | + } | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | if (_this->is_dummy) { /* dummy driver never has GPU support, of course. */ | ||
| 32 | attempt_texture_framebuffer = SDL_FALSE; | ||
| 33 | } | ||
| 34 | -- | ||
| 35 | 2.30.2 | ||
| 36 | |||
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.24.0.bb index ff3e162c49..d5cbf73df2 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.24.0.bb | |||
| @@ -22,13 +22,12 @@ LIC_FILES_CHKSUM:append = " ${@bb.utils.contains('PACKAGECONFIG', 'arm-neon', 'f | |||
| 22 | PROVIDES = "virtual/libsdl2" | 22 | PROVIDES = "virtual/libsdl2" |
| 23 | 23 | ||
| 24 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ | 24 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ |
| 25 | file://0001-video-restore-ability-to-disable-fb-accel-via-hint.patch \ | ||
| 26 | " | 25 | " |
| 27 | SRC_URI:append:class-native = " file://0001-Disable-libunwind-in-native-OE-builds-by-not-looking.patch" | 26 | SRC_URI:append:class-native = " file://0001-Disable-libunwind-in-native-OE-builds-by-not-looking.patch" |
| 28 | 27 | ||
| 29 | S = "${WORKDIR}/SDL2-${PV}" | 28 | S = "${WORKDIR}/SDL2-${PV}" |
| 30 | 29 | ||
| 31 | SRC_URI[sha256sum] = "fe7cbf3127882e3fc7259a75a0cb585620272c51745d3852ab9dd87960697f2e" | 30 | SRC_URI[sha256sum] = "91e4c34b1768f92d399b078e171448c6af18cafda743987ed2064a28954d6d97" |
| 32 | 31 | ||
| 33 | inherit cmake lib_package binconfig-disabled pkgconfig upstream-version-is-even | 32 | inherit cmake lib_package binconfig-disabled pkgconfig upstream-version-is-even |
| 34 | 33 | ||
| @@ -43,9 +42,7 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \ | |||
| 43 | -DSDL_PTHREADS=ON \ | 42 | -DSDL_PTHREADS=ON \ |
| 44 | -DSDL_RPATH=OFF \ | 43 | -DSDL_RPATH=OFF \ |
| 45 | -DSDL_SNDIO=OFF \ | 44 | -DSDL_SNDIO=OFF \ |
| 46 | -DSDL_X11_XVM=OFF \ | ||
| 47 | -DSDL_X11_XCURSOR=OFF \ | 45 | -DSDL_X11_XCURSOR=OFF \ |
| 48 | -DSDL_X11_XINERAMA=OFF \ | ||
| 49 | -DSDL_X11_XDBE=OFF \ | 46 | -DSDL_X11_XDBE=OFF \ |
| 50 | -DSDL_X11_XFIXES=OFF \ | 47 | -DSDL_X11_XFIXES=OFF \ |
| 51 | -DSDL_X11_XINPUT=OFF \ | 48 | -DSDL_X11_XINPUT=OFF \ |
| @@ -62,7 +59,7 @@ PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}" | |||
| 62 | PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}" | 59 | PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}" |
| 63 | PACKAGECONFIG ??= " \ | 60 | PACKAGECONFIG ??= " \ |
| 64 | ${PACKAGECONFIG_GL} \ | 61 | ${PACKAGECONFIG_GL} \ |
| 65 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ | 62 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11 vulkan', d)} \ |
| 66 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ | 63 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ |
| 67 | ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ | 64 | ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ |
| 68 | " | 65 | " |
| @@ -77,9 +74,12 @@ PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/lib | |||
| 77 | PACKAGECONFIG[libusb] = ",,libusb1" | 74 | PACKAGECONFIG[libusb] = ",,libusb1" |
| 78 | PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl" | 75 | PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl" |
| 79 | PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio" | 76 | PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio" |
| 77 | PACKAGECONFIG[vulkan] = "-DSDL_VULKAN=ON,-DSDL_VULKAN=OFF" | ||
| 80 | PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon" | 78 | PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon" |
| 81 | PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender" | 79 | PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender" |
| 82 | 80 | ||
| 83 | CFLAGS:append:class-native = " -DNO_SHARED_MEMORY" | 81 | CFLAGS:append:class-native = " -DNO_SHARED_MEMORY" |
| 84 | 82 | ||
| 83 | FILES:${PN} += "${datadir}/licenses/SDL2/LICENSE.txt" | ||
| 84 | |||
| 85 | BBCLASSEXTEND = "native nativesdk" | 85 | BBCLASSEXTEND = "native nativesdk" |
