Mesa (main): gallium: use c++11 alignas instead of PIPE_ALIGN_VAR

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


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

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

gallium: use c++11 alignas instead of PIPE_ALIGN_VAR

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

---

 src/gallium/auxiliary/tessellator/p_tessellator.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/tessellator/p_tessellator.cpp b/src/gallium/auxiliary/tessellator/p_tessellator.cpp
index 06a6cfa583b..a1ffa1e936d 100644
--- a/src/gallium/auxiliary/tessellator/p_tessellator.cpp
+++ b/src/gallium/auxiliary/tessellator/p_tessellator.cpp
@@ -40,8 +40,8 @@ namespace pipe_tessellator_wrap
    private:
       typedef CHWTessellator SUPER;
       enum pipe_prim_type    prim_mode;
-      PIPE_ALIGN_VAR(32) float     domain_points_u[MAX_POINT_COUNT];
-      PIPE_ALIGN_VAR(32) float     domain_points_v[MAX_POINT_COUNT];
+      alignas(32) float      domain_points_u[MAX_POINT_COUNT];
+      alignas(32) float      domain_points_v[MAX_POINT_COUNT];
       uint32_t               num_domain_points;
 
    public:



More information about the mesa-commit mailing list