Updated #includes after splitting program.h
authorBrian <brian@yutani.localnet.net>
Thu, 14 Dec 2006 22:02:19 +0000 (15:02 -0700)
committerBrian <brian@yutani.localnet.net>
Thu, 14 Dec 2006 22:02:19 +0000 (15:02 -0700)
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_compile.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_link2.c

index 40a27bc35127827b9f339a722ef9f13e6344cbcf..af543adf63bc276bdd5fce98817b36652b6aa649 100644 (file)
@@ -40,6 +40,8 @@
 #include "slang_ir.h"
 #include "mtypes.h"
 #include "program.h"
+#include "prog_instruction.h"
+#include "prog_parameter.h"
 #include "slang_print.h"
 
 
index a9c84abdce019c6fb00769b078ddc950d18501a8..463088fc5cdc52bbf9b45f1fb920f2675f25c39c 100644 (file)
@@ -31,6 +31,7 @@
 #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"
index 29d9544ebe27fbc61152f5d31a3ca3539e4990ab..104064fd1779304a0f78e0cad52751b4d1c7ec2a 100644 (file)
@@ -33,7 +33,9 @@
 #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"
 
 
@@ -554,6 +556,7 @@ static GLint
 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;
@@ -570,6 +573,7 @@ slang_alloc_varying(struct gl_program *prog, const char *name)
       prog->InputsRead |= (1 << (i + FRAG_ATTRIB_VAR0));
 #endif
    }
+#endif
    return i;
 }
 
index 76954e17a645c711ac1dff3a684b8336b468be46..4b3588454ce70b3a0748ab593b6f89ddaf98c39e 100644 (file)
@@ -33,7 +33,8 @@
 #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"
 
@@ -108,7 +109,7 @@ link_varying_vars(struct gl_linked_program *linked, struct gl_program *prog)
          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 */