mesa: canonicalize matrix in glPushMatrix to make glPopMatrix possibly a no-op
authorMarek Olšák <marek.olsak@amd.com>
Tue, 6 Oct 2020 00:38:51 +0000 (20:38 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Dec 2020 11:52:10 +0000 (11:52 +0000)
commit019f13160131212a1c03f0015f9e8ff9c7282182
tree0d15541355a72933b4d98c61873ed06243935b5b
parentf5d17070bec94642be848aa40a471cdae8f05ac3
mesa: canonicalize matrix in glPushMatrix to make glPopMatrix possibly a no-op

If there are no changes to the matrix, we can move pop the stack but not
update any state constants.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
src/mesa/main/matrix.c
src/mesa/math/m_matrix.c
src/mesa/math/m_matrix.h