diff options
author | Brian <[email protected]> | 2007-04-08 16:47:32 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-08 16:47:32 -0600 |
commit | 5c0c60a13cb95032a49aa77ae7275387a351a057 (patch) | |
tree | 456aa4eba1683dfc06835c80212a928d2d0af656 /src/mesa/shader/slang/slang_codegen.c | |
parent | 5dba996dba3bd55f1f44904e7abd9486fee899d9 (diff) |
support for GLSL 1.20 non-square matrices
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 0c14e64cf97..a25037cd61c 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -143,6 +143,15 @@ _slang_sizeof_type_specifier(const slang_type_specifier *spec) return 3 * 3; case SLANG_SPEC_MAT4: return 4 * 4; + case SLANG_SPEC_MAT23: + case SLANG_SPEC_MAT32: + return 2 * 3; + case SLANG_SPEC_MAT24: + case SLANG_SPEC_MAT42: + return 2 * 4; + case SLANG_SPEC_MAT34: + case SLANG_SPEC_MAT43: + return 3 * 4; case SLANG_SPEC_SAMPLER1D: case SLANG_SPEC_SAMPLER2D: case SLANG_SPEC_SAMPLER3D: |