diff options
author | Ryan Eatmon <reatmon@ti.com> | 2025-05-29 15:38:33 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-05-29 15:39:45 -0500 |
commit | 21b6a15594f15dc90c86b2ec9a7e3dc5b91de0c4 (patch) | |
tree | 0745c66fb96c8e5dfb423903cbb3ba6659eefd67 | |
parent | ca00f2045a3538d1bd1669accea5394d3e12d8d4 (diff) | |
download | meta-ti-21b6a15594f15dc90c86b2ec9a7e3dc5b91de0c4.tar.gz |
mesa-pvr: fold GL ES 3 packages into GL ES 2 ones
This is a sideport of a patch against mesa in oe-core [1].
OpenGL ES 3 is closely tied to the OpenGL ES 2: there is no separate
library, one can use GL ES 2 headers for GL ES 3 app, etc. Instead of
having separate packages, merge GL ES 3 packages into GL ES 2 ones.
[1] https://git.openembedded.org/openembedded-core/commit/?id=7c0e9c170db93d9af7cc505dcd71c4f3d6c4e9c5
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc index 471475ff..45d5ada3 100644 --- a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc | |||
@@ -228,17 +228,10 @@ CFLAGS:append:armv6 = " -DMISSING_64BIT_ATOMICS" | |||
228 | # Remove the mesa dependency on mesa-dev, as mesa is empty | 228 | # Remove the mesa dependency on mesa-dev, as mesa is empty |
229 | DEV_PKG_DEPENDENCY = "" | 229 | DEV_PKG_DEPENDENCY = "" |
230 | 230 | ||
231 | # Khronos documentation says that include/GLES2/gl2ext.h can be used for | ||
232 | # OpenGL ES 3 specification as well as for OpenGL ES 2. | ||
233 | # There can be applications including GLES2/gl2ext.h instead of GLES3/gl3ext.h | ||
234 | # meaning we should probably bring in GLES2/gl2ext.h if someone asks for | ||
235 | # development package of libgles3. | ||
236 | RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev" | ||
237 | |||
238 | # GLES2 and GLES3 implementations are packaged in a single library in libgles2-mesa. | 231 | # GLES2 and GLES3 implementations are packaged in a single library in libgles2-mesa. |
239 | # Add a dependency so the GLES3 dev package is associated with its implementation. | 232 | # Add a dependency so the GLES3 dev package is associated with its implementation. |
240 | RDEPENDS:libgles2-mesa += "libgles3-mesa" | 233 | RPROVIDES:libgles2-mesa += "libgles3-mesa" |
241 | ALLOW_EMPTY:libgles3-mesa = "1" | 234 | RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev" |
242 | 235 | ||
243 | RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools', '', d)}" | 236 | RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools', '', d)}" |
244 | 237 | ||
@@ -250,7 +243,6 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | |||
250 | libgbm libgbm-dev \ | 243 | libgbm libgbm-dev \ |
251 | libgles1-mesa libgles1-mesa-dev \ | 244 | libgles1-mesa libgles1-mesa-dev \ |
252 | libgles2-mesa libgles2-mesa-dev \ | 245 | libgles2-mesa libgles2-mesa-dev \ |
253 | libgles3-mesa libgles3-mesa-dev \ | ||
254 | libopencl-mesa libopencl-mesa-dev \ | 246 | libopencl-mesa libopencl-mesa-dev \ |
255 | libxatracker libxatracker-dev \ | 247 | libxatracker libxatracker-dev \ |
256 | mesa-megadriver mesa-vulkan-drivers \ | 248 | mesa-megadriver mesa-vulkan-drivers \ |
@@ -288,8 +280,7 @@ python __anonymous() { | |||
288 | ("opengl", "libgl", "libgl1"), | 280 | ("opengl", "libgl", "libgl1"), |
289 | ("glvnd", "libglx",), | 281 | ("glvnd", "libglx",), |
290 | ("gles", "libgles1", "libglesv1-cm1"), | 282 | ("gles", "libgles1", "libglesv1-cm1"), |
291 | ("gles", "libgles2", "libglesv2-2"), | 283 | ("gles", "libgles2", "libglesv2-2", "libgles3"), |
292 | ("gles", "libgles3",), | ||
293 | ("opencl", "libopencl",)): | 284 | ("opencl", "libopencl",)): |
294 | if not p[0] in pkgconfig: | 285 | if not p[0] in pkgconfig: |
295 | continue | 286 | continue |
@@ -363,8 +354,7 @@ FILES:libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/g | |||
363 | FILES:libglx-mesa-dev = "${libdir}/libGLX*.*" | 354 | FILES:libglx-mesa-dev = "${libdir}/libGLX*.*" |
364 | FILES:libglapi-dev = "${libdir}/libglapi.*" | 355 | FILES:libglapi-dev = "${libdir}/libglapi.*" |
365 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" | 356 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" |
366 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" | 357 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${includedir}/GLES3 ${libdir}/pkgconfig/glesv2.pc" |
367 | FILES:libgles3-mesa-dev = "${includedir}/GLES3" | ||
368 | FILES:libopencl-mesa-dev = "${libdir}/libMesaOpenCL.so" | 358 | FILES:libopencl-mesa-dev = "${libdir}/libMesaOpenCL.so" |
369 | FILES:libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc" | 359 | FILES:libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc" |
370 | FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ | 360 | FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ |