#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. |
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.