mesa: Add function to calculate an orthographic projection
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 28 Apr 2020 17:18:47 +0000 (10:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 15:35:43 +0000 (15:35 +0000)
commit29f10ede71ffe8352bdfda154f3994542094bcfb
treeae2cdc863fcc78644aa2b9ed49e92583262ed344
parentc731f2ab63d001d47995e3f5e0e8f5c74d5a2e55
mesa: Add function to calculate an orthographic projection

Unlike the existing _math_matrix_ortho, the new _math_float_ortho
function just stores the calculated matrix in an array of floats.  It
does not multiply the new matrix with data already stored.

   text     data     bss      dec    hex  filename
12243486 1344936 1290748 14879170 e309c2  before/lib64/dri/i965_dri.so
12243510 1344936 1290748 14879194 e309da  after/lib64/dri/i965_dri.so

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