From 4a00e4ff6122afda320ed5ab1a3abbab5cb52027 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 26 Jun 2023 15:24:38 +0200 Subject: [PATCH] math: remove unused defines MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since libmesa_classic got removed, we no longer have the assembly sources that used these defines, so let's get rid of them. Reviewed-by: Yonggang Luo Reviewed-by: Marek Olšák Part-of: --- src/mesa/math/m_matrix.c | 3 --- src/mesa/math/m_matrix.h | 7 ------- 2 files changed, 10 deletions(-) diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index 2f67b1d..af05890 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/math/m_matrix.c @@ -953,9 +953,6 @@ _math_matrix_viewport(GLmatrix *m, const float scale[3], void _math_matrix_set_identity( GLmatrix *mat ) { - STATIC_ASSERT(MATRIX_M == offsetof(GLmatrix, m)); - STATIC_ASSERT(MATRIX_INV == offsetof(GLmatrix, inv)); - memcpy( mat->m, Identity, sizeof(Identity) ); memcpy( mat->inv, Identity, sizeof(Identity) ); diff --git a/src/mesa/math/m_matrix.h b/src/mesa/math/m_matrix.h index ee0072e..7f072b3 100644 --- a/src/mesa/math/m_matrix.h +++ b/src/mesa/math/m_matrix.h @@ -55,13 +55,6 @@ extern "C" { /*@}*/ /** - * If you add a new field, please add it to the STATIC_ASSERTs in - * _math_matrix_set_identity(). - */ -#define MATRIX_M 0 -#define MATRIX_INV (MATRIX_M + 16 * 4) - -/** * Different kinds of 4x4 transformation matrices. * We use these to select specific optimized vertex transformation routines. */ -- 2.7.4