Implement gl_TextureMatrix built-in uniform

This commit is contained in:
Ian Romanick 2010-04-26 14:59:32 -07:00
parent 230ade93a6
commit 3eba593f35
1 changed files with 8 additions and 3 deletions

View File

@ -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[] */