#include "slang_ir.h"
#include "mtypes.h"
#include "program.h"
+#include "prog_instruction.h"
+#include "prog_parameter.h"
#include "slang_print.h"
#include "imports.h"
#include "context.h"
#include "program.h"
+#include "prog_parameter.h"
#include "grammar_mesa.h"
#include "slang_codegen.h"
#include "slang_compile.h"
#include "get.h"
#include "macros.h"
#include "program.h"
-#include "program_instruction.h"
+#include "prog_instruction.h"
+#include "prog_parameter.h"
+#include "prog_statevars.h"
#include "slang_emit.h"
slang_alloc_varying(struct gl_program *prog, const char *name)
{
GLint i = _mesa_add_varying(prog->Varying, name, 4); /* XXX fix size */
+#if 0
if (prog->Target == GL_VERTEX_PROGRAM_ARB) {
#ifdef OLD_LINK
i += VERT_RESULT_VAR0;
prog->InputsRead |= (1 << (i + FRAG_ATTRIB_VAR0));
#endif
}
+#endif
return i;
}
#include "hash.h"
#include "macros.h"
#include "program.h"
-#include "program_instruction.h"
+#include "prog_instruction.h"
+#include "prog_parameter.h"
#include "shaderobjects.h"
#include "slang_link.h"
if (inst->SrcReg[j].File == PROGRAM_VARYING) {
inst->SrcReg[j].File = newFile;
inst->SrcReg[j].Index = map[ inst->SrcReg[j].Index ] + firstVarying;
- varsRead |= (1 << inst->DstReg.Index);
+ varsRead |= (1 << inst->SrcReg[j].Index);
}
}
/* XXX update program OutputsWritten, InputsRead */