meta: Stop frobbing MatrixMode
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Jun 2017 23:15:52 +0000 (16:15 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 15:35:43 +0000 (15:35 +0000)
commite5d2fbf3528ed96f6b0afc953232983b8753b03a
tree7a2a91767ad4adca938ae6d4bdae9a26d69b20b6
parent29f10ede71ffe8352bdfda154f3994542094bcfb
meta: Stop frobbing MatrixMode

   text     data     bss      dec    hex  filename
12243510 1344936 1290748 14879194 e309da  before/lib64/dri/i965_dri.so
12243446 1344936 1290748 14879130 e3099a  after/lib64/dri/i965_dri.so

v2: Use _mesa_load_matrix to set the projection matrix instead of
frobbing dirty bits directly.  Suggested by Jason.  Clean up some
comments in the neighborhood.  Since glOrtho isn't called, there's no
point in mentioning it in the comment.  Only _mesa_load_identity_matrix
on the projection matrix when it isn't set to an ortho matrix.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/856>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta.h