All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mesa: update submitted patch with backported version
@ 2023-01-16 15:30 Martin Jansa
  2023-01-18 12:55 ` [OE-core] " Luca Ceresoli
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2023-01-16 15:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: kai.kang, Martin Jansa

* this version was merged to main in:
  https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911
  and cherry-picked to staging/23.0 as well in:
  https://gitlab.freedesktop.org/mesa/mesa/-/commit/54cfb552abc50e8167cdc46d87455a9a414d7c65

  and as a bonus it doesn't break the build with DEBUG_BUILD
  for newer toolchain, so we can apply it for target build as well, see:
  https://lists.openembedded.org/g/openembedded-core/message/169002
  https://lists.openembedded.org/g/openembedded-core/message/170930

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 ...ove-fix-ALWAYS_INLINE-compiler-error.patch | 81 ++++++-------------
 meta/recipes-graphics/mesa/mesa.inc           |  5 +-
 2 files changed, 26 insertions(+), 60 deletions(-)

diff --git a/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch b/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
index 7989843eb4..1cf23492fe 100644
--- a/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
+++ b/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
@@ -1,67 +1,36 @@
-From da6e47f1717f34c73de388c56ffaf4861a07fdc5 Mon Sep 17 00:00:00 2001
-From: t bettler <thomas.bettler@gmail.com>
-Date: Sat, 9 Jul 2022 09:28:51 +0000
+From 267dd1f4d571ee606141aa66f1665aa152b4e911 Mon Sep 17 00:00:00 2001
+From: t0b3 <thomas.bettler@gmail.com>
+Date: Sat, 10 Dec 2022 14:32:53 +0100
 Subject: [PATCH] nir/nir_opt_move: fix ALWAYS_INLINE compiler error
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
 
-Backport merge request to fix mesa compile error when debug build
-enabled.
-
-Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439]
-
-Signed-off-by: Kai Kang <kai.kang@windriver.com>
-
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-fix call to ‘always_inline’ ‘src_is_ssa’
-
-Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6825
-Fixes: f1d20ec67c3f186886b97de94f74484650f8fda1 ("nir/nir_opt_move: handle non-SSA defs ")
+Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
+Reviewed-by: Adam Jackson <ajax@redhat.com>
+Closes: #6825
+Fixes: f1d20ec6 ("nir/nir_opt_move: handle non-SSA defs ")
+Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439>
 
+Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911]
 ---
- src/compiler/nir/nir_inline_helpers.h | 10 ++++++++--
- src/compiler/nir/nir_opt_move.c       |  2 +-
- 2 files changed, 9 insertions(+), 3 deletions(-)
+ src/compiler/nir/nir_opt_move.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
 
-diff --git a/src/compiler/nir/nir_inline_helpers.h b/src/compiler/nir/nir_inline_helpers.h
-index 125dd8a..ec33f05 100644
---- a/src/compiler/nir/nir_inline_helpers.h
-+++ b/src/compiler/nir/nir_inline_helpers.h
-@@ -73,8 +73,8 @@ nir_foreach_dest(nir_instr *instr, nir_foreach_dest_cb cb, void *state)
-    return _nir_foreach_dest(instr, cb, state);
- }
- 
--static inline bool
--nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state)
-+static ALWAYS_INLINE bool
-+_nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state)
- {
-    switch (instr->type) {
-    case nir_instr_type_alu: {
-@@ -162,3 +162,9 @@ nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state)
-    dest_state.cb = cb;
-    return _nir_foreach_dest(instr, _nir_visit_dest_indirect, &dest_state);
- }
-+
-+static inline bool
-+nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state)
-+{
-+   return _nir_foreach_src(instr, cb, state);
-+}
 diff --git a/src/compiler/nir/nir_opt_move.c b/src/compiler/nir/nir_opt_move.c
-index 81bcde5..051c3cc 100644
+index 81bcde5c436..9aeb9f4cf86 100644
 --- a/src/compiler/nir/nir_opt_move.c
 +++ b/src/compiler/nir/nir_opt_move.c
-@@ -60,7 +60,7 @@ src_is_ssa(nir_src *src, void *state)
- static ALWAYS_INLINE bool
- instr_reads_register(nir_instr *instr)
+@@ -51,13 +51,13 @@
+  * lower register pressure.
+  */
+ 
+-static ALWAYS_INLINE bool
++static inline bool
+ src_is_ssa(nir_src *src, void *state)
  {
--   return !nir_foreach_src(instr, src_is_ssa, NULL);
-+   return !_nir_foreach_src(instr, src_is_ssa, NULL);
+    return src->is_ssa;
  }
  
- static bool
+-static ALWAYS_INLINE bool
++static inline bool
+ instr_reads_register(nir_instr *instr)
+ {
+    return !nir_foreach_src(instr, src_is_ssa, NULL);
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 5fdb67ca2a..866b7fc462 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -18,11 +18,8 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
            file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \
            file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
            file://0001-util-format-Check-for-NEON-before-using-it.patch \
-           ${NATIVE_PATCHES} \
+           file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch \
            "
-NATIVE_PATCHES ?= ""
-# required by mesa-native on Ubuntu 18.04 with gcc 7.5 when DEBUG_BUILD enabled
-NATIVE_PATCHES:class-native = "file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch"
 
 SRC_URI[sha256sum] = "bed799788bf2bd9ef079d97cd8e09348bf53cb086818578e40773b2b17812922"
 
-- 
2.39.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [OE-core] [PATCH] mesa: update submitted patch with backported version
       [not found] <173AD3C1BA38F444.23170@lists.openembedded.org>
@ 2023-01-16 15:33 ` Martin Jansa
  2023-01-18  9:32   ` Kai
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2023-01-16 15:33 UTC (permalink / raw)
  To: Martin.Jansa; +Cc: openembedded-core, kai.kang

[-- Attachment #1: Type: text/plain, Size: 6912 bytes --]

Kai: can you please test it on ubuntu-18.04?

I've tested it with DEBUG_BUILD in native and target build on a host with
new toolchain (gentoo with gcc-12.2.1) and according to
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439 it works
with old toolchain as well.

On Mon, Jan 16, 2023 at 4:30 PM Martin Jansa via lists.openembedded.org
<Martin.Jansa=gmail.com@lists.openembedded.org> wrote:

> * this version was merged to main in:
>
> https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911
>   and cherry-picked to staging/23.0 as well in:
>
> https://gitlab.freedesktop.org/mesa/mesa/-/commit/54cfb552abc50e8167cdc46d87455a9a414d7c65
>
>   and as a bonus it doesn't break the build with DEBUG_BUILD
>   for newer toolchain, so we can apply it for target build as well, see:
>   https://lists.openembedded.org/g/openembedded-core/message/169002
>   https://lists.openembedded.org/g/openembedded-core/message/170930
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  ...ove-fix-ALWAYS_INLINE-compiler-error.patch | 81 ++++++-------------
>  meta/recipes-graphics/mesa/mesa.inc           |  5 +-
>  2 files changed, 26 insertions(+), 60 deletions(-)
>
> diff --git
> a/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
> b/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
> index 7989843eb4..1cf23492fe 100644
> ---
> a/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
> +++
> b/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
> @@ -1,67 +1,36 @@
> -From da6e47f1717f34c73de388c56ffaf4861a07fdc5 Mon Sep 17 00:00:00 2001
> -From: t bettler <thomas.bettler@gmail.com>
> -Date: Sat, 9 Jul 2022 09:28:51 +0000
> +From 267dd1f4d571ee606141aa66f1665aa152b4e911 Mon Sep 17 00:00:00 2001
> +From: t0b3 <thomas.bettler@gmail.com>
> +Date: Sat, 10 Dec 2022 14:32:53 +0100
>  Subject: [PATCH] nir/nir_opt_move: fix ALWAYS_INLINE compiler error
> -MIME-Version: 1.0
> -Content-Type: text/plain; charset=UTF-8
> -Content-Transfer-Encoding: 8bit
>
> -Backport merge request to fix mesa compile error when debug build
> -enabled.
> -
> -Upstream-Status: Submitted [
> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439]
> -
> -Signed-off-by: Kai Kang <kai.kang@windriver.com>
> -
> -MIME-Version: 1.0
> -Content-Type: text/plain; charset=UTF-8
> -Content-Transfer-Encoding: 8bit
> -
> -fix call to ‘always_inline’ ‘src_is_ssa’
> -
> -Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6825
> -Fixes: f1d20ec67c3f186886b97de94f74484650f8fda1 ("nir/nir_opt_move:
> handle non-SSA defs ")
> +Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
> +Reviewed-by: Adam Jackson <ajax@redhat.com>
> +Closes: #6825
> +Fixes: f1d20ec6 ("nir/nir_opt_move: handle non-SSA defs ")
> +Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439
> >
>
> +Upstream-Status: Backport [
> https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911
> ]
>  ---
> - src/compiler/nir/nir_inline_helpers.h | 10 ++++++++--
> - src/compiler/nir/nir_opt_move.c       |  2 +-
> - 2 files changed, 9 insertions(+), 3 deletions(-)
> + src/compiler/nir/nir_opt_move.c | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
>
> -diff --git a/src/compiler/nir/nir_inline_helpers.h
> b/src/compiler/nir/nir_inline_helpers.h
> -index 125dd8a..ec33f05 100644
> ---- a/src/compiler/nir/nir_inline_helpers.h
> -+++ b/src/compiler/nir/nir_inline_helpers.h
> -@@ -73,8 +73,8 @@ nir_foreach_dest(nir_instr *instr, nir_foreach_dest_cb
> cb, void *state)
> -    return _nir_foreach_dest(instr, cb, state);
> - }
> -
> --static inline bool
> --nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state)
> -+static ALWAYS_INLINE bool
> -+_nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state)
> - {
> -    switch (instr->type) {
> -    case nir_instr_type_alu: {
> -@@ -162,3 +162,9 @@ nir_foreach_src(nir_instr *instr, nir_foreach_src_cb
> cb, void *state)
> -    dest_state.cb = cb;
> -    return _nir_foreach_dest(instr, _nir_visit_dest_indirect,
> &dest_state);
> - }
> -+
> -+static inline bool
> -+nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state)
> -+{
> -+   return _nir_foreach_src(instr, cb, state);
> -+}
>  diff --git a/src/compiler/nir/nir_opt_move.c
> b/src/compiler/nir/nir_opt_move.c
> -index 81bcde5..051c3cc 100644
> +index 81bcde5c436..9aeb9f4cf86 100644
>  --- a/src/compiler/nir/nir_opt_move.c
>  +++ b/src/compiler/nir/nir_opt_move.c
> -@@ -60,7 +60,7 @@ src_is_ssa(nir_src *src, void *state)
> - static ALWAYS_INLINE bool
> - instr_reads_register(nir_instr *instr)
> +@@ -51,13 +51,13 @@
> +  * lower register pressure.
> +  */
> +
> +-static ALWAYS_INLINE bool
> ++static inline bool
> + src_is_ssa(nir_src *src, void *state)
>   {
> --   return !nir_foreach_src(instr, src_is_ssa, NULL);
> -+   return !_nir_foreach_src(instr, src_is_ssa, NULL);
> +    return src->is_ssa;
>   }
>
> - static bool
> +-static ALWAYS_INLINE bool
> ++static inline bool
> + instr_reads_register(nir_instr *instr)
> + {
> +    return !nir_foreach_src(instr, src_is_ssa, NULL);
> diff --git a/meta/recipes-graphics/mesa/mesa.inc
> b/meta/recipes-graphics/mesa/mesa.inc
> index 5fdb67ca2a..866b7fc462 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -18,11 +18,8 @@ SRC_URI = "
> https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
>
> file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \
>             file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch
> \
>             file://0001-util-format-Check-for-NEON-before-using-it.patch \
> -           ${NATIVE_PATCHES} \
> +
>  file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch \
>             "
> -NATIVE_PATCHES ?= ""
> -# required by mesa-native on Ubuntu 18.04 with gcc 7.5 when DEBUG_BUILD
> enabled
> -NATIVE_PATCHES:class-native =
> "file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch"
>
>  SRC_URI[sha256sum] =
> "bed799788bf2bd9ef079d97cd8e09348bf53cb086818578e40773b2b17812922"
>
> --
> 2.39.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#175996):
> https://lists.openembedded.org/g/openembedded-core/message/175996
> Mute This Topic: https://lists.openembedded.org/mt/96308437/3617156
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> Martin.Jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 9701 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [PATCH] mesa: update submitted patch with backported version
  2023-01-16 15:33 ` Martin Jansa
@ 2023-01-18  9:32   ` Kai
  0 siblings, 0 replies; 5+ messages in thread
From: Kai @ 2023-01-18  9:32 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 10774 bytes --]

On 1/16/23 23:33, Martin Jansa wrote:
> Kai: can you please test it on ubuntu-18.04?

Hi Martin,

It works for me with & without DEBUG_BUILD on ubuntu-18.04.6(gcc 7.5.0).

Regards,
Kai

>
> I've tested it with DEBUG_BUILD in native and target build on a host 
> with new toolchain (gentoo with gcc-12.2.1) and according to 
> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439 
> <https://urldefense.com/v3/__https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByclpNB_Q$> 
> it works with old toolchain as well.
>
> On Mon, Jan 16, 2023 at 4:30 PM Martin Jansa via 
> lists.openembedded.org 
> <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByW1_uzh4$> 
> <Martin.Jansa=gmail.com@lists.openembedded.org> wrote:
>
>     * this version was merged to main in:
>     https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911
>     <https://urldefense.com/v3/__https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChBy7EjBk3I$>
>       and cherry-picked to staging/23.0 as well in:
>     https://gitlab.freedesktop.org/mesa/mesa/-/commit/54cfb552abc50e8167cdc46d87455a9a414d7c65
>     <https://urldefense.com/v3/__https://gitlab.freedesktop.org/mesa/mesa/-/commit/54cfb552abc50e8167cdc46d87455a9a414d7c65__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChBysISDH1Y$>
>
>       and as a bonus it doesn't break the build with DEBUG_BUILD
>       for newer toolchain, so we can apply it for target build as
>     well, see:
>     https://lists.openembedded.org/g/openembedded-core/message/169002
>     <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/169002__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByT2LkadU$>
>     https://lists.openembedded.org/g/openembedded-core/message/170930
>     <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/170930__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChBy4OYfHIk$>
>
>     Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>     ---
>      ...ove-fix-ALWAYS_INLINE-compiler-error.patch | 81
>     ++++++-------------
>      meta/recipes-graphics/mesa/mesa.inc           |  5 +-
>      2 files changed, 26 insertions(+), 60 deletions(-)
>
>     diff --git
>     a/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
>     b/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
>     index 7989843eb4..1cf23492fe 100644
>     ---
>     a/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
>     +++
>     b/meta/recipes-graphics/mesa/files/0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch
>     @@ -1,67 +1,36 @@
>     -From da6e47f1717f34c73de388c56ffaf4861a07fdc5 Mon Sep 17 00:00:00
>     2001
>     -From: t bettler <thomas.bettler@gmail.com>
>     -Date: Sat, 9 Jul 2022 09:28:51 +0000
>     +From 267dd1f4d571ee606141aa66f1665aa152b4e911 Mon Sep 17 00:00:00
>     2001
>     +From: t0b3 <thomas.bettler@gmail.com>
>     +Date: Sat, 10 Dec 2022 14:32:53 +0100
>      Subject: [PATCH] nir/nir_opt_move: fix ALWAYS_INLINE compiler error
>     -MIME-Version: 1.0
>     -Content-Type: text/plain; charset=UTF-8
>     -Content-Transfer-Encoding: 8bit
>
>     -Backport merge request to fix mesa compile error when debug build
>     -enabled.
>     -
>     -Upstream-Status: Submitted
>     [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439
>     <https://urldefense.com/v3/__https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByclpNB_Q$>]
>     -
>     -Signed-off-by: Kai Kang <kai.kang@windriver.com>
>     -
>     -MIME-Version: 1.0
>     -Content-Type: text/plain; charset=UTF-8
>     -Content-Transfer-Encoding: 8bit
>     -
>     -fix call to ‘always_inline’ ‘src_is_ssa’
>     -
>     -Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6825
>     <https://urldefense.com/v3/__https://gitlab.freedesktop.org/mesa/mesa/-/issues/6825__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByYbcOI8M$>
>     -Fixes: f1d20ec67c3f186886b97de94f74484650f8fda1
>     ("nir/nir_opt_move: handle non-SSA defs ")
>     +Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
>     +Reviewed-by: Adam Jackson <ajax@redhat.com>
>     +Closes: #6825
>     +Fixes: f1d20ec6 ("nir/nir_opt_move: handle non-SSA defs ")
>     +Part-of:
>     <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439
>     <https://urldefense.com/v3/__https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByclpNB_Q$>>
>
>     +Upstream-Status: Backport
>     [https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911
>     <https://urldefense.com/v3/__https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChBy7EjBk3I$>]
>      ---
>     - src/compiler/nir/nir_inline_helpers.h | 10 ++++++++--
>     - src/compiler/nir/nir_opt_move.c       |  2 +-
>     - 2 files changed, 9 insertions(+), 3 deletions(-)
>     + src/compiler/nir/nir_opt_move.c | 4 ++--
>     + 1 file changed, 2 insertions(+), 2 deletions(-)
>
>     -diff --git a/src/compiler/nir/nir_inline_helpers.h
>     b/src/compiler/nir/nir_inline_helpers.h
>     -index 125dd8a..ec33f05 100644
>     ---- a/src/compiler/nir/nir_inline_helpers.h
>     -+++ b/src/compiler/nir/nir_inline_helpers.h
>     -@@ -73,8 +73,8 @@ nir_foreach_dest(nir_instr *instr,
>     nir_foreach_dest_cb cb, void *state)
>     -    return _nir_foreach_dest(instr, cb, state);
>     - }
>     -
>     --static inline bool
>     --nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void
>     *state)
>     -+static ALWAYS_INLINE bool
>     -+_nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void
>     *state)
>     - {
>     -    switch (instr->type) {
>     -    case nir_instr_type_alu: {
>     -@@ -162,3 +162,9 @@ nir_foreach_src(nir_instr *instr,
>     nir_foreach_src_cb cb, void *state)
>     -    dest_state.cb = cb;
>     -    return _nir_foreach_dest(instr, _nir_visit_dest_indirect,
>     &dest_state);
>     - }
>     -+
>     -+static inline bool
>     -+nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void
>     *state)
>     -+{
>     -+   return _nir_foreach_src(instr, cb, state);
>     -+}
>      diff --git a/src/compiler/nir/nir_opt_move.c
>     b/src/compiler/nir/nir_opt_move.c
>     -index 81bcde5..051c3cc 100644
>     +index 81bcde5c436..9aeb9f4cf86 100644
>      --- a/src/compiler/nir/nir_opt_move.c
>      +++ b/src/compiler/nir/nir_opt_move.c
>     -@@ -60,7 +60,7 @@ src_is_ssa(nir_src *src, void *state)
>     - static ALWAYS_INLINE bool
>     - instr_reads_register(nir_instr *instr)
>     +@@ -51,13 +51,13 @@
>     +  * lower register pressure.
>     +  */
>     +
>     +-static ALWAYS_INLINE bool
>     ++static inline bool
>     + src_is_ssa(nir_src *src, void *state)
>       {
>     --   return !nir_foreach_src(instr, src_is_ssa, NULL);
>     -+   return !_nir_foreach_src(instr, src_is_ssa, NULL);
>     +    return src->is_ssa;
>       }
>
>     - static bool
>     +-static ALWAYS_INLINE bool
>     ++static inline bool
>     + instr_reads_register(nir_instr *instr)
>     + {
>     +    return !nir_foreach_src(instr, src_is_ssa, NULL);
>     diff --git a/meta/recipes-graphics/mesa/mesa.inc
>     b/meta/recipes-graphics/mesa/mesa.inc
>     index 5fdb67ca2a..866b7fc462 100644
>     --- a/meta/recipes-graphics/mesa/mesa.inc
>     +++ b/meta/recipes-graphics/mesa/mesa.inc
>     @@ -18,11 +18,8 @@ SRC_URI =
>     "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz
>     <https://urldefense.com/v3/__https://mesa.freedesktop.org/archive/mesa-$*7BPV*7D.tar.xz__;JSU!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByN8-ENrs$>
>     \
>     file://0001-meson.build-check-for-all-linux-host_os-combinations.patch
>     \
>     file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
>     file://0001-util-format-Check-for-NEON-before-using-it.patch \
>     -           ${NATIVE_PATCHES} \
>     +
>     file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch \
>                 "
>     -NATIVE_PATCHES ?= ""
>     -# required by mesa-native on Ubuntu 18.04 with gcc 7.5 when
>     DEBUG_BUILD enabled
>     -NATIVE_PATCHES:class-native =
>     "file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch"
>
>      SRC_URI[sha256sum] =
>     "bed799788bf2bd9ef079d97cd8e09348bf53cb086818578e40773b2b17812922"
>
>     -- 
>     2.39.0
>
>
>     -=-=-=-=-=-=-=-=-=-=-=-
>     Links: You receive all messages sent to this group.
>     View/Reply Online (#175996):
>     https://lists.openembedded.org/g/openembedded-core/message/175996
>     <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/175996__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByuuFtNn4$>
>     Mute This Topic:
>     https://lists.openembedded.org/mt/96308437/3617156
>     <https://urldefense.com/v3/__https://lists.openembedded.org/mt/96308437/3617156__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChBynxgHZrw$>
>     Group Owner: openembedded-core+owner@lists.openembedded.org
>     <mailto:openembedded-core%2Bowner@lists.openembedded.org>
>     Unsubscribe:
>     https://lists.openembedded.org/g/openembedded-core/unsub
>     <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!d1I0Oop5Q1K7nA2qwulHGN9mgP7ofnN-EUUea_ivsroO0Ks1bU1j3VJqZuTQ0X2H5ycY9aAW5Cz_ChByHCJTpEs$>
>     [Martin.Jansa@gmail.com]
>     -=-=-=-=-=-=-=-=-=-=-=-
>

-- 
Kai Kang
Wind River Linux

[-- Attachment #2: Type: text/html, Size: 15921 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [PATCH] mesa: update submitted patch with backported version
  2023-01-16 15:30 [PATCH] mesa: update submitted patch with backported version Martin Jansa
@ 2023-01-18 12:55 ` Luca Ceresoli
  2023-01-18 13:34   ` Martin Jansa
  0 siblings, 1 reply; 5+ messages in thread
From: Luca Ceresoli @ 2023-01-18 12:55 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core, kai.kang

Hello Martin,

On Mon, 16 Jan 2023 16:30:35 +0100
"Martin Jansa" <Martin.Jansa@gmail.com> wrote:

> * this version was merged to main in:
>   https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911
>   and cherry-picked to staging/23.0 as well in:
>   https://gitlab.freedesktop.org/mesa/mesa/-/commit/54cfb552abc50e8167cdc46d87455a9a414d7c65
> 
>   and as a bonus it doesn't break the build with DEBUG_BUILD
>   for newer toolchain, so we can apply it for target build as well, see:
>   https://lists.openembedded.org/g/openembedded-core/message/169002
>   https://lists.openembedded.org/g/openembedded-core/message/170930
> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

There was a conflict while applying this patch on my testing branch due
to a previous patch touching mesa.inc. It was simple enough so I have
fixed it, but you might want to double check the resulting commit:

https://git.openembedded.org/openembedded-core-contrib/commit/?h=lucaceresoli/master-next-success&id=259d433461e246fa85ff0c0ffa98b91209e15d31

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [PATCH] mesa: update submitted patch with backported version
  2023-01-18 12:55 ` [OE-core] " Luca Ceresoli
@ 2023-01-18 13:34   ` Martin Jansa
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2023-01-18 13:34 UTC (permalink / raw)
  To: Luca Ceresoli; +Cc: openembedded-core, kai.kang

[-- Attachment #1: Type: text/plain, Size: 1467 bytes --]

On Wed, Jan 18, 2023 at 1:55 PM Luca Ceresoli <luca.ceresoli@bootlin.com>
wrote:

> Hello Martin,
>
> On Mon, 16 Jan 2023 16:30:35 +0100
> "Martin Jansa" <Martin.Jansa@gmail.com> wrote:
>
> > * this version was merged to main in:
> >
> https://gitlab.freedesktop.org/mesa/mesa/-/commit/267dd1f4d571ee606141aa66f1665aa152b4e911
> >   and cherry-picked to staging/23.0 as well in:
> >
> https://gitlab.freedesktop.org/mesa/mesa/-/commit/54cfb552abc50e8167cdc46d87455a9a414d7c65
> >
> >   and as a bonus it doesn't break the build with DEBUG_BUILD
> >   for newer toolchain, so we can apply it for target build as well, see:
> >   https://lists.openembedded.org/g/openembedded-core/message/169002
> >   https://lists.openembedded.org/g/openembedded-core/message/170930
> >
> > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>
> There was a conflict while applying this patch on my testing branch due
> to a previous patch touching mesa.inc. It was simple enough so I have
> fixed it, but you might want to double check the resulting commit:
>
>
> https://git.openembedded.org/openembedded-core-contrib/commit/?h=lucaceresoli/master-next-success&id=259d433461e246fa85ff0c0ffa98b91209e15d31


git log --oneline contrib/lucaceresoli/master-next --
meta/recipes-graphics/mesa/ | head -n 3
8b328a698cc mesa: update submitted patch with backported version
ab86331bf4a mesa: allow mesa (gbm) to compile without backend
256173b0245 mesa: update 22.2.3 -> 22.3.3

^^^ LGTM

[-- Attachment #2: Type: text/html, Size: 2739 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-18 13:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-16 15:30 [PATCH] mesa: update submitted patch with backported version Martin Jansa
2023-01-18 12:55 ` [OE-core] " Luca Ceresoli
2023-01-18 13:34   ` Martin Jansa
     [not found] <173AD3C1BA38F444.23170@lists.openembedded.org>
2023-01-16 15:33 ` Martin Jansa
2023-01-18  9:32   ` Kai

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.