tnl: Call _mesa_matrix_analyse to make sure the inverse MVP is updated
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Mar 2021 19:55:42 +0000 (11:55 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Mar 2021 21:11:47 +0000 (21:11 +0000)
commitcb3dad8ca4d10d397466c0387bce97bc23cfaa26
tree9e14523fd73179812c99137f7db650f7585c6319
parent1cd3b57db87f86ddcb9d71afe51777226c34df79
tnl: Call _mesa_matrix_analyse to make sure the inverse MVP is updated

A recent commit stopped updating the inverse MVP matrix, because usually
only GLSL built-ins need it.  However, TNL also needs it.  So make sure
it's correct when needed.

Fixes: 10371c520c1 ("mesa: don't compute the ModelView * Projection matrix if not used")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9346>
src/mesa/tnl/t_vb_program.c
src/mesa/tnl/t_vb_vertex.c