Summary: | [GLSL] gl_TextureMatrix{Inverse,Transpose,InverseTranspose} unsupported | ||
---|---|---|---|
Product: | Mesa | Reporter: | Gordon Jin <gordon.jin> |
Component: | Mesa core | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | CC: | eric |
Version: | git | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | test case |
tested with mesa master 9476efe77ff196993937c3aa2e5bca725ceb0b41 on Piketon. commit b13a90d76305d80201f7d35bd44164e911bef5bb Author: Eric Anholt <eric@anholt.net> Date: Tue Sep 21 10:06:51 2010 -0700 builtin-texturematrix: test for gl_TextureMatrix inverse/transpose presence. Bug #30196 commit b5bb21562942dab7571ef748c3ca562a66f25b33 Author: Eric Anholt <eric@anholt.net> Date: Tue Sep 21 10:08:38 2010 -0700 glsl: Add definition of gl_TextureMatrix inverse/transpose builtins. Fixes glsl2/builtin-texturematrix. Bug #30196. verified |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 38707 [details] test case GLSL spec 1.1 section 7.5 mentions below variables are built into GLSL: gl_TextureMatrixInverse[gl_MaxTextureCoords] gl_TextureMatrixTranspose[gl_MaxTextureCoords] gl_TextureMatrixInverseTranspose[gl_MaxTextureCoords] But they are not supported in either glsl2 or the old glsl compiler. The attached case gets below compiling error: Failed to compile fragment shader TextureMatrixInverse.frag: 0:5(34): error: `gl_TextureMatrixInverse' undeclared 0:6(36): error: `gl_TextureMatrixTranspose' undeclared 0:7(43): error: `gl_TextureMatrixInverseTranspose' undeclared Shader source: void main() { mat4 result; result = gl_TextureMatrix[0]; result = gl_TextureMatrixInverse[0]; result = gl_TextureMatrixTranspose[0]; result = gl_TextureMatrixInverseTranspose[0]; }