core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

prog_optimize.h File Reference

#include "main/config.h"

Functions

GLboolean _mesa_find_temp_intervals (const struct prog_instruction *instructions, GLuint numInstructions, GLint intBegin[MAX_PROGRAM_TEMPS], GLint intEnd[MAX_PROGRAM_TEMPS])
 Find first/last instruction that references each temporary register.
void _mesa_optimize_program (GLcontext *ctx, struct gl_program *program)
 Apply optimizations to the given program to eliminate unnecessary instructions, temp regs, etc.


Function Documentation

GLboolean _mesa_find_temp_intervals ( const struct prog_instruction instructions,
GLuint  numInstructions,
GLint  intBegin[MAX_PROGRAM_TEMPS],
GLint  intEnd[MAX_PROGRAM_TEMPS] 
)

Find first/last instruction that references each temporary register.

< Start, end instructions of loop

void _mesa_optimize_program ( GLcontext ctx,
struct gl_program program 
)

Apply optimizations to the given program to eliminate unnecessary instructions, temp regs, etc.


Generated on Sun Sep 27 06:48:02 2009 for Mesa Vertex and Fragment Program code by  doxygen 1.5.4