~ubuntu-branches/ubuntu/precise/mesa-lts-raring/precise-proposed

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/i965/brw_fs_fp.cpp

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2013-10-16 13:52:07 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131016135207-9gtod705bh0zpbxe
Tags: 9.1.7-1ubuntu2~precise1
Copy from raring, new upstream release. (LP: #1236340)

Show diffs side-by-side

added added

removed removed

Lines of Context:
493
493
         ir_constant_data junk_data;
494
494
         ir->coordinate = new(mem_ctx) ir_constant(coordinate_type, &junk_data);
495
495
 
 
496
         if (fpi->TexShadow) {
 
497
            shadow_c = regoffset(coordinate, 2);
 
498
            ir->shadow_comparitor = new(mem_ctx) ir_constant(0.0f);
 
499
         }
 
500
 
496
501
         coordinate = rescale_texcoord(ir, coordinate,
497
502
                                       fpi->TexSrcTarget == TEXTURE_RECT_INDEX,
498
503
                                       fpi->TexSrcUnit, fpi->TexSrcUnit);
499
504
 
500
 
         if (fpi->TexShadow) {
501
 
            shadow_c = regoffset(coordinate, 2);
502
 
            ir->shadow_comparitor = new(mem_ctx) ir_constant(0.0f);
503
 
         }
504
 
 
505
505
         fs_inst *inst;
506
506
         if (intel->gen >= 7) {
507
507
            inst = emit_texture_gen7(ir, dst, coordinate, shadow_c, lod, dpdy);