Merge branch 'glsl2'
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 17 Aug 2010 02:08:53 +0000 (19:08 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 17 Aug 2010 02:08:53 +0000 (19:08 -0700)
Conflicts:
src/mesa/program/prog_optimize.c

1  2 
src/mesa/SConscript
src/mesa/main/mtypes.h
src/mesa/program/hash_table.h
src/mesa/program/prog_instruction.h
src/mesa/program/prog_optimize.c
src/mesa/program/prog_print.h

Simple merge
Simple merge
Simple merge
Simple merge
index c78187c983d12a334939e9c47834e4800c4b6070,457ace14c6b89abeb7881780bcf4e3937ce4ee07..ab878755e25dc28c938e87ffc3e36b72ff8ee954
@@@ -230,10 -227,10 +235,10 @@@ replace_regs(struct gl_program *prog, g
   * that are written to but never read.  Remove any instructions that
   * write to such registers.  Be careful with condition code setters.
   */
 -static void
 -_mesa_remove_dead_code(struct gl_program *prog)
 +static GLboolean
 +_mesa_remove_dead_code_global(struct gl_program *prog)
  {
-    GLboolean tempRead[MAX_PROGRAM_TEMPS][4];
+    GLboolean tempRead[REG_ALLOCATE_MAX_PROGRAM_TEMPS][4];
     GLboolean *removeInst; /* per-instruction removal flag */
     GLuint i, rem = 0, comp;
  
           if (inst->SrcReg[j].File == PROGRAM_TEMPORARY) {
              const GLuint index = inst->SrcReg[j].Index;
              GLuint read_mask;
-             ASSERT(index < MAX_PROGRAM_TEMPS);
+             ASSERT(index < REG_ALLOCATE_MAX_PROGRAM_TEMPS);
 -          read_mask = get_src_arg_mask(inst, j);
 +          read_mask = get_src_arg_mask(inst, j, NO_MASK);
  
              if (inst->SrcReg[j].RelAddr) {
                 if (dbg)
Simple merge