glsl: add determinant() functions.
authorPaul Berry <stereotype441@gmail.com>
Mon, 6 Aug 2012 21:36:31 +0000 (14:36 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 6 Dec 2012 20:13:22 +0000 (12:13 -0800)
commit9a69f66353010d3fe8c666bd4adee26139f32efa
tree18d805e49c8442870c706b85ffde40a8752c3d5a
parent4d6d22100abf4512865c316f3ad6a3bd25dd28c1
glsl: add determinant() functions.

These functions are defined in GLSL 1.50 and GLES 3.00 ES.

The formulas have been extracted from the existing implementation of
inverse().

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Carl Worth <cworth@cworth.org>
src/glsl/builtins/glsl/determinant.glsl [new file with mode: 0644]