diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2024-03-19 16:26:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-20 18:20:38 +0000 |
commit | 181f8d101bcc669cedd76524dc216d39d281c789 (patch) | |
tree | 63725ed0fc739f8b3459fdeb07ce4a3b1884af32 | |
parent | 38fa6d08d290848c2e10edc421c1454b8f68b1f8 (diff) | |
download | poky-181f8d101bcc669cedd76524dc216d39d281c789.tar.gz |
mesa: enable imagination powervr support
Allows mesa to be build with Imagination PowerVR support.
(From OE-Core rev: d52ba5f350dd1b468d089ed0bba2e17e6d89fb7d)
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index f5a6392d28..a8088e6fb6 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -114,6 +114,7 @@ VULKAN_DRIVERS:append:i686 = ",intel,amd" | |||
114 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | 114 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" |
115 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" | 115 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" |
116 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}" | 116 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}" |
117 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination-experimental', '', d)}" | ||
117 | PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers" | 118 | PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers" |
118 | 119 | ||
119 | # mesa development and testing tools support, per driver | 120 | # mesa development and testing tools support, per driver |
@@ -123,6 +124,7 @@ TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', | |||
123 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | 124 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" |
124 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" | 125 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" |
125 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" | 126 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" |
127 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination', '', d)}" | ||
126 | 128 | ||
127 | # dependencies for tools. | 129 | # dependencies for tools. |
128 | TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ' ncurses libxml2 ', '', d)}" | 130 | TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ' ncurses libxml2 ', '', d)}" |
@@ -190,6 +192,8 @@ PACKAGECONFIG[xa] = "-Dgallium-xa=enabled, -Dgallium-xa=disabled" | |||
190 | PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial" | 192 | PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial" |
191 | PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" | 193 | PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" |
192 | 194 | ||
195 | PACKAGECONFIG[imagination] = "-Dimagination-srv=true,-Dimagination-srv=false" | ||
196 | |||
193 | PACKAGECONFIG[lima] = "" | 197 | PACKAGECONFIG[lima] = "" |
194 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" | 198 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" |
195 | 199 | ||
@@ -328,7 +332,7 @@ PACKAGES_DYNAMIC += "^mesa-driver-.*" | |||
328 | PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native" | 332 | PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native" |
329 | 333 | ||
330 | FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d" | 334 | FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d" |
331 | FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" | 335 | FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${libdir}/libpowervr_rogue.so ${datadir}/vulkan" |
332 | FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*" | 336 | FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*" |
333 | FILES:libegl-mesa = "${libdir}/libEGL*.so.* ${datadir}/glvnd/egl_vendor.d" | 337 | FILES:libegl-mesa = "${libdir}/libEGL*.so.* ${datadir}/glvnd/egl_vendor.d" |
334 | FILES:libgbm = "${libdir}/libgbm.so.*" | 338 | FILES:libgbm = "${libdir}/libgbm.so.*" |