all: convert graphics conditional switching from gpu to opengl
PATCH v2 1/2 all: convert graphics conditional switching from gpu to opengl
From: Randolph Sapp <[email protected]>
Everything that previously switched using the GPU machine feature should instead switch based on the opengl distro feature to allow for software rendering. There are couple tiny exceptions where a demo specifically showcases hardware acceleration and offloading and doesn't make sense with software rendering.
---
v2 changes:
* restore and move cairo PACKAGECONFIG settings to arago.conf
* update mainline and next branding to also clear gpudriver preferences
* keep qt-opencv-opencl-opengl-multithreaded demo checking for gpu
* simplify Matrix GPU demos packaging to have a generic default
* omapl138 is an underpowered ARM9 w/o graphics, so disable GPU demos for now, offscreen software rendering still gets built though
* Matrix touch demos check for touchscreen machine feature
meta-arago-distro/conf/distro/arago.conf | 3 +++ .../conf/distro/include/branding-mainline.inc | 2 ++ .../conf/distro/include/branding-next.inc | 2 ++ .../recipes-core/images/tisdk-core-bundle.inc | 4 ++-- .../recipes-core/images/tisdk-default-image.bb | 12 +++++------- .../recipes-core/images/tisdk-thinlinux-image.bb | 4 +--- .../packagegroup-arago-tisdk-addons-sdk-target.bb | 2 +- .../packagegroup-arago-tisdk-addons.bb | 2 +- ...packagegroup-arago-tisdk-graphics-sdk-target.bb | 4 +--- .../packagegroup-arago-tisdk-graphics.bb | 4 +--- .../packagegroup-arago-tisdk-gtk-sdk-target.bb | 4 +--- .../packagegroups/packagegroup-arago-tisdk-gtk.bb | 4 +--- .../packagegroups/packagegroup-arago-tisdk-hmi.bb | 4 +--- .../packagegroup-arago-tisdk-matrix.bb | 12 +++++++----- .../packagegroup-arago-tisdk-multimedia.bb | 4 ++-- .../packagegroups/packagegroup-arago-tisdk-qte.bb | 4 +--- .../packagegroup-arago-toolchain-tisdk-target.bb | 6 +++--- .../recipes-core/packagegroups/ti-demos.bb | 2 +- .../recipes-core/packagegroups/ti-world.bb | 10 +++++----- .../recipes-graphics/cairo/cairo_%.bbappend | 3 --- .../gstreamer/gstreamer1.0-plugins-%.bbappend | 6 ------ .../qt-opencv-opencl-opengl-multithreaded_git.bb | 2 +- .../recipes-core/matrix/matrix-gui-3d-demos_2.0.bb | 14 +------------- .../matrix/matrix-gui-machinevision-demos_2.0.bb | 2 +- .../matrix/matrix-gui-video-analytics-demos_2.0.bb | 2 +- .../recipes-core/matrix/matrix-gui_2.0.bb | 2 +- 26 files changed, 46 insertions(+), 74 deletions(-) delete mode 100644 meta-arago-distro/recipes-graphics/cairo/cairo_%.bbappend delete mode 100644 meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-%.bbappend
meta-arago-distro/conf/distro/arago.conf +3 -0
@@ -114,6 +114,9 @@ PACKAGECONFIG:append:pn-openssl = " cryptodev-linux" # Enable GST_TRACER logging in gstreamer PACKAGECONFIG:append:pn-gstreamer1.0 = " tracer-hooks" +# Enable EGL/GLESv2 support +PACKAGECONFIG:append:pn-cairo = " egl glesv2" + # Disable pulseaudio routing in alsa by default PACKAGECONFIG:remove:pn-alsa-plugins = "pulseaudio" RDEPENDS:pulseaudio-server:remove = "alsa-plugins-pulseaudio-conf"
meta-arago-distro/conf/distro/include/branding-mainline.inc +2 -0
@@ -4,4 +4,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-mainline" SRCREV_ti-upstream-tools:pn-linux-ti-mainline = "${AUTOREV}" # GPU support requires out-of-tree SGX and RGX drivers not available in mainline +# fall back to software rendering MACHINE_FEATURES:remove = "gpu" +PREFERRED_PROVIDER_virtual/gpudriver = ""
meta-arago-distro/conf/distro/include/branding-next.inc +2 -0
@@ -5,4 +5,6 @@ SRCREV:pn-linux-ti-next = "${AUTOREV}" SRCREV:pn-u-boot-ti-mainline = "${AUTOREV}" # GPU support requires out-of-tree SGX and RGX drivers not available in next +# fall back to software rendering MACHINE_FEATURES:remove = "gpu" +PREFERRED_PROVIDER_virtual/gpudriver = ""
meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc +2 -2
@@ -31,8 +31,8 @@ DTB_FILTER:j721s2 = "j721s2" # List of target side images to build for the SDK TARGET_IMAGES = "tisdk-base-image tisdk-default-image tisdk-thinlinux-image tisdk-bootstrap-image" -TISDK_TOOLCHAIN = "${@bb.utils.contains('MACHINE_FEATURES','gpu','meta-toolchain-arago-tisdk','meta-toolchain-arago-tisdk-server',d)}" -TOOLCHAIN_SUFFIX = "${@bb.utils.contains('MACHINE_FEATURES','gpu','-tisdk','-tisdk-server',d)}" +TISDK_TOOLCHAIN = "${@bb.utils.contains('DISTRO_FEATURES','opengl','meta-toolchain-arago-tisdk','meta-toolchain-arago-tisdk-server',d)}" +TOOLCHAIN_SUFFIX = "${@bb.utils.contains('DISTRO_FEATURES','opengl','-tisdk','-tisdk-server',d)}" IMAGE_INSTALL = "\ packagegroup-arago-tisdk-amsdk-sdk-host \
meta-arago-distro/recipes-core/images/tisdk-default-image.bb +5 -7
@@ -5,16 +5,14 @@ DESCRIPTION = "Complete Arago TI SDK filesystem image containing complete\ require arago-image.inc -SPLASH = "${@bb.utils.contains('MACHINE_FEATURES','gpu','psplash','',d)}" - IMAGE_INSTALL += "\ packagegroup-arago-base \ packagegroup-arago-console \ packagegroup-arago-base-tisdk \ ti-test \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics','',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-gtk','',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-qte','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-graphics','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-gtk','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-qte','',d)} \ ${@['','packagegroup-arago-tisdk-opencl'][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ packagegroup-arago-tisdk-connectivity \ packagegroup-arago-tisdk-crypto \
@@ -23,7 +21,7 @@ IMAGE_INSTALL += "\ packagegroup-arago-tisdk-multimedia \ packagegroup-arago-tisdk-addons \ packagegroup-arago-tisdk-addons-extra \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-hmi','packagegroup-arago-base-tisdk-server-extra',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-hmi','packagegroup-arago-base-tisdk-server-extra',d)} \ ti-analytics \ ti-demos \ "
@@ -50,7 +48,7 @@ EXTRABROWSERS = " \ " PYTHON2APPS = " \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu',"${EXTRABROWSERS}",'',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl',"${EXTRABROWSERS}",'',d)} \ ${@bb.utils.contains("BBFILE_COLLECTIONS","browser-layer",bb.utils.contains('DISTRO_FEATURES','wayland',"${CHROMIUM}",'',d),'',d)} \ "
meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bb +1 -3
@@ -5,8 +5,6 @@ DESCRIPTION = "Minimal bootable image with container to start the next\ require arago-image.inc -SPLASH = "${@bb.utils.contains('MACHINE_FEATURES','gpu','psplash','',d)}" - # Allow users to tack on additional packages as interesting. ARAGO_THIN_IMAGE_EXTRA_INSTALL ?= ""
@@ -14,7 +12,7 @@ IMAGE_INSTALL += "\ packagegroup-arago-base \ packagegroup-arago-console \ packagegroup-arago-base-tisdk \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-graphics','',d)} \ packagegroup-arago-tisdk-connectivity \ packagegroup-arago-tisdk-crypto \ docker \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb +1 -1
@@ -32,7 +32,7 @@ EXTRA_LIBS:append:dra7xx = " libulm-dev \ " PDM_ANOMALY_PKG_DEV = "\ - ${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'pdm-anomaly-detection-dev', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'pdm-anomaly-detection-dev', '', d)} \ "
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +1 -1
@@ -66,7 +66,7 @@ UTILS:append:omapl138 = " ti-ipc-rtos-fw" UTILS:append:dra7xx = " \ ${UTILS_DSP} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','glsdk-example-apps','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','glsdk-example-apps','',d)} \ " EXTRA_PACKAGES = " \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb +1 -3
@@ -4,9 +4,7 @@ PR = "r10" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup features_check - -REQUIRED_MACHINE_FEATURES = "gpu" +inherit packagegroup RDEPENDS:${PN} = "\ libegl-dev \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics.bb +1 -3
@@ -4,9 +4,7 @@ PR = "r26" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup features_check - -REQUIRED_MACHINE_FEATURES = "gpu" +inherit packagegroup GFX_WAYLAND = "\ weston-init \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb +1 -3
@@ -4,9 +4,7 @@ PR = "r2" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup features_check - -REQUIRED_MACHINE_FEATURES = "gpu" +inherit packagegroup RDEPENDS:${PN} = "\ gtk+3-dev \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk.bb +1 -3
@@ -4,9 +4,7 @@ PR = "r2" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup features_check - -REQUIRED_MACHINE_FEATURES = "gpu" +inherit packagegroup RDEPENDS:${PN} = "\ gtk+3 \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-hmi.bb +1 -3
@@ -4,9 +4,7 @@ PR = "r0" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup features_check - -REQUIRED_MACHINE_FEATURES = "gpu" +inherit packagegroup HMI = " \ "
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb +7 -5
@@ -65,7 +65,7 @@ MATRIX_QT_APPS:append:ti43x = " \ " MATRIX_TOUCH_APPS = " \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','matrix-gui-touch-demos','',d)} \ + ${@bb.utils.contains('MACHINE_FEATURES','touchscreen','matrix-gui-touch-demos','',d)} \ " MATRIX_GPU_DEMOS = " \
@@ -76,6 +76,8 @@ MATRIX_GPU_DEMOS:append:omap-a15 = " \ matrix-3d-demo-kmscubevideo \ " +MATRIX_GPU_DEMOS:omapl138 = "" + MATRIX_OPENCL_APPS = " \ matrix-opencl-demo-floatcompute \ matrix-opencl-demo-vecadd \
@@ -151,7 +153,7 @@ MATRIX_APPS:append:omap-a15 = " \ matrix-gui-pm-demos-governor \ " -# ${@['','matrix-gui-browser-demos'][bb.utils.contains('MACHINE_FEATURES','gpu',True,False,d) and bb.utils.contains('DISTRO_FEATURES','wayland',True,False,d)]} \ +# ${@['','matrix-gui-browser-demos'][bb.utils.contains('DISTRO_FEATURES','opengl',True,False,d) and bb.utils.contains('DISTRO_FEATURES','wayland',True,False,d)]} \ # \ #
@@ -184,9 +186,9 @@ RDEPENDS:${PN} = " \ ${MATRIX_APPS} \ ${MATRIX_COMMON_APPS} \ ${@bb.utils.contains('MACHINE_FEATURES','touchscreen',"${MATRIX_TOUCH_APPS}",'',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu',"${MATRIX_GUI}",'',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu',"${MATRIX_QT_APPS}",'',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu',"${MATRIX_GPU_DEMOS}",'',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl',"${MATRIX_GUI}",'',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl',"${MATRIX_QT_APPS}",'',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl',"${MATRIX_GPU_DEMOS}",'',d)} \ ${@['',"${MATRIX_OPENCL_APPS}"][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ "
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb +2 -2
@@ -12,8 +12,8 @@ MULTIMEDIA = " \ MULTIMEDIA:omapl138 = "" -DUAL_CAMERA_DEMO = "${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'dual-camera-demo', '', d)}" -IMAGE_GALLERY_DEMO = "${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'image-gallery', '', d)}" +DUAL_CAMERA_DEMO = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dual-camera-demo', '', d)}" +IMAGE_GALLERY_DEMO = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'image-gallery', '', d)}" MULTIMEDIA:append:ti43x = " \ ${DUAL_CAMERA_DEMO} \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-qte.bb +1 -3
@@ -4,9 +4,7 @@ PR = "r22" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup features_check - -REQUIRED_MACHINE_FEATURES = "gpu" +inherit packagegroup # qtdeclarative-examples RDEPENDS:${PN} = "\
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb +3 -3
@@ -18,11 +18,11 @@ TISDK_TOOLCHAIN_EXTRA_TARGET = "\ TISDK_TOOLCHAIN_EXTRA_TARGET:omapl138 = "" RDEPENDS:${PN} = "\ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-qte-toolchain-target','',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-gtk-sdk-target','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-qte-toolchain-target','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-gtk-sdk-target','',d)} \ ${TISDK_TOOLCHAIN_BASE_TARGET} \ ${TISDK_TOOLCHAIN_EXTRA_TARGET} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics-sdk-target','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-graphics-sdk-target','',d)} \ ${@['','packagegroup-arago-tisdk-opencl-sdk-target'][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ packagegroup-arago-tisdk-addons-sdk-target \ "
meta-arago-distro/recipes-core/packagegroups/ti-demos.bb +1 -1
@@ -5,7 +5,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" inherit packagegroup -PDM_ANOMALY_PKG = "${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'pdm-anomaly-detection', '', d)}" +PDM_ANOMALY_PKG = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'pdm-anomaly-detection', '', d)}" PDM_ANOMALY = "" PDM_ANOMALY:ti33x = "${PDM_ANOMALY_PKG}"
meta-arago-distro/recipes-core/packagegroups/ti-world.bb +5 -5
@@ -22,7 +22,7 @@ EXTRABROWSERS = " \ " PYTHON2APPS = " \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu',"${EXTRABROWSERS}",'',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl',"${EXTRABROWSERS}",'',d)} \ ${@bb.utils.contains("BBFILE_COLLECTIONS","browser-layer",bb.utils.contains('DISTRO_FEATURES','wayland',"${CHROMIUM}",'',d),'',d)} \ "
@@ -43,9 +43,9 @@ RDEPENDS:${PN} = "\ packagegroup-arago-console \ packagegroup-arago-base-tisdk \ ti-test \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics','',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-gtk','',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-qte qt3d-examples','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-graphics','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-gtk','',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-qte qt3d-examples','',d)} \ ${@oe.utils.all_distro_features(d, "opencl", "${OPENCL}")} \ packagegroup-arago-tisdk-connectivity \ packagegroup-arago-tisdk-crypto \
@@ -54,7 +54,7 @@ RDEPENDS:${PN} = "\ packagegroup-arago-tisdk-multimedia \ packagegroup-arago-tisdk-addons \ packagegroup-arago-tisdk-addons-extra \ - ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-hmi','packagegroup-arago-base-tisdk-server-extra',d)} \ + ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-hmi','packagegroup-arago-base-tisdk-server-extra',d)} \ ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "${PYTHON2APPS}", "", d)} \ ${DEVTOOLS} \ ${@bb.utils.contains('TUNE_FEATURES', 'armv7a', 'valgrind', '', d)} \
meta-arago-distro/recipes-graphics/cairo/cairo_%.bbappend deleted +0 -3
@@ -1,3 +0,0 @@ -PR:append = ".arago1" - -PACKAGECONFIG:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'gpu', 'egl glesv2', '', d)}"
meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-%.bbappend deleted +0 -6
@@ -1,6 +0,0 @@ -# Remove all GFX PACKAGECONFIGs for platforms w/o GPU -PACKAGECONFIG:remove = "${@bb.utils.contains('MACHINE_FEATURES','gpu','','x11 wayland gl egl gles2 qt5',d)}" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -PR:append = ".0"
meta-arago-extras/recipes-apps/video-analytics-demo/qt-opencv-opencl-opengl-multithreaded_git.bb +1 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e28b998056a1a513e87be11c5045e85b" inherit features_check -REQUIRED_MACHINE_FEATURES = "dsp" +REQUIRED_MACHINE_FEATURES = "dsp gpu" REQUIRED_DISTRO_FEATURES = "opencv opencl opengl" DEPENDS += "opencv opencl virtual/egl ti-cgt6x-native clocl-native dsplib-c66x"
meta-arago-extras/recipes-core/matrix/matrix-gui-3d-demos_2.0.bb +1 -13
@@ -17,25 +17,13 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" # we can use an RRECOMMENDS instead. PACKAGES = " \ + matrix-3d-demo-kmscube \ " PACKAGES:append:omap-a15 = " \ - matrix-3d-demo-kmscube \ matrix-3d-demo-kmscubevideo \ " -PACKAGES:append:ti43x = " \ - matrix-3d-demo-kmscube \ -" - -PACKAGES:append:ti33x = " \ - matrix-3d-demo-kmscube \ -" - -PACKAGES:append:k3 = " \ - matrix-3d-demo-kmscube \ -" - MATRIX_3D_DEMO_SGX_QAF_PARAM = "1000" do_install:prepend() {
meta-arago-extras/recipes-core/matrix/matrix-gui-machinevision-demos_2.0.bb +1 -1
@@ -29,7 +29,7 @@ RDEPENDS:matrix-machinevision-demo-dlp3dscanner = " \ " RDEPENDS:matrix-machinevision-demo-dlp3dscanner:append:dra7xx = " \ - ${@['','point-cloud-viewer'][oe.utils.all_distro_features(d, 'opencv', True, False) and bb.utils.contains('MACHINE_FEATURES', 'gpu', True, False, d)]} \ + ${@['','point-cloud-viewer'][oe.utils.all_distro_features(d, 'opencv', True, False) and bb.utils.contains('DISTRO_FEATURES', 'opengl', True, False, d)]} \ " RDEPENDS:matrix-machinevision-demo-barcoderoi = " \
meta-arago-extras/recipes-core/matrix/matrix-gui-video-analytics-demos_2.0.bb +1 -1
@@ -17,7 +17,7 @@ VIDEO_ANALYTICS_DEMO_RDEPENDS += " \ PACKAGES = "matrix-video-analytics-opencv-opencl-opengl-demo \ " -# ${@['','qt-opencv-opencl-opengl-multithreaded'][oe.utils.all_distro_features(d, 'opencv opencl opengl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'gpu dsp', True, False, d)]} +# ${@['','qt-opencv-opencl-opengl-multithreaded'][oe.utils.all_distro_features(d, 'opencv opencl opengl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} RDEPENDS:matrix-video-analytics-opencv-opencl-opengl-demo = " \ ${VIDEO_ANALYTICS_DEMO_RDEPENDS} \ "
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1 -1
@@ -58,7 +58,7 @@ do_install(){ install -m 0644 ${WORKDIR}/matrix-gui-2.0.service ${D}${systemd_system_unitdir} } -GUIDEPS = "${@bb.utils.contains('MACHINE_FEATURES','gpu',"matrix-gui-browser refresh-screen",'',d)}" +GUIDEPS = "${@bb.utils.contains('DISTRO_FEATURES','opengl',"matrix-gui-browser refresh-screen",'',d)}" RDEPENDS:${PN} += "matrix-lighttpd-config lighttpd lighttpd-module-cgi lighttpd-module-deflate lighttpd-module-expire php php-cgi php-cli ${GUIDEPS}"
Signature · 1 line
2.25.1
PATCH 2/2 weston: drop patch reverting GL_EXT_unpack_subimage requirement
From: Denys Dmytriyenko <[email protected]>
With the updated graphics recipes in meta-ti this hack is no longer needed.
--- ...equire-GL_EXT_unpack_subimage-commit.patch | 90 ------------------- .../wayland/weston_10.0.2.bbappend | 1 - 2 files changed, 91 deletions(-) delete mode 100644 meta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch
meta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch deleted +0 -90
@@ -1,90 +0,0 @@ -From 6558a9153cc81199146132041c61023a2c2e1b2e Mon Sep 17 00:00:00 2001 -From: Andrew Davis <[email protected]> -Date: Thu, 6 Oct 2022 15:49:31 -0500 -Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit - -This reverts commit 593d5af43a8e2c2a3371088fa7ae430d0517c82d. - -That commit removed support for GPU drivers without GL_EXT_unpack_subimage -which SGX does not support. Add back support for GPUs without this -extension. - -Signed-off-by: Andrew Davis <[email protected]> ---- - libweston/renderer-gl/gl-renderer-internal.h | 2 ++ - libweston/renderer-gl/gl-renderer.c | 29 ++++++++++++++++---- - 2 files changed, 26 insertions(+), 5 deletions(-) - -diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h -index 72101b47..7a6e2f48 100644 ---- a/libweston/renderer-gl/gl-renderer-internal.h -+++ b/libweston/renderer-gl/gl-renderer-internal.h -@@ -133,6 +133,8 @@ struct gl_renderer { - PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; - bool has_platform_base; - -+ bool has_unpack_subimage; -+ - PFNEGLBINDWAYLANDDISPLAYWL bind_display; - PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; - PFNEGLQUERYWAYLANDBUFFERWL query_buffer; -diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c -index a5f5eae4..410ba85c 100644 ---- a/libweston/renderer-gl/gl-renderer.c -+++ b/libweston/renderer-gl/gl-renderer.c -@@ -1835,6 +1835,7 @@ gl_renderer_flush_damage(struct weston_surface *surface) - { - const struct weston_testsuite_quirks *quirks = - &surface->compositor->test_data.test_quirks; -+ struct gl_renderer *gr = get_renderer(surface->compositor); - struct gl_surface_state *gs = get_surface_state(surface); - struct weston_buffer *buffer = gs->buffer_ref.buffer; - struct weston_view *view; -@@ -1872,6 +1873,24 @@ gl_renderer_flush_damage(struct weston_surface *surface) - - glActiveTexture(GL_TEXTURE0); - -+ if (!gr->has_unpack_subimage) { -+ wl_shm_buffer_begin_access(buffer->shm_buffer); -+ for (j = 0; j < gs->num_textures; j++) { -+ glBindTexture(GL_TEXTURE_2D, gs->textures[j]); -+ glTexImage2D(GL_TEXTURE_2D, 0, -+ gs->gl_format[j], -+ gs->pitch / gs->hsub[j], -+ buffer->height / gs->vsub[j], -+ 0, -+ gl_format_from_internal(gs->gl_format[j]), -+ gs->gl_pixel_type, -+ data + gs->offset[j]); -+ } -+ wl_shm_buffer_end_access(buffer->shm_buffer); -+ -+ goto done; -+ } -+ - if (gs->needs_full_upload || quirks->gl_force_full_upload) { - glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT, 0); - glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, 0); -@@ -3932,11 +3951,9 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - else - ec->read_format = PIXMAN_a8b8g8r8; - -- if (gr->gl_version < gr_gl_version(3, 0) && -- !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { -- weston_log("GL_EXT_unpack_subimage not available.\n"); -- return -1; -- } -+ if (gr->gl_version >= gr_gl_version(3, 0) || -+ weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) -+ gr->has_unpack_subimage = true; - - if (gr->gl_version >= gr_gl_version(3, 0) || - weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) -@@ -3977,6 +3994,8 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - gr_gl_version_minor(gr->gl_version)); - weston_log_continue(STAMP_SPACE "read-back format: %s\n", - ec->read_format == PIXMAN_a8r8g8b8 ? "BGRA" : "RGBA"); -+ weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", -+ gr->has_unpack_subimage ? "yes" : "no"); - weston_log_continue(STAMP_SPACE "EGL Wayland extension: %s\n", - gr->has_bind_display ? "yes" : "no");
meta-arago-distro/recipes-graphics/wayland/weston_10.0.2.bbappend +0 -1
@@ -7,5 +7,4 @@ SRC_URI += " \ file://0003-weston-Fix-virtual-keyboard-display-issue-for-QT5-ap.patch \ file://0004-weston-Fix-touch-screen-crash-issue.patch \ file://0001-backend-drm-Select-plane-based-on-current-attached-C.patch \ - file://0001-Revert-require-GL_EXT_unpack_subimage-commit.patch \ "
Signature · 1 line
2.25.1
Re: [meta-arago] [master/kirkstone][PATCH 2/2] weston: drop patch reverting GL_EXT_unpack_subimage requirement
Quoted 4 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
With the updated graphics recipes in meta-ti this hack is no longer needed.
Did you test that? What board and with what program?
Andrew
Quoted 113 lines
Signed-off-by Denys Dmytriyenko <[email protected]>--- ...equire-GL_EXT_unpack_subimage-commit.patch | 90 ------------------- .../wayland/weston_10.0.2.bbappend | 1 - 2 files changed, 91 deletions(-)delete mode 100644
meta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patchmeta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch deleted +0
-90@@ -1,90 +0,0 @@ -From 6558a9153cc81199146132041c61023a2c2e1b2e Mon Sep 17 00:00:00 2001 -From: Andrew Davis <[email protected]> -Date: Thu, 6 Oct 2022 15:49:31 -0500 -Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit - -This reverts commit 593d5af43a8e2c2a3371088fa7ae430d0517c82d. - -That commit removed support for GPU drivers without GL_EXT_unpack_subimage -which SGX does not support. Add back support for GPUs without this -extension. - -Signed-off-by: Andrew Davis <[email protected]> ---- - libweston/renderer-gl/gl-renderer-internal.h | 2 ++ - libweston/renderer-gl/gl-renderer.c | 29 ++++++++++++++++---- - 2 files changed, 26 insertions(+), 5 deletions(-) - -diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h -index 72101b47..7a6e2f48 100644 ---- a/libweston/renderer-gl/gl-renderer-internal.h -+++ b/libweston/renderer-gl/gl-renderer-internal.h -@@ -133,6 +133,8 @@ struct gl_renderer { - PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; - bool has_platform_base; - -+ bool has_unpack_subimage; -+ - PFNEGLBINDWAYLANDDISPLAYWL bind_display; - PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; - PFNEGLQUERYWAYLANDBUFFERWL query_buffer; -diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c -index a5f5eae4..410ba85c 100644 ---- a/libweston/renderer-gl/gl-renderer.c -+++ b/libweston/renderer-gl/gl-renderer.c -@@ -1835,6 +1835,7 @@ gl_renderer_flush_damage(struct weston_surface *surface) - { - const struct weston_testsuite_quirks *quirks = - &surface->compositor->test_data.test_quirks; -+ struct gl_renderer *gr = get_renderer(surface->compositor); - struct gl_surface_state *gs = get_surface_state(surface); - struct weston_buffer *buffer = gs->buffer_ref.buffer; - struct weston_view *view; -@@ -1872,6 +1873,24 @@ gl_renderer_flush_damage(struct weston_surface *surface) - - glActiveTexture(GL_TEXTURE0); - -+ if (!gr->has_unpack_subimage) { -+ wl_shm_buffer_begin_access(buffer->shm_buffer); -+ for (j = 0; j < gs->num_textures; j++) { -+ glBindTexture(GL_TEXTURE_2D, gs->textures[j]); -+ glTexImage2D(GL_TEXTURE_2D, 0, -+ gs->gl_format[j], -+ gs->pitch / gs->hsub[j], -+ buffer->height / gs->vsub[j], -+ 0, -+ gl_format_from_internal(gs->gl_format[j]), -+ gs->gl_pixel_type, -+ data + gs->offset[j]); -+ } -+ wl_shm_buffer_end_access(buffer->shm_buffer); -+ -+ goto done; -+ } -+ - if (gs->needs_full_upload || quirks->gl_force_full_upload) { - glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT, 0); - glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, 0); -@@ -3932,11 +3951,9 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - else - ec->read_format = PIXMAN_a8b8g8r8; - -- if (gr->gl_version < gr_gl_version(3, 0) && -- !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { -- weston_log("GL_EXT_unpack_subimage not available.\n"); -- return -1; -- } -+ if (gr->gl_version >= gr_gl_version(3, 0) || -+ weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) -+ gr->has_unpack_subimage = true; - - if (gr->gl_version >= gr_gl_version(3, 0) || - weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) -@@ -3977,6 +3994,8 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - gr_gl_version_minor(gr->gl_version)); - weston_log_continue(STAMP_SPACE "read-back format: %s\n", - ec->read_format == PIXMAN_a8r8g8b8 ? "BGRA" : "RGBA"); -+ weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", -+ gr->has_unpack_subimage ? "yes" : "no"); - weston_log_continue(STAMP_SPACE "EGL Wayland extension: %s\n", - gr->has_bind_display ? "yes" : "no");meta-arago-distro/recipes-graphics/wayland/weston_10.0.2.bbappend +0
-1@@ -7,5 +7,4 @@ SRC_URI += " \ file://0003-weston-Fix-virtual-keyboard-display-issue-for-QT5-ap.patch \ file://0004-weston-Fix-touch-screen-crash-issue.patch \ file://0001-backend-drm-Select-plane-based-on-current-attached-C.patch \ - file://0001-Revert-require-GL_EXT_unpack_subimage-commit.patch \ "
Re: [meta-arago] [master/kirkstone][PATCH 2/2] weston: drop patch reverting GL_EXT_unpack_subimage requirement
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
With the updated graphics recipes in meta-ti this hack is no longer needed.
Did you test that? What board and with what program?
If I remember correctly, there was a build failure in the past with newer Weston complaining that the extenstion does not exist in the old binary DDK. Since I haven't seen this failure with the updated Mesa-based graphics stack, I assumed that is now resolved.
My testing was mostly with Rogue and I see in the commit log that this is specific to SGX, which currently builds full software-rendering stack w/o any HW acceleration.
Is this extension a pure software implementation in Mesa or does it require corresponding HW support? If the latter, then we definitely still need this revert and my patch removing it can be dropped.
Quoted 113 lines
Quoted 113 lines
Signed-off-by Denys Dmytriyenko <[email protected]>--- ...equire-GL_EXT_unpack_subimage-commit.patch | 90 ------------------- .../wayland/weston_10.0.2.bbappend | 1 - 2 files changed, 91 deletions(-) delete mode 100644 meta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patchmeta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch deleted +0
-90@@ -1,90 +0,0 @@ -From 6558a9153cc81199146132041c61023a2c2e1b2e Mon Sep 17 00:00:00 2001 -From: Andrew Davis <[email protected]> -Date: Thu, 6 Oct 2022 15:49:31 -0500 -Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit - -This reverts commit 593d5af43a8e2c2a3371088fa7ae430d0517c82d. - -That commit removed support for GPU drivers without GL_EXT_unpack_subimage -which SGX does not support. Add back support for GPUs without this -extension. - -Signed-off-by: Andrew Davis <[email protected]> ---- - libweston/renderer-gl/gl-renderer-internal.h | 2 ++ - libweston/renderer-gl/gl-renderer.c | 29 ++++++++++++++++---- - 2 files changed, 26 insertions(+), 5 deletions(-) - -diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h -index 72101b47..7a6e2f48 100644 ---- a/libweston/renderer-gl/gl-renderer-internal.h -+++ b/libweston/renderer-gl/gl-renderer-internal.h -@@ -133,6 +133,8 @@ struct gl_renderer { - PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; - bool has_platform_base; - -+ bool has_unpack_subimage; -+ - PFNEGLBINDWAYLANDDISPLAYWL bind_display; - PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; - PFNEGLQUERYWAYLANDBUFFERWL query_buffer; -diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c -index a5f5eae4..410ba85c 100644 ---- a/libweston/renderer-gl/gl-renderer.c -+++ b/libweston/renderer-gl/gl-renderer.c -@@ -1835,6 +1835,7 @@ gl_renderer_flush_damage(struct weston_surface *surface) - { - const struct weston_testsuite_quirks *quirks = - &surface->compositor->test_data.test_quirks; -+ struct gl_renderer *gr = get_renderer(surface->compositor); - struct gl_surface_state *gs = get_surface_state(surface); - struct weston_buffer *buffer = gs->buffer_ref.buffer; - struct weston_view *view; -@@ -1872,6 +1873,24 @@ gl_renderer_flush_damage(struct weston_surface *surface) - - glActiveTexture(GL_TEXTURE0); - -+ if (!gr->has_unpack_subimage) { -+ wl_shm_buffer_begin_access(buffer->shm_buffer); -+ for (j = 0; j < gs->num_textures; j++) { -+ glBindTexture(GL_TEXTURE_2D, gs->textures[j]); -+ glTexImage2D(GL_TEXTURE_2D, 0, -+ gs->gl_format[j], -+ gs->pitch / gs->hsub[j], -+ buffer->height / gs->vsub[j], -+ 0, -+ gl_format_from_internal(gs->gl_format[j]), -+ gs->gl_pixel_type, -+ data + gs->offset[j]); -+ } -+ wl_shm_buffer_end_access(buffer->shm_buffer); -+ -+ goto done; -+ } -+ - if (gs->needs_full_upload || quirks->gl_force_full_upload) { - glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT, 0); - glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, 0); -@@ -3932,11 +3951,9 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - else - ec->read_format = PIXMAN_a8b8g8r8; - -- if (gr->gl_version < gr_gl_version(3, 0) && -- !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { -- weston_log("GL_EXT_unpack_subimage not available.\n"); -- return -1; -- } -+ if (gr->gl_version >= gr_gl_version(3, 0) || -+ weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) -+ gr->has_unpack_subimage = true; - - if (gr->gl_version >= gr_gl_version(3, 0) || - weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) -@@ -3977,6 +3994,8 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - gr_gl_version_minor(gr->gl_version)); - weston_log_continue(STAMP_SPACE "read-back format: %s\n", - ec->read_format == PIXMAN_a8r8g8b8 ? "BGRA" : "RGBA"); -+ weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", -+ gr->has_unpack_subimage ? "yes" : "no"); - weston_log_continue(STAMP_SPACE "EGL Wayland extension: %s\n", - gr->has_bind_display ? "yes" : "no");meta-arago-distro/recipes-graphics/wayland/weston_10.0.2.bbappend +0
-1@@ -7,5 +7,4 @@ SRC_URI += " \ file://0003-weston-Fix-virtual-keyboard-display-issue-for-QT5-ap.patch \ file://0004-weston-Fix-touch-screen-crash-issue.patch \ file://0001-backend-drm-Select-plane-based-on-current-attached-C.patch \ - file://0001-Revert-require-GL_EXT_unpack_subimage-commit.patch \ "
Re: [meta-arago] [master/kirkstone][PATCH 2/2] weston: drop patch reverting GL_EXT_unpack_subimage requirement
Quoted 13 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
With the updated graphics recipes in meta-ti this hack is no longer needed.
Did you test that? What board and with what program?
If I remember correctly, there was a build failure in the past with newer Weston complaining that the extenstion does not exist in the old binary DDK. Since I haven't seen this failure with the updated Mesa-based graphics stack, I assumed that is now resolved.
Quoted 8 lines
My testing was mostly with Rogue and I see in the commit log that this is specific to SGX, which currently builds full software-rendering stack w/o any HW acceleration.
Is this extension a pure software implementation in Mesa or does it require corresponding HW support? If the latter, then we definitely still need this revert and my patch removing it can be dropped.
Unfortunately it needs to be handled in the GPU driver on the UM side, so not something Mesa can fix for us. And the error only shows up as a runtime issue when you try to start Weston and it sees the extension is not available.
We will need to keep this patch until someone can add the software emulation of this function inside the SGX UM driver. It is on my todo list for someday..
Andrew
Quoted 114 lines
Quoted 114 lines
Quoted 114 lines
Signed-off-by Denys Dmytriyenko <[email protected]>--- ...equire-GL_EXT_unpack_subimage-commit.patch | 90 ------------------- .../wayland/weston_10.0.2.bbappend | 1 - 2 files changed, 91 deletions(-)delete mode 100644
meta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patchmeta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch deleted +0
-90@@ -1,90 +0,0 @@ -From 6558a9153cc81199146132041c61023a2c2e1b2e Mon Sep 17 00:00:00 2001 -From: Andrew Davis <[email protected]> -Date: Thu, 6 Oct 2022 15:49:31 -0500 -Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit - -This reverts commit 593d5af43a8e2c2a3371088fa7ae430d0517c82d. - -That commit removed support for GPU drivers without GL_EXT_unpack_subimage -which SGX does not support. Add back support for GPUs without this -extension. - -Signed-off-by: Andrew Davis <[email protected]> ---- - libweston/renderer-gl/gl-renderer-internal.h | 2 ++ - libweston/renderer-gl/gl-renderer.c | 29 ++++++++++++++++---- - 2 files changed, 26 insertions(+), 5 deletions(-) - -diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h -index 72101b47..7a6e2f48 100644 ---- a/libweston/renderer-gl/gl-renderer-internal.h -+++ b/libweston/renderer-gl/gl-renderer-internal.h -@@ -133,6 +133,8 @@ struct gl_renderer { - PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; - bool has_platform_base; - -+ bool has_unpack_subimage; -+ - PFNEGLBINDWAYLANDDISPLAYWL bind_display; - PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; - PFNEGLQUERYWAYLANDBUFFERWL query_buffer; -diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c -index a5f5eae4..410ba85c 100644 ---- a/libweston/renderer-gl/gl-renderer.c -+++ b/libweston/renderer-gl/gl-renderer.c -@@ -1835,6 +1835,7 @@ gl_renderer_flush_damage(struct weston_surface *surface) - { - const struct weston_testsuite_quirks *quirks = - &surface->compositor->test_data.test_quirks; -+ struct gl_renderer *gr = get_renderer(surface->compositor); - struct gl_surface_state *gs = get_surface_state(surface); - struct weston_buffer *buffer = gs->buffer_ref.buffer; - struct weston_view *view; -@@ -1872,6 +1873,24 @@ gl_renderer_flush_damage(struct weston_surface *surface) - - glActiveTexture(GL_TEXTURE0); - -+ if (!gr->has_unpack_subimage) { -+ wl_shm_buffer_begin_access(buffer->shm_buffer); -+ for (j = 0; j < gs->num_textures; j++) { -+ glBindTexture(GL_TEXTURE_2D, gs->textures[j]); -+ glTexImage2D(GL_TEXTURE_2D, 0, -+ gs->gl_format[j], -+ gs->pitch / gs->hsub[j], -+ buffer->height / gs->vsub[j], -+ 0, -+ gl_format_from_internal(gs->gl_format[j]), -+ gs->gl_pixel_type, -+ data + gs->offset[j]); -+ } -+ wl_shm_buffer_end_access(buffer->shm_buffer); -+ -+ goto done; -+ } -+ - if (gs->needs_full_upload || quirks->gl_force_full_upload) { - glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT, 0); - glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, 0); -@@ -3932,11 +3951,9 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - else - ec->read_format = PIXMAN_a8b8g8r8; - -- if (gr->gl_version < gr_gl_version(3, 0) && -- !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { -- weston_log("GL_EXT_unpack_subimage not available.\n"); -- return -1; -- } -+ if (gr->gl_version >= gr_gl_version(3, 0) || -+ weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) -+ gr->has_unpack_subimage = true; - - if (gr->gl_version >= gr_gl_version(3, 0) || - weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) -@@ -3977,6 +3994,8 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - gr_gl_version_minor(gr->gl_version)); - weston_log_continue(STAMP_SPACE "read-back format: %s\n", - ec->read_format == PIXMAN_a8r8g8b8 ? "BGRA" : "RGBA"); -+ weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", -+ gr->has_unpack_subimage ? "yes" : "no"); - weston_log_continue(STAMP_SPACE "EGL Wayland extension: %s\n", - gr->has_bind_display ? "yes" : "no");meta-arago-distro/recipes-graphics/wayland/weston_10.0.2.bbappend +0
-1@@ -7,5 +7,4 @@ SRC_URI += " \ file://0003-weston-Fix-virtual-keyboard-display-issue-for-QT5-ap.patch \ file://0004-weston-Fix-touch-screen-crash-issue.patch \ file://0001-backend-drm-Select-plane-based-on-current-attached-C.patch \ - file://0001-Revert-require-GL_EXT_unpack_subimage-commit.patch \ "
Re: [meta-arago] [master/kirkstone][PATCH 2/2] weston: drop patch reverting GL_EXT_unpack_subimage requirement
Quoted 23 lines · Andrew Davis
Quoted 13 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
With the updated graphics recipes in meta-ti this hack is no longer needed.
Did you test that? What board and with what program?
If I remember correctly, there was a build failure in the past with newer Weston complaining that the extenstion does not exist in the old binary DDK. Since I haven't seen this failure with the updated Mesa-based graphics stack, I assumed that is now resolved.
Quoted 8 lines
My testing was mostly with Rogue and I see in the commit log that this is specific to SGX, which currently builds full software-rendering stack w/o any HW acceleration.
Is this extension a pure software implementation in Mesa or does it require corresponding HW support? If the latter, then we definitely still need this revert and my patch removing it can be dropped.
Quoted 6 lines
Unfortunately it needs to be handled in the GPU driver on the UM side, so not something Mesa can fix for us. And the error only shows up as a runtime issue when you try to start Weston and it sees the extension is not available.
We will need to keep this patch until someone can add the software emulation of this function inside the SGX UM driver. It is on my todo list for someday..
Andrew,
Thanks for confirming.
Ryan,
We still need Andrew's revert, please drop my patch from the queue. Thanks.
Signature · 1 line
Denys
Re: [meta-arago] [master/kirkstone][PATCH 2/2] weston: drop patch reverting GL_EXT_unpack_subimage requirement
Quoted 31 lines · Denys Dmytriyenko
Quoted 23 lines · Andrew Davis
Quoted 13 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
With the updated graphics recipes in meta-ti this hack is no longer needed.
Did you test that? What board and with what program?
If I remember correctly, there was a build failure in the past with newer Weston complaining that the extenstion does not exist in the old binary DDK. Since I haven't seen this failure with the updated Mesa-based graphics stack, I assumed that is now resolved.
Quoted 8 lines
My testing was mostly with Rogue and I see in the commit log that this is specific to SGX, which currently builds full software-rendering stack w/o any HW acceleration.
Is this extension a pure software implementation in Mesa or does it require corresponding HW support? If the latter, then we definitely still need this revert and my patch removing it can be dropped.
Quoted 6 lines
Unfortunately it needs to be handled in the GPU driver on the UM side, so not something Mesa can fix for us. And the error only shows up as a runtime issue when you try to start Weston and it sees the extension is not available.
We will need to keep this patch until someone can add the software emulation of this function inside the SGX UM driver. It is on my todo list for someday..
Quoted 7 lines
Andrew,
Thanks for confirming.
Ryan,
We still need Andrew's revert, please drop my patch from the queue. Thanks.
Roger that.
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [meta-arago] [master/kirkstone][PATCH 2/2] weston: drop patch reverting GL_EXT_unpack_subimage requirement
And now for a fun development, the patch in question no longer applies cleanly on master...
Quoted 45 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 31 lines · Denys Dmytriyenko
Quoted 23 lines · Andrew Davis
Quoted 13 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
With the updated graphics recipes in meta-ti this hack is no longer needed.
Did you test that? What board and with what program?
If I remember correctly, there was a build failure in the past with newer Weston complaining that the extenstion does not exist in the old binary DDK. Since I haven't seen this failure with the updated Mesa-based graphics stack, I assumed that is now resolved.
Quoted 8 lines
My testing was mostly with Rogue and I see in the commit log that this is specific to SGX, which currently builds full software-rendering stack w/o any HW acceleration.
Is this extension a pure software implementation in Mesa or does it require corresponding HW support? If the latter, then we definitely still need this revert and my patch removing it can be dropped.
Quoted 6 lines
Unfortunately it needs to be handled in the GPU driver on the UM side, so not something Mesa can fix for us. And the error only shows up as a runtime issue when you try to start Weston and it sees the extension is not available.
We will need to keep this patch until someone can add the software emulation of this function inside the SGX UM driver. It is on my todo list for someday..
Quoted 7 lines
Andrew,
Thanks for confirming.
Ryan,
We still need Andrew's revert, please drop my patch from the queue. Thanks.
Roger that.
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Re: [EXTERNAL] Re: [meta-arago] [master/kirkstone][PATCH 2/2] weston: drop patch reverting GL_EXT_unpack_subimage requirement
If SGX patches are stalling builds drop them. I'll add them back in when we get SGX fully functional. I don't see all of these patches being necessary now that my pvr-dri work has been approved. It'll make more sense to pull them as we need them later.
Quoted 66 lines · Ryan Eatmon via lists.yoctoproject.org
And now for a fun development, the patch in question no longer applies cleanly on master...
Quoted 36 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 33 lines · Denys Dmytriyenko
Quoted 23 lines · Andrew Davis
Quoted 13 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected] <mailto:[email protected]>>
With the updated graphics recipes in meta-ti this hack is no longer needed.
Did you test that? What board and with what program?
If I remember correctly, there was a build failure in the past with newer Weston complaining that the extenstion does not exist in the old binary DDK. Since I haven't seen this failure with the updated Mesa-based graphics stack, I assumed that is now resolved.
Quoted 8 lines
My testing was mostly with Rogue and I see in the commit log that this is specific to SGX, which currently builds full software-rendering stack w/o any HW acceleration.
Is this extension a pure software implementation in Mesa or does it require corresponding HW support? If the latter, then we definitely still need this revert and my patch removing it can be dropped.
Quoted 6 lines
Unfortunately it needs to be handled in the GPU driver on the UM side, so not something Mesa can fix for us. And the error only shows up as a runtime issue when you try to start Weston and it sees the extension is not available.
We will need to keep this patch until someone can add the software emulation of this function inside the SGX UM driver. It is on my todo list for someday..
Andrew,
Quoted 9 lines
Quoted 5 lines
Thanks for confirming.
Ryan,
We still need Andrew's revert, please drop my patch from the queue. Thanks.
Roger that.
--
Ryan Eatmon [email protected] <mailto:[email protected]>
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14242): <https://lists.yoctoproject.org/g/meta-arago/message/14242>
Mute This Topic: <https://lists.yoctoproject.org/mt/97203204/7094281>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.yoctoproject.org/g/meta-arago/leave/11554122/7094281/459377185/xyzzy> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-