summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-05-22 11:28:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-27 17:06:34 +0100
commit1e1e6c080345bb8bc45e769b6d3d7cc4cdd452d9 (patch)
treec350d6469d4db7f57dd75ab7a76cb48f4ebe9066 /meta/recipes-graphics/mesa/mesa.inc
parent2c0f37d2da3e662dd81b62b911e8135cc7e4b98f (diff)
downloadpoky-1e1e6c080345bb8bc45e769b6d3d7cc4cdd452d9.tar.gz
mesa: Fix a case when gbm is enabled but DRIDRIVERS is not defined
This is a typical scenario with arm platforms, with meson if DRIDRIVERS is empty then dri is disabled automatically, but gbm needs dri2 enabled for it to have proper backend, in autotools we could use --enable-gbm --enable-dri and get correct behaviour but with meson enabling dri2 only works if DRIDRIVERS is not empty This fixes mesa-gl build for rpi machines when using userland graphics (From OE-Core rev: 0c670a0fad379c3dc2a69ac5abfeaceda98a2f9c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa.inc')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index cd3ddfd822..3ecfb8506c 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -70,7 +70,7 @@ DRIDRIVERS_class-nativesdk = "swrast"
70DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915" 70DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
71DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915" 71DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
72# "dri" requires "opengl" 72# "dri" requires "opengl"
73PACKAGECONFIG[dri] = "-Ddri-drivers=${DRIDRIVERS}, -Ddri-drivers='', xorgproto libdrm" 73PACKAGECONFIG[dri] = "-Ddri=true -Ddri-drivers=${DRIDRIVERS}, -Ddri=false -Ddri-drivers='', xorgproto libdrm"
74PACKAGECONFIG[dri3] = "-Ddri3=true, -Ddri3=false, xorgproto libxshmfence" 74PACKAGECONFIG[dri3] = "-Ddri3=true, -Ddri3=false, xorgproto libxshmfence"
75 75
76# Vulkan drivers need dri3 enabled 76# Vulkan drivers need dri3 enabled