~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/mesa/program/prog_optimize.c

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
472
472
      mov->SrcReg[0].HasIndex2 == 0 &&
473
473
      mov->SrcReg[0].RelAddr2 == 0 &&
474
474
      mov->DstReg.RelAddr == 0 &&
475
 
      mov->DstReg.CondMask == COND_TR &&
476
 
      mov->SaturateMode == SATURATE_OFF;
 
475
      mov->DstReg.CondMask == COND_TR;
477
476
}
478
477
 
479
478
 
482
481
{
483
482
   return
484
483
      can_downward_mov_be_modifed(mov) &&
485
 
      mov->DstReg.File == PROGRAM_TEMPORARY;
 
484
      mov->DstReg.File == PROGRAM_TEMPORARY &&
 
485
      mov->SaturateMode == SATURATE_OFF;
486
486
}
487
487
 
488
488
 
657
657
   if (mask != (inst->DstReg.WriteMask & mask))
658
658
      return GL_FALSE;
659
659
 
 
660
   inst->SaturateMode |= mov->SaturateMode;
 
661
 
660
662
   /* Depending on the instruction, we may need to recompute the swizzles.
661
663
    * Also, some other instructions (like TEX) are not linear. We will only
662
664
    * consider completely active sources and destinations
1356
1358
         any_change = GL_TRUE;
1357
1359
      if (_mesa_remove_dead_code_local(program))
1358
1360
         any_change = GL_TRUE;
 
1361
 
 
1362
      any_change = _mesa_constant_fold(program) || any_change;
1359
1363
      _mesa_reallocate_registers(program);
1360
1364
   } while (any_change);
1361
1365
}