diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-26 14:59:32 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-26 14:59:32 -0700 |
commit | 3eba593f35a966949ee7c5990f3e9f519ea0191a (patch) | |
tree | fc0fd3e541dff028533ae20ddd6c05649772d03d | |
parent | 230ade93a6efeb7a1cbbae1d2226a91f08890ae8 (diff) |
Implement gl_TextureMatrix built-in uniform
-rw-r--r-- | ir_variable.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ir_variable.cpp b/ir_variable.cpp index ba91d566df..b5e7d6e933 100644 --- a/ir_variable.cpp +++ b/ir_variable.cpp @@ -95,10 +95,15 @@ generate_110_uniforms(exec_list *instructions, instructions, symtab); } - /* FINISHME: Add support for gl_TextureMatrix[]. The size of this array is - * FINISHME: implementation dependent based on the value of - * FINISHME: GL_MAX_TEXTURE_COORDS. + /* FINISHME: The size of this array is implementation dependent based on the + * FINISHME: value of GL_MAX_TEXTURE_COORDS. GL_MAX_TEXTURE_COORDS must be + * FINISHME: at least 2, so hard-code 2 for now. */ + const glsl_type *const mat4_array_type = + glsl_type::get_array_instance(glsl_type::mat4_type, 2); + + add_variable("gl_TextureMatrix", ir_var_uniform, mat4_array_type, + instructions, symtab); /* FINISHME: Add support for gl_DepthRangeParameters */ /* FINISHME: Add support for gl_ClipPlane[] */ |