diff options
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | 15 | ||||
-rw-r--r-- | recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json | 7 |
2 files changed, 19 insertions, 3 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 4cbb7ba6..5c4b68cc 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |||
@@ -68,7 +68,8 @@ PE = "1" | |||
68 | 68 | ||
69 | inherit fsl-eula-unpack | 69 | inherit fsl-eula-unpack |
70 | 70 | ||
71 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" | 71 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \ |
72 | file://imx_icd.json" | ||
72 | 73 | ||
73 | PACKAGECONFIG ?= "" | 74 | PACKAGECONFIG ?= "" |
74 | 75 | ||
@@ -177,7 +178,8 @@ IMX_SOC:mx8mn-nxp-bsp = "mx8mn" | |||
177 | IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" | 178 | IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" |
178 | 179 | ||
179 | LIBVULKAN_VERSION_MAJOR = "1" | 180 | LIBVULKAN_VERSION_MAJOR = "1" |
180 | LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.1" | 181 | LIBVULKAN_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.1" |
182 | LIBVULKAN_API_VERSION = "${LIBVULKAN_VERSION_MAJOR}.2.182" | ||
181 | 183 | ||
182 | do_install () { | 184 | do_install () { |
183 | install -d ${D}${libdir} | 185 | install -d ${D}${libdir} |
@@ -271,6 +273,10 @@ do_install () { | |||
271 | set +f | 273 | set +f |
272 | rm -rf ${D}$f | 274 | rm -rf ${D}$f |
273 | done | 275 | done |
276 | else | ||
277 | install -Dm 0644 ${WORKDIR}/imx_icd.json ${D}${sysconfdir}/vulkan/icd.d/imx_icd.json | ||
278 | sed -i "s,%libdir%,${libdir}," ${D}${sysconfdir}/vulkan/icd.d/imx_icd.json | ||
279 | sed -i "s,%api_version%,${LIBVULKAN_API_VERSION}," ${D}${sysconfdir}/vulkan/icd.d/imx_icd.json | ||
274 | fi | 280 | fi |
275 | fi | 281 | fi |
276 | 282 | ||
@@ -342,7 +348,10 @@ FILES:libgbm-imx-dev = "${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" | |||
342 | RDEPENDS:libgbm-imx:append = " libdrm" | 348 | RDEPENDS:libgbm-imx:append = " libdrm" |
343 | INSANE_SKIP:libgbm-imx += "dev-so" | 349 | INSANE_SKIP:libgbm-imx += "dev-so" |
344 | 350 | ||
345 | FILES:libvulkan-imx = "${libdir}/libvulkan_VSI${REALSOLIBS} ${libdir}/libSPIRV_viv${SOLIBS}" | 351 | FILES:libvulkan-imx = "\ |
352 | ${libdir}/libvulkan_VSI${REALSOLIBS} \ | ||
353 | ${libdir}/libSPIRV_viv${SOLIBS} \ | ||
354 | ${sysconfdir}/vulkan" | ||
346 | FILES:libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" | 355 | FILES:libvulkan-imx-dev = "${includedir}/vulkan ${libdir}/libvulkan_VSI${SOLIBSDEV}" |
347 | 356 | ||
348 | FILES:libopenvx-imx = " \ | 357 | FILES:libopenvx-imx = " \ |
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json new file mode 100644 index 00000000..1194a0fb --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json | |||
@@ -0,0 +1,7 @@ | |||
1 | { | ||
2 | "file_format_version": "1.0.0", | ||
3 | "ICD": { | ||
4 | "library_path": "%libdir%/libvulkan_VSI.so", | ||
5 | "api_version": "%api_version%" | ||
6 | } | ||
7 | } | ||