[Mesa-dev] [PATCH] mesa: remove _math_matrix_alloc_inv()

Kenneth Graunke kenneth at whitecape.org
Wed Jul 25 10:27:44 PDT 2012


On 07/25/2012 06:33 AM, Brian Paul wrote:
> Always allocate space for the inverse matrix in _math_matrix_ctr()
> since we were always calling _math_matrix_alloc_inv() anyway.
> ---
>  src/mesa/main/matrix.c            |    4 +--
>  src/mesa/math/m_matrix.c          |   51 ++++++++-----------------------------
>  src/mesa/math/m_matrix.h          |    5 +---
>  src/mesa/program/prog_statevars.c |    1 -
>  4 files changed, 13 insertions(+), 48 deletions(-)

Nice cleanup!  Much less fiddly code.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>


More information about the mesa-dev mailing list