package/mesa3d: fix glxinfo crash when gles1 is disabled
PATCH 1/1 package/mesa3d: fix glxinfo crash when gles1 is disabled
mesa3d 23.1 introduced a regression crashing glxinfo (and some piglit tests) when gles1 is disabled.
See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9038
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/4287983490
--- .checkpackageignore | 1 + ...arly-when-trying-to-create-an-unsupp.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch
.checkpackageignore +1 -0
@@ -995,6 +995,7 @@ package/mender-connect/S43mender-connect Shellcheck package/menu-cache/0001-Support-gcc10-compilation.patch Upstream package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch Upstream package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch Upstream +package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch Upstream package/meson-tools/0001-amlbootenc-gxl-remove-non-std-C-convention-in-for.patch Upstream package/meson/0001-Prefer-ext-static-libs-when-default-library-static.patch Upstream package/meson/0002-mesonbuild-dependencies-base.py-add-pkg_config_stati.patch Upstream
package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch new file +50 -0
50 lines not on this page · raw message
Signature · 6 lines
2.40.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Romain,
Quoted 20 lines · Romain Naour
mesa3d 23.1 introduced a regression crashing glxinfo (and some piglit tests) when gles1 is disabled.
See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9038Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/4287983490Signed-off-by Romain Naour <[email protected]>Cc Bernd Kuhls <[email protected]>--- .checkpackageignore | 1 + ...arly-when-trying-to-create-an-unsupp.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch.checkpackageignore +0
-0
.checkpackageignore package/mender-connect/S43mender-connect Shellcheck · line 998
Quoted 4 lines
.checkpackageignore +1
-0@@ -995,6 +995,7 @@ package/mender-connect/S43mender-connect Shellcheck package/menu-cache/0001-Support-gcc10-compilation.patch Upstream package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch Upstream package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch Upstream +package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch Upstream
I think the patch should have proper Upstream tag as described in the manual (docs/manual/patch-policy.txt). .checkpackageignore is only for existing non conforming patches.
baruch
Quoted 61 lines
.checkpackageignore +0
-0package/meson-tools/0001-amlbootenc-gxl-remove-non-std-C-convention-in-for.patch Upstream package/meson/0001-Prefer-ext-static-libs-when-default-library-static.patch Upstream package/meson/0002-mesonbuild-dependencies-base.py-add-pkg_config_stati.patch Upstreamdiff --git
a/package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patchb/package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patchnew file mode 100644
index 0000000000..6080a551ccpackage/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch new file +50
-0@@ -0,0 +1,50 @@ +From 2a6908ff4c94284b39c3cd4c97e1069876720eb7 Mon Sep 17 00:00:00 2001 +From: Jordan Justen <[email protected]> +Date: Tue, 16 May 2023 18:46:50 -0700 +Subject: [PATCH] mesa/main: Exit early when trying to create an unsupported + context API + +Fixes: adbe8b6c17a ("mesa: optimize out _mesa_is_desktop_gl*() and _mesa_is_gles*() calls when not built") +Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9038 +Signed-off-by: Jordan Justen <[email protected]> +Reviewed-by: Eric Engestrom <[email protected]> +Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23068> +(cherry picked from commit 8bb1ecaa02177720758255bdd7ec34a5d15feca4) +[Romain: backport to 23.1] +Signed-off-by: Romain Naour <[email protected]> +--- + src/mesa/main/context.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c +index d8eea2ea867..2b810b0d863 100644 +--- a/src/mesa/main/context.c ++++ b/src/mesa/main/context.c +@@ -996,6 +996,24 @@ _mesa_initialize_context(struct gl_context *ctx, + struct gl_shared_state *shared; + int i; + ++ switch (api) { ++ case API_OPENGL_COMPAT: ++ case API_OPENGL_CORE: ++ if (!HAVE_OPENGL) ++ return GL_FALSE; ++ break; ++ case API_OPENGLES2: ++ if (!HAVE_OPENGL_ES_2) ++ return GL_FALSE; ++ break; ++ case API_OPENGLES: ++ if (!HAVE_OPENGL_ES_1) ++ return GL_FALSE; ++ break; ++ default: ++ return GL_FALSE; ++ } ++ + ctx->API = api; + ctx->DrawBuffer = NULL; + ctx->ReadBuffer = NULL; +-- +2.40.1 +
Signature · 7 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildrootHi Baruch,
Le 19/05/2023 à 05:35, Baruch Siach a écrit :
Quoted 18 lines
Hi Romain,
Quoted 15 lines · Romain Naour
mesa3d 23.1 introduced a regression crashing glxinfo (and some piglit tests) when gles1 is disabled.
See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9038Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/4287983490Signed-off-by Romain Naour <[email protected]>Cc Bernd Kuhls <[email protected]>--- .checkpackageignore | 1 + ...arly-when-trying-to-create-an-unsupp.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch
Quoted 13 lines
.checkpackageignore package/mender-connect/S43mender-connect Shellcheck · line 998
Quoted 9 lines
.checkpackageignore +1
-0@@ -995,6 +995,7 @@ package/mender-connect/S43mender-connect Shellcheck package/menu-cache/0001-Support-gcc10-compilation.patch Upstream package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch Upstream package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch Upstream +package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch UpstreamI think the patch should have proper Upstream tag as described in the manual (
docs/manual/patch-policy.txt). .checkpackageignore is only for existing non conforming patches.
Ok thanks, I haven't closely followed recent changes about patch policy. I thought that it was enough with "(cherry picked from commit ..." (generated by git cherry-pick -x) to avoid the checkpackage warning.
Best regards,
Romain
Quoted 56 lines
baruch
Quoted 53 lines
.checkpackageignore +0
-0package/meson-tools/0001-amlbootenc-gxl-remove-non-std-C-convention-in-for.patch Upstream package/meson/0001-Prefer-ext-static-libs-when-default-library-static.patch Upstream package/meson/0002-mesonbuild-dependencies-base.py-add-pkg_config_stati.patch Upstreamdiff --git
a/package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patchb/package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patchnew file mode 100644
index 0000000000..6080a551ccpackage/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch new file +42
-0@@ -0,0 +1,50 @@ +From 2a6908ff4c94284b39c3cd4c97e1069876720eb7 Mon Sep 17 00:00:00 2001 +From: Jordan Justen <[email protected]> +Date: Tue, 16 May 2023 18:46:50 -0700 +Subject: [PATCH] mesa/main: Exit early when trying to create an unsupported + context API + +Fixes: adbe8b6c17a ("mesa: optimize out _mesa_is_desktop_gl*() and _mesa_is_gles*() calls when not built") +Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9038 +Signed-off-by: Jordan Justen <[email protected]> +Reviewed-by: Eric Engestrom <[email protected]> +Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23068> +(cherry picked from commit 8bb1ecaa02177720758255bdd7ec34a5d15feca4) +[Romain: backport to 23.1] +Signed-off-by: Romain Naour <[email protected]> +--- + src/mesa/main/context.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c +index d8eea2ea867..2b810b0d863 100644 +--- a/src/mesa/main/context.c ++++ b/src/mesa/main/context.c +@@ -996,6 +996,24 @@ _mesa_initialize_context(struct gl_context *ctx, + struct gl_shared_state *shared; + int i; + ++ switch (api) { ++ case API_OPENGL_COMPAT: ++ case API_OPENGL_CORE: ++ if (!HAVE_OPENGL) ++ return GL_FALSE; ++ break; ++ case API_OPENGLES2: ++ if (!HAVE_OPENGL_ES_2) ++ return GL_FALSE; ++ break; ++ case API_OPENGLES: ++ if (!HAVE_OPENGL_ES_1) ++ return GL_FALSE; ++ break; ++ default: ++ return GL_FALSE;
Quoted 10 lines
package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch line 50
Quoted 8 lines
package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch new file +8
-0++ } ++ + ctx->API = api; + ctx->DrawBuffer = NULL; + ctx->ReadBuffer = NULL; +-- +2.40.1 +
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Romain, All,
On 2023-05-18 23:30 +0200, Romain Naour spake thusly:
Quoted 20 lines
mesa3d 23.1 introduced a regression crashing glxinfo (and some piglit tests) when gles1 is disabled.
See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9038Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/4287983490Signed-off-by Romain Naour <[email protected]>Cc Bernd Kuhls <[email protected]>--- .checkpackageignore | 1 + ...arly-when-trying-to-create-an-unsupp.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch.checkpackageignore +0
-0
.checkpackageignore package/mender-connect/S43mender-connect Shellcheck · line 998
Quoted 4 lines
.checkpackageignore +1
-0@@ -995,6 +995,7 @@ package/mender-connect/S43mender-connect Shellcheck package/menu-cache/0001-Support-gcc10-compilation.patch Upstream package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch Upstream package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch Upstream +package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch Upstream
Do not add a (patch) entry to .checkpackagignore; this ignore list is only for exsiting files, while new fiels must adhere to codign style (unless dully explained and justified in the commit log).
In this case, as Baruch noticed, the issue was just about having a proper "Upstream:" tag, see below..
Quoted 11 lines
.checkpackageignore +0
-0package/meson-tools/0001-amlbootenc-gxl-remove-non-std-C-convention-in-for.patch Upstream package/meson/0001-Prefer-ext-static-libs-when-default-library-static.patch Upstream package/meson/0002-mesonbuild-dependencies-base.py-add-pkg_config_stati.patch Upstreampackage/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch new file +2
-0@@ -0,0 +1,50 @@ +From 2a6908ff4c94284b39c3cd4c97e1069876720eb7 Mon Sep 17 00:00:00 2001 +From: Jordan Justen <[email protected]>
package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch line 12
Quoted 10 lines
package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch new file +10
-0+Date: Tue, 16 May 2023 18:46:50 -0700 +Subject: [PATCH] mesa/main: Exit early when trying to create an unsupported + context API + +Fixes: adbe8b6c17a ("mesa: optimize out _mesa_is_desktop_gl*() and _mesa_is_gles*() calls when not built") +Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9038 +Signed-off-by: Jordan Justen <[email protected]> +Reviewed-by: Eric Engestrom <[email protected]> +Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23068> +(cherry picked from commit 8bb1ecaa02177720758255bdd7ec34a5d15feca4)
The recently added rule is to have the upstream status denoted with an "Upstream:" tag:
https://buildroot.org/downloads/manual/manual.html#_additional_patch_documentation
So I fixed that, and applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 45 lines
package/mesa3d/0005-mesa-main-Exit-early-when-trying-to-create-an-unsupp.patch new file +38
-0+[Romain: backport to 23.1] +Signed-off-by: Romain Naour <[email protected]> +--- + src/mesa/main/context.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c +index d8eea2ea867..2b810b0d863 100644 +--- a/src/mesa/main/context.c ++++ b/src/mesa/main/context.c +@@ -996,6 +996,24 @@ _mesa_initialize_context(struct gl_context *ctx, + struct gl_shared_state *shared; + int i; + ++ switch (api) { ++ case API_OPENGL_COMPAT: ++ case API_OPENGL_CORE: ++ if (!HAVE_OPENGL) ++ return GL_FALSE; ++ break; ++ case API_OPENGLES2: ++ if (!HAVE_OPENGL_ES_2) ++ return GL_FALSE; ++ break; ++ case API_OPENGLES: ++ if (!HAVE_OPENGL_ES_1) ++ return GL_FALSE; ++ break; ++ default: ++ return GL_FALSE; ++ } ++ + ctx->API = api; + ctx->DrawBuffer = NULL; + ctx->ReadBuffer = NULL; +-- +2.40.1 +Signature · 6 lines
2.40.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot