gallium: use c++11 alignas instead of PIPE_ALIGN_VAR
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 8 Jun 2022 09:06:38 +0000 (11:06 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 15:08:38 +0000 (15:08 +0000)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>

src/gallium/auxiliary/tessellator/p_tessellator.cpp

index 06a6cfa..a1ffa1e 100644 (file)
@@ -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: