summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/imx-gpu-viv
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2023-06-06 12:23:55 -0700
committerTom Hochstein <tom.hochstein@nxp.com>2023-06-06 12:23:55 -0700
commit9ae360684dd691a5630e16d7aa4256457806759c (patch)
treec43604c12524b95b6c25f4f136d328947e13c3a6 /recipes-graphics/imx-gpu-viv
parent8995442f5432852a0313d83eb5fbc0fbd9e1c595 (diff)
downloadmeta-freescale-9ae360684dd691a5630e16d7aa4256457806759c.tar.gz
imx-gpu-viv: Add runtime dependency for OpenCL VX Intrinsic Extension
The OpenCL implementation includes an extension for VX Intrinsics. To use it, an app requires the CL compiler and /usr/include/CL/cl_viv_vx_ext.h, so add the appropriate runtime dependency to libopenvx-imx. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-graphics/imx-gpu-viv')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc11
1 files changed, 5 insertions, 6 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index 94d70564..875cd511 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -188,10 +188,6 @@ IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp"
188 188
189LIBVULKAN_API_VERSION = "1.2.182" 189LIBVULKAN_API_VERSION = "1.2.182"
190 190
191SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION = "false"
192SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION:mx8qm-nxp-bsp = "true"
193SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION:mx8mp-nxp-bsp = "true"
194
195do_install () { 191do_install () {
196 install -d ${D}${libdir} 192 install -d ${D}${libdir}
197 install -d ${D}${includedir} 193 install -d ${D}${includedir}
@@ -262,7 +258,7 @@ do_install () {
262 install -d ${D}${sysconfdir}/OpenCL/vendors/ 258 install -d ${D}${sysconfdir}/OpenCL/vendors/
263 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd 259 install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd
264 260
265 if ! ${SUPPORTS_OPENCL_VX_INTRINSIC_EXTENSION}; then 261 if [ "${OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES}" = "" ]; then
266 rm -f ${D}${includedir}/CL/cl_viv_vx_ext.h 262 rm -f ${D}${includedir}/CL/cl_viv_vx_ext.h
267 fi 263 fi
268 fi 264 fi
@@ -373,7 +369,10 @@ FILES:libopenvx-imx = " \
373 ${libdir}/libArchModelSw${SOLIBS} \ 369 ${libdir}/libArchModelSw${SOLIBS} \
374" 370"
375FILES:libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}" 371FILES:libopenvx-imx-dev = "${includedir}/VX ${libdir}/libOpenVX${SOLIBSDEV}"
376RDEPENDS:libopenvx-imx = "libnn-imx" 372RDEPENDS:libopenvx-imx = "libnn-imx ${OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES}"
373OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES = ""
374OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8qm-nxp-bsp = "libclc-imx libopencl-imx-dev"
375OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8mp-nxp-bsp = "libclc-imx libopencl-imx-dev"
377 376
378# libGL is only targeting X11 backend, and in case if Wayland-only is used - 377# libGL is only targeting X11 backend, and in case if Wayland-only is used -
379# package QA complains on missing RDEPENDS, which are only available for X11. 378# package QA complains on missing RDEPENDS, which are only available for X11.