summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2024-03-19 16:26:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-20 18:20:38 +0000
commit181f8d101bcc669cedd76524dc216d39d281c789 (patch)
tree63725ed0fc739f8b3459fdeb07ce4a3b1884af32
parent38fa6d08d290848c2e10edc421c1454b8f68b1f8 (diff)
downloadpoky-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.inc6
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"
114VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" 114VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
115VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" 115VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}"
116VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}" 116VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}"
117VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination-experimental', '', d)}"
117PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers" 118PACKAGECONFIG[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', '',
123TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" 124TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
124TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" 125TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}"
125TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" 126TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}"
127TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination', '', d)}"
126 128
127# dependencies for tools. 129# dependencies for tools.
128TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ' ncurses libxml2 ', '', d)}" 130TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ' ncurses libxml2 ', '', d)}"
@@ -190,6 +192,8 @@ PACKAGECONFIG[xa] = "-Dgallium-xa=enabled, -Dgallium-xa=disabled"
190PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial" 192PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial"
191PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" 193PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau"
192 194
195PACKAGECONFIG[imagination] = "-Dimagination-srv=true,-Dimagination-srv=false"
196
193PACKAGECONFIG[lima] = "" 197PACKAGECONFIG[lima] = ""
194GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" 198GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}"
195 199
@@ -328,7 +332,7 @@ PACKAGES_DYNAMIC += "^mesa-driver-.*"
328PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native" 332PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native"
329 333
330FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d" 334FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d"
331FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" 335FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${libdir}/libpowervr_rogue.so ${datadir}/vulkan"
332FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*" 336FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*"
333FILES:libegl-mesa = "${libdir}/libEGL*.so.* ${datadir}/glvnd/egl_vendor.d" 337FILES:libegl-mesa = "${libdir}/libEGL*.so.* ${datadir}/glvnd/egl_vendor.d"
334FILES:libgbm = "${libdir}/libgbm.so.*" 338FILES:libgbm = "${libdir}/libgbm.so.*"