Mesa (main): gallium: clean up PIPE_ALIGN_STACK-definition

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 15:50:07 UTC 2022


Module: Mesa
Branch: main
Commit: 8fbad5e42fd7084c1838ab5dc9c8e39f47d4e289
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8fbad5e42fd7084c1838ab5dc9c8e39f47d4e289

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Jun  8 11:14:01 2022 +0200

gallium: clean up PIPE_ALIGN_STACK-definition

There's really just one case where this is supported; on GCC for x86.
All other cases do nothing, so let's remove the complexity that is no
longer needed.

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>

---

 src/gallium/include/pipe/p_compiler.h | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index f543236a0e1..86dab57b196 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -104,28 +104,12 @@ typedef unsigned char boolean;
 
 
 /* Macro for stack alignment. */
-#if defined(__GNUC__)
-
-#ifdef PIPE_ARCH_X86
+#if defined(__GNUC__) && defined(PIPE_ARCH_X86)
 #define PIPE_ALIGN_STACK __attribute__((force_align_arg_pointer))
 #else
 #define PIPE_ALIGN_STACK
 #endif
 
-#elif defined(_MSC_VER)
-
-#define PIPE_ALIGN_STACK
-
-#elif defined(SWIG)
-
-#define PIPE_ALIGN_STACK
-
-#else
-
-#error "Unsupported compiler"
-
-#endif
-
 /**
  * Declare a variable on its own cache line.
  *



More information about the mesa-commit mailing list