From: Hemanth.KumarMD@windriver.com
To: openembedded-core@lists.openembedded.org
Cc: Sundeep.Kokkonda@windriver.com, Randy.MacLeod@windriver.com,
khem.raj@gmail.com
Subject: [PATCH 1/7] piglit:backport a fix for building with gcc-16
Date: Thu, 7 May 2026 10:32:05 -0700 [thread overview]
Message-ID: <20260507173211.672855-2-Hemanth.KumarMD@windriver.com> (raw)
In-Reply-To: <20260507173211.672855-1-Hemanth.KumarMD@windriver.com>
From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
Avoid conflict with C++20 std::lerp from <cmath>, which
causes redefinition and ambiguous call errors with newer
toolchains.
Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/piglit/-/commit/ec0fc2fef0755b1595c3799ab25129174a4b2007]
Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
---
...h-rename-local-lerp-to-linear_interp.patch | 46 +++++++++++++++++++
meta/recipes-graphics/piglit/piglit_git.bb | 1 +
2 files changed, 47 insertions(+)
create mode 100644 meta/recipes-graphics/piglit/piglit/0001-fbo-blit-stretch-rename-local-lerp-to-linear_interp.patch
diff --git a/meta/recipes-graphics/piglit/piglit/0001-fbo-blit-stretch-rename-local-lerp-to-linear_interp.patch b/meta/recipes-graphics/piglit/piglit/0001-fbo-blit-stretch-rename-local-lerp-to-linear_interp.patch
new file mode 100644
index 0000000000..05f1dd687a
--- /dev/null
+++ b/meta/recipes-graphics/piglit/piglit/0001-fbo-blit-stretch-rename-local-lerp-to-linear_interp.patch
@@ -0,0 +1,46 @@
+From ec0fc2fef0755b1595c3799ab25129174a4b2007 Mon Sep 17 00:00:00 2001
+From: Vinson Lee <vlee@freedesktop.org>
+Date: Sat, 7 Feb 2026 18:39:39 -0800
+Subject: [PATCH] fbo-blit-stretch: rename local lerp to linear_interp
+
+Avoid conflict with C++20 std::lerp from <cmath>, which
+causes redefinition and ambiguous call errors with newer
+toolchains.
+
+Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/piglit/-/commit/ec0fc2fef0755b1595c3799ab25129174a4b2007]
+
+Signed-off-by: Vinson Lee <vlee@freedesktop.org>
+Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
+---
+ tests/fbo/fbo-blit-stretch.cpp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/fbo/fbo-blit-stretch.cpp b/tests/fbo/fbo-blit-stretch.cpp
+index a83288c0f..b0d362ecd 100644
+--- a/tests/fbo/fbo-blit-stretch.cpp
++++ b/tests/fbo/fbo-blit-stretch.cpp
+@@ -173,7 +173,7 @@ clamp(GLint &x, GLint xmin, GLint xmax)
+ }
+
+ static float
+-lerp(float x0, float x1, float w)
++linear_interp(float x0, float x1, float w)
+ {
+ return x0 + (x1 - x0) * w;
+ }
+@@ -181,9 +181,9 @@ lerp(float x0, float x1, float w)
+ static float
+ lerp2d(float xy00, float xy01, float xy10, float xy11, float wx, float wy)
+ {
+- float y0 = lerp(xy00, xy01, wx);
+- float y1 = lerp(xy10, xy11, wx);
+- return lerp(y0, y1, wy);
++ float y0 = linear_interp(xy00, xy01, wx);
++ float y1 = linear_interp(xy10, xy11, wx);
++ return linear_interp(y0, y1, wy);
+ }
+
+ static float clearColor[4] = {
+--
+2.49.0
+
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index 7659635062..0dd9c58714 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -14,6 +14,7 @@ SRC_URI = "git://gitlab.freedesktop.org/mesa/piglit.git;protocol=https;branch=ma
file://0001-tests-egl-spec-make-egl_ext_surface_compression-cond.patch \
file://0001-tests-no_error.py-modify-_command-and-not-command.patch \
file://0001-generated_tests-use-shape-in-place-of-newshape-on-nu.patch \
+ file://0001-fbo-blit-stretch-rename-local-lerp-to-linear_interp.patch \
"
UPSTREAM_CHECK_COMMITS = "1"
--
2.49.0
next prev parent reply other threads:[~2026-05-07 17:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 17:32 [PATCH 0/7] gcc: Upgrade GCC to 16.1 release Hemanth.KumarMD
2026-05-07 17:32 ` Hemanth.KumarMD [this message]
2026-05-07 17:32 ` [PATCH 2/7] rxvt-unicode: backport a fix for building with gcc-16 Hemanth.KumarMD
2026-05-07 17:32 ` [PATCH 3/7] glibc: disable automatic libatomic linking Hemanth.KumarMD
2026-05-07 17:32 ` [PATCH 4/7] gcc: Upgrade GCC to 16.1 release Hemanth.KumarMD
2026-05-07 17:32 ` [PATCH 5/7] gcc-runtime: disable automatic libatomic linking during build Hemanth.KumarMD
2026-05-07 17:32 ` [PATCH 6/7] gcc-runtime: package new libatomic_asneeded files Hemanth.KumarMD
2026-05-07 17:32 ` [PATCH 7/7] gcc-runtime: avoid passing MULTIBUILDTOP to libatomic Hemanth.KumarMD
2026-05-10 13:09 ` [OE-core] [PATCH 0/7] gcc: Upgrade GCC to 16.1 release Mathieu Dubois-Briand
2026-05-15 3:42 ` Hemanth Kumar M D
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260507173211.672855-2-Hemanth.KumarMD@windriver.com \
--to=hemanth.kumarmd@windriver.com \
--cc=Randy.MacLeod@windriver.com \
--cc=Sundeep.Kokkonda@windriver.com \
--cc=khem.raj@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.