* \author Brian Paul
*/
+/***
+ *** NOTES
+ ***
+ *** To emit GPU instructions, we basically just do an in-order traversal
+ *** of the IR tree.
+ ***/
+
+
#include "imports.h"
#include "context.h"
#include "macros.h"
/* XXX temporarily here */
static GLboolean EmitHighLevelInstructions = GL_TRUE;
+static GLboolean EmitComments = GL_FALSE;
*/
assert(n->Var->aux == n->Store);
}
-#ifdef DEBUG_foo
- /* emit NOP with comment describing the variable's storage location */
- {
+ if (EmitComments) {
+ /* emit NOP with comment describing the variable's storage location */
char s[1000];
sprintf(s, "TEMP[%d]%s = %s (size %d)",
n->Store->Index,
inst->Comment = _mesa_strdup(s);
return inst;
}
-#else
return NULL;
-#endif
case IR_VAR:
/* Reference to a variable