mesa-gl: Use swrast gallium driver
PATCH 1/1 mesa-gl: Use swrast gallium driver
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau"
--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1 -1
@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" # When NOT using X11, we need to make sure we have swrast available. -DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" +GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"
Signature · 1 line
2.31.1
Khem,
Doesn't seem to help for i.MX platforms (I'm aware of[1][2]). Which machines have you tried with this fix?
[1] https://github.com/Freescale/meta-freescale/issues/699
[2] https://github.com/Freescale/meta-freescale/pull/702
Quoted 22 lines · Khem Raj
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau"Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-1@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" # When NOT using X11, we need to make sure we have swrast available. -DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" +GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"Signature · 1 line
2.31.1
Signature · 4 lines
Regards, Denys Dmytriyenko <[email protected]> PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964 Fingerprint: 25FC E4A5 8A72 2F69 1186 6D76 4209 0272 9A92 C964
Quoted 5 lines · Denys Dmytriyenko
Khem,
Doesn't seem to help for i.MX platforms (I'm aware of[1][2]). Which machines have you tried with this fix?
rpi4, you need to fix mesa bbappend for meda in fsl layer perhaps.
Quoted 34 lines
[1] https://github.com/Freescale/meta-freescale/issues/699
[2] https://github.com/Freescale/meta-freescale/pull/702Quoted 20 lines · Khem Raj
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau"Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-2@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" # When NOT using X11, we need to make sure we have swrast available. -DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" +GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" --Quoted 2 lines
2.31.1
--
Regards,
Denys Dmytriyenko <[email protected]>
PGP:0x420902729A92C964- https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186 6D76 4209 0272 9A92 C964
Quoted 14 lines · Khem Raj
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau"Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 · line 15
Quoted 5 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-1@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" # When NOT using X11, we need to make sure we have swrast available. -DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" +GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"
With:DISTRO_FEATURES_remove = "x11" PREFERRED_PROVIDER_virtual/libgl = "mesa-gl" PREFERRED_PROVIDER_virtual/mesa = "mesa-gl"
in local.conf this is unfortunately still failing, now with:
../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system
whole log:
http://errors.yoctoproject.org/Errors/Details/575265/
adding nouveau to DRIDRIVERS like normal mesa doesn't help in this case, because I was building for qemux86-64 which already has bunch of DRIDRIVERS added by default (but adding at least one DRIDRIVER might be still needed for other architectures).
# $DRIDRIVERS [4 operations]
# _append[x86_class-target] /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:107
# ",r100,r200,nouveau,i965,i915"
# _append[x86-64_class-target] /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:108
# ",r100,r200,nouveau,i965,i915"
# override[class-native]:set /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:105
# "nouveau"
# override[class-nativesdk]:set /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:106
# "nouveau"
# pre-expansion value: # ",r100,r200,nouveau,i965,i915" DRIDRIVERS=",r100,r200,nouveau,i965,i915"
Reverting Alex's upgrade to 21.0.0 allows to build mesa-gl again and it should surely pass AB build :).
Quoted 30 lines · Martin Jansa
Quoted 14 lines · Khem Raj
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau"Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 · line 15
Quoted 5 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-1@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" # When NOT using X11, we need to make sure we have swrast available. -DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" +GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"With:
DISTRO_FEATURES_remove= "x11" PREFERRED_PROVIDER_virtual/libgl = "mesa-gl" PREFERRED_PROVIDER_virtual/mesa = "mesa-gl"
in local.conf this is unfortunately still failing, now with:../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system
Quoted 8 lines
whole log:
http://errors.yoctoproject.org/Errors/Details/575265/adding nouveau to DRIDRIVERS like normal mesa doesn't help in this case, because I was building for qemux86-64 which already has bunch of DRIDRIVERS added by default (but adding at least one DRIDRIVER might be still needed for other architectures).
classic OSMesa is removed and swrast gallium drivers are needed for osmsa to run could you also add below patch and try. ?
(quoted diff) +0 -0
b/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb
index fc8b4f7504..47b14fb97f 100644
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0 -0
@@ -8,8 +8,8 @@ S = "${WORKDIR}/mesa-${PV}"
# At least one DRI rendering engine is required to build mesa. # When no X11 is available, use osmesa for the rendering engine. -PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
-PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" +PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" +PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"
# When NOT using X11, we need to make sure we have swrast available. GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"
Quoted 14 lines
# $DRIDRIVERS [4 operations]
# _append[x86_class-target] /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:107
# ",r100,r200,nouveau,i965,i915"
# _append[x86-64_class-target] /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:108
# ",r100,r200,nouveau,i965,i915"
# override[class-native]:set /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:105
# "nouveau"
# override[class-nativesdk]:set /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:106
# "nouveau"# pre-expansion value: # ",r100,r200,nouveau,i965,i915" DRIDRIVERS=",r100,r200,nouveau,i965,i915"Reverting Alex's upgrade to 21.0.0 allows to build mesa-gl again and it should surely pass AB build :).
Unfortunately it still fails the same for qemux86* with this change.
Enabling wayland PACKAGECONFIG doesn't help as well.
Building for qemuarm with empty DRIDRIVERS does pass the do_configure with:
EXTRA_OEMESON=" -Dshared-glapi=enabled -Dgallium-opencl=disabled
-Dglx-read-only-text=true -Dplatforms='wayland' -Ddri-drivers=
-Ddri3=disabled -Degl=disabled -Delf-tls=false
-Dgallium-drivers=swrast,swrast -Dllvm=disabled -Dgbm=disabled -D gles1=disabled -Dgles2=disabled -Dopengl=true -Dosmesa=true -Dlibunwind=disabled -Dgallium-va=disabled -Dgallium-vdpau=disabled
-Dvulkan-drivers='' -Dglx=disabled -Dgallium-xa=disabled
-Dgallium-xvmc=disabled"
which is a bit surprising as mesa-gl_21.0.0.bb comment says:
# When NOT using X11, we need to make sure we have at least one driver enabled
and now the only build which isn't broken by the 21 upgrade is the one without any driver.
and x86 and x86-64 always enable some DRIDRIVERS in mesa.inc:
DRIDRIVERS_class-native = "nouveau" DRIDRIVERS_class-nativesdk = "nouveau" DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915" DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
Maybe this upgrade to development version 21.0.0 should be reverted and 21.0.1 should be merged after this meta-gl breakage is resolved somehow?
Quoted 98 lines · Khem Raj
Quoted 4 lines · Martin Jansa
Quoted 2 lines · Khem Raj
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not inallowed choices: "auto, i915, i965, r100, r200, nouveau"
Quoted 8 lines
Review
Quoted 8 lines
Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb
Quoted 4 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri
Quoted 4 lines
index
e50782be1c..fc8b4f7504100644meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 12
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0PACKAGECONFIG_class-target = "opengl dri${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
Quoted 3 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 14
Quoted 3 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-1# When NOT using X11, we need to make sure we have swrast available. -DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11','', ',swrast', d)}"
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 14
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-0+GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES','x11', '', ',swrast', d)}"
Quoted 8 lines
With:
DISTRO_FEATURES_remove= "x11" PREFERRED_PROVIDER_virtual/libgl = "mesa-gl" PREFERRED_PROVIDER_virtual/mesa = "mesa-gl"
in local.conf this is unfortunately still failing, now with:../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building
dri drivers require at least one windowing system
Quoted 7 lines
whole log:
http://errors.yoctoproject.org/Errors/Details/575265/adding nouveau to DRIDRIVERS like normal mesa doesn't help in this case, because I was building for qemux86-64 which already has bunch of DRIDRIVERS added by default (but adding at least one DRIDRIVER might be
still
Quoted 2 lines
needed for other architectures).
classic OSMesa is removed and swrast gallium drivers are needed for osmsa to run
could you also add below patch and try. ?meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-1@@ -8,8 +8,8 @@ S = "${WORKDIR}/mesa-${PV}" # At least one DRI rendering engine is required to build mesa. # When no X11 is available, use osmesa for the rendering engine. -PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES','x11', 'x11', 'osmesa', d)}"
-PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" +PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" +PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"# When NOT using X11, we need to make sure we have swrast available.
GALLIUMDRIVERS_append= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"Quoted 2 lines
# $DRIDRIVERS [4 operations]
# _append[x86_class-target]/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:107
Quoted 2 lines
# ",r100,r200,nouveau,i965,i915"
# _append[x86-64_class-target]/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:108
Quoted 2 lines
# ",r100,r200,nouveau,i965,i915"
# override[class-native]:set/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:105
Quoted 2 lines
# "nouveau"
# override[class-nativesdk]:set/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:106
Quoted 6 lines
# "nouveau"
# pre-expansion value: # ",r100,r200,nouveau,i965,i915" DRIDRIVERS=",r100,r200,nouveau,i965,i915"Reverting Alex's upgrade to 21.0.0 allows to build mesa-gl again and it
should surely pass AB build :).
yeah we need to start using nouveau dri driver perhaps instead of swrast
Quoted 105 lines · Martin Jansa
Unfortunately it still fails the same for qemux86* with this change.
Enabling wayland PACKAGECONFIG doesn't help as well.
Building for qemuarm with empty DRIDRIVERS does pass the
do_configurewith:
EXTRA_OEMESON=" -Dshared-glapi=enabled -Dgallium-opencl=disabled -Dglx-read-only-text=true -Dplatforms='wayland' -Ddri-drivers= -Ddri3=disabled -Degl=disabled -Delf-tls=false -Dgallium-drivers=swrast,swrast -Dllvm=disabled -Dgbm=disabled -D
gles1=disabled -Dgles2=disabled -Dopengl=true -Dosmesa=true -Dlibunwind=disabled -Dgallium-va=disabled -Dgallium-vdpau=disabled -Dvulkan-drivers='' -Dglx=disabled -Dgallium-xa=disabled -Dgallium-xvmc=disabled"which is a bit surprising as mesa-gl_21.0.0.bb comment says:
# When NOT using X11, we need to make sure we have at least one driver enabled and now the only build which isn't broken by the 21 upgrade is the one without any driver.and x86 and x86-64 always enable some DRIDRIVERS in mesa.inc:
DRIDRIVERS_class-native = "nouveau" DRIDRIVERS_class-nativesdk = "nouveau" DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915" DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"Maybe this upgrade to development version 21.0.0 should be reverted and 21.0.1 should be merged after this meta-gl breakage is resolved somehow?
Quoted 83 lines · Khem Raj
Quoted 30 lines · Martin Jansa
Quoted 14 lines · Khem Raj
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau"Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 · line 15
Quoted 5 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-1@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1 PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" # When NOT using X11, we need to make sure we have swrast available. -DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}" +GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"With:
DISTRO_FEATURES_remove= "x11" PREFERRED_PROVIDER_virtual/libgl = "mesa-gl" PREFERRED_PROVIDER_virtual/mesa = "mesa-gl"
in local.conf this is unfortunately still failing, now with:../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system
Quoted 8 lines
whole log:
http://errors.yoctoproject.org/Errors/Details/575265/adding nouveau to DRIDRIVERS like normal mesa doesn't help in this case, because I was building for qemux86-64 which already has bunch of DRIDRIVERS added by default (but adding at least one DRIDRIVER might be still needed for other architectures).
classic OSMesa is removed and swrast gallium drivers are needed for osmsa to run could you also add below patch and try. ?
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-1@@ -8,8 +8,8 @@ S = "${WORKDIR}/mesa-${PV}" # At least one DRI rendering engine is required to build mesa. # When no X11 is available, use osmesa for the rendering engine. -PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES','x11', 'x11', 'osmesa', d)}"
-PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" +PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" +PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"# When NOT using X11, we need to make sure we have swrast available.
GALLIUMDRIVERS_append= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"Quoted 14 lines
# $DRIDRIVERS [4 operations]
# _append[x86_class-target] /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:107
# ",r100,r200,nouveau,i965,i915"
# _append[x86-64_class-target] /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:108
# ",r100,r200,nouveau,i965,i915"
# override[class-native]:set /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:105
# "nouveau"
# override[class-nativesdk]:set /OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:106
# "nouveau"# pre-expansion value: # ",r100,r200,nouveau,i965,i915" DRIDRIVERS=",r100,r200,nouveau,i965,i915"Reverting Alex's upgrade to 21.0.0 allows to build mesa-gl again and it should surely pass AB build :).
I think we should actually disable dri (non-gallium) drivers altogether. They're only useful for ancient x86 hardware, and upstream is talking about removing them from mainline branch and onto a legacy branch in 21.2 timeframe.
Alex
Quoted 138 lines · Khem Raj
yeah we need to start using nouveau dri driver perhaps instead of swrast
Quoted 6 lines · Martin Jansa
Unfortunately it still fails the same for qemux86* with this change.
Enabling wayland PACKAGECONFIG doesn't help as well.
Building for qemuarm with empty DRIDRIVERS does pass the
do_configurewith:
Quoted 1 line
EXTRA_OEMESON=" -Dshared-glapi=enabled
-Dgallium-opencl=disabled -Dglx-read-only-text=true
-Dplatforms='wayland' -Ddri-drivers= -Ddri3=disabled -Degl=disabled(quoted diff) +0
-2-Delf-tls=false -Dgallium-drivers=swrast,swrast -Dllvm=disabled -Dgbm=disabled -DQuoted 1 line
gles1=disabled -Dgles2=disabled -Dopengl=true -Dosmesa=true
(quoted diff) +0
-3-Dlibunwind=disabled -Dgallium-va=disabled -Dgallium-vdpau=disabled -Dvulkan-drivers='' -Dglx=disabled -Dgallium-xa=disabled -Dgallium-xvmc=disabled"Quoted 3 lines
which is a bit surprising as mesa-gl_21.0.0.bb comment says:
# When NOT using X11, we need to make sure we have at least one driverenabled
Quoted 1 line
and now the only build which isn't broken by the 21 upgrade is the one
without any driver.
Quoted 8 lines
and x86 and x86-64 always enable some DRIDRIVERS in mesa.inc:
DRIDRIVERS_class-native = "nouveau" DRIDRIVERS_class-nativesdk = "nouveau" DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915" DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"Maybe this upgrade to development version 21.0.0 should be reverted and
21.0.1 should be merged after this meta-gl breakage is resolved somehow?
Quoted 4 lines · Khem Raj
Quoted 2 lines
On Thu, Apr 1, 2021 at 3:19 AM Martin Jansa <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines · Khem Raj
Quoted 2 lines
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not inallowed choices: "auto, i915, i965, r100, r200, nouveau"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Review
Quoted 8 lines
Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri
Quoted 4 lines
index
e50782be1c..fc8b4f7504100644meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1
Quoted 1 line
Quoted 1 line
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 12
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0PACKAGECONFIG_class-target = "opengl dri${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 13
Quoted 2 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0# When NOT using X11, we need to make sure we have swrastavailable.
Quoted 1 line
Quoted 1 line
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 14
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-1-DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES','x11', '', ',swrast', d)}"
Quoted 1 line
Quoted 1 line
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 14
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-0+GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES','x11', '', ',swrast', d)}"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
With:
DISTRO_FEATURES_remove= "x11" PREFERRED_PROVIDER_virtual/libgl = "mesa-gl" PREFERRED_PROVIDER_virtual/mesa = "mesa-gl"
in local.conf this is unfortunately still failing, now with:../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered:
building dri drivers require at least one windowing system
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
whole log:
http://errors.yoctoproject.org/Errors/Details/575265/adding nouveau to DRIDRIVERS like normal mesa doesn't help in this
case,
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
because I was building for qemux86-64 which already has bunch of DRIDRIVERS added by default (but adding at least one DRIDRIVER might
be still
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
needed for other architectures).
classic OSMesa is removed and swrast gallium drivers are needed for
osmsa to run
Quoted 22 lines
Quoted 22 lines
could you also add below patch and try. ?
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-1@@ -8,8 +8,8 @@ S = "${WORKDIR}/mesa-${PV}" # At least one DRI rendering engine is required to build mesa. # When no X11 is available, use osmesa for the rendering engine. -PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES','x11', 'x11', 'osmesa', d)}"
-PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" +PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" +PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"Quoted 7 lines
Quoted 7 lines
# When NOT using X11, we need to make sure we have swrast available.
GALLIUMDRIVERS_append= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"Quoted 2 lines
# $DRIDRIVERS [4 operations]
# _append[x86_class-target]/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:107
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
# ",r100,r200,nouveau,i965,i915"
# _append[x86-64_class-target]/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:108
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
# ",r100,r200,nouveau,i965,i915"
# override[class-native]:set/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:105
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
# "nouveau"
# override[class-nativesdk]:set/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:106
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
# "nouveau"
# pre-expansion value: # ",r100,r200,nouveau,i965,i915" DRIDRIVERS=",r100,r200,nouveau,i965,i915"Reverting Alex's upgrade to 21.0.0 allows to build mesa-gl again and
it should surely pass AB build :).
Alex
Quoted 148 lines · Alexander Kanavin
I think we should actually disable dri (non-gallium) drivers altogether. They're only useful for ancient x86 hardware, and upstream is talking about removing them from mainline branch and onto a legacy branch in 21.2 timeframe.
Alex
Quoted 138 lines · Khem Raj
yeah we need to start using nouveau dri driver perhaps instead of swrast
Quoted 6 lines · Martin Jansa
Unfortunately it still fails the same for qemux86* with this change.
Enabling wayland PACKAGECONFIG doesn't help as well.
Building for qemuarm with empty DRIDRIVERS does pass the
do_configurewith:
Quoted 1 line
EXTRA_OEMESON=" -Dshared-glapi=enabled
-Dgallium-opencl=disabled -Dglx-read-only-text=true
-Dplatforms='wayland' -Ddri-drivers= -Ddri3=disabled -Degl=disabled(quoted diff) +0
-2-Delf-tls=false -Dgallium-drivers=swrast,swrast -Dllvm=disabled -Dgbm=disabled -DQuoted 1 line
gles1=disabled -Dgles2=disabled -Dopengl=true -Dosmesa=true
(quoted diff) +0
-3-Dlibunwind=disabled -Dgallium-va=disabled -Dgallium-vdpau=disabled -Dvulkan-drivers='' -Dglx=disabled -Dgallium-xa=disabled -Dgallium-xvmc=disabled"Quoted 3 lines
which is a bit surprising as mesa-gl_21.0.0.bb comment says:
# When NOT using X11, we need to make sure we have at least one driverenabled
Quoted 1 line
and now the only build which isn't broken by the 21 upgrade is the one
without any driver.
Quoted 8 lines
and x86 and x86-64 always enable some DRIDRIVERS in mesa.inc:
DRIDRIVERS_class-native = "nouveau" DRIDRIVERS_class-nativesdk = "nouveau" DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915" DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"Maybe this upgrade to development version 21.0.0 should be reverted and
21.0.1 should be merged after this meta-gl breakage is resolved somehow?
Quoted 4 lines · Khem Raj
Quoted 2 lines
On Thu, Apr 1, 2021 at 3:19 AM Martin Jansa <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines · Khem Raj
Quoted 2 lines
Fixes
../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are notin allowed choices: "auto, i915, i965, r100, r200, nouveau"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Review
Quoted 8 lines
Signed-off-by Khem Raj <[email protected]>Cc Martin Jansa <[email protected]>--- meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri
Quoted 4 lines
index
e50782be1c..fc8b4f7504100644meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0@@ -12,4 +12,4 @@ PACKAGECONFIG ??= "opengl dri${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x1
Quoted 1 line
Quoted 1 line
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 12
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0PACKAGECONFIG_class-target = "opengl dri${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}"
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 13
Quoted 2 lines
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-0# When NOT using X11, we need to make sure we have swrastavailable.
Quoted 1 line
Quoted 1 line
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 14
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-1-DRIDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES','x11', '', ',swrast', d)}"
Quoted 1 line
Quoted 1 line
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb PACKAGECONFIG ??= "opengl dri · line 14
Quoted 1 line
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +1
-0+GALLIUMDRIVERS_append = "${@bb.utils.contains('DISTRO_FEATURES','x11', '', ',swrast', d)}"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
With:
DISTRO_FEATURES_remove= "x11" PREFERRED_PROVIDER_virtual/libgl = "mesa-gl" PREFERRED_PROVIDER_virtual/mesa = "mesa-gl"
in local.conf this is unfortunately still failing, now with:../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered:
building dri drivers require at least one windowing system
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
whole log:
http://errors.yoctoproject.org/Errors/Details/575265/adding nouveau to DRIDRIVERS like normal mesa doesn't help in this
case,
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
because I was building for qemux86-64 which already has bunch of DRIDRIVERS added by default (but adding at least one DRIDRIVER might
be still
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
needed for other architectures).
classic OSMesa is removed and swrast gallium drivers are needed for
osmsa to run
Quoted 22 lines
Quoted 22 lines
could you also add below patch and try. ?
meta/recipes-graphics/mesa/mesa-gl_21.0.0.bb +0
-1@@ -8,8 +8,8 @@ S = "${WORKDIR}/mesa-${PV}" # At least one DRI rendering engine is required to build mesa. # When no X11 is available, use osmesa for the rendering engine. -PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES','x11', 'x11', 'osmesa', d)}"
-PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa', d)}" +PACKAGECONFIG ??= "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}" +PACKAGECONFIG_class-target = "opengl dri ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'osmesa gallium', d)}"Quoted 7 lines
Quoted 7 lines
# When NOT using X11, we need to make sure we have swrast available.
GALLIUMDRIVERS_append= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ',swrast', d)}"Quoted 2 lines
# $DRIDRIVERS [4 operations]
# _append[x86_class-target]/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:107
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
# ",r100,r200,nouveau,i965,i915"
# _append[x86-64_class-target]/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:108
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
# ",r100,r200,nouveau,i965,i915"
# override[class-native]:set/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:105
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
# "nouveau"
# override[class-nativesdk]:set/OE/build/oe-core/openembedded-core/meta/recipes-graphics/mesa/mesa.inc:106
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
# "nouveau"
# pre-expansion value: # ",r100,r200,nouveau,i965,i915" DRIDRIVERS=",r100,r200,nouveau,i965,i915"Reverting Alex's upgrade to 21.0.0 allows to build mesa-gl again and
it should surely pass AB build :).