~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/savage/savagestate.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
    case BUFFER_BIT_FRONT_LEFT:
648
648
        imesa->IsDouble = GL_FALSE;
649
649
        imesa->regs.s4.destCtrl.ni.offset = imesa->savageScreen->frontOffset>>11;
650
 
 
651
 
        imesa->NotFirstFrame = GL_FALSE;
652
 
        savageXMesaSetFrontClipRects( imesa );
653
 
        FALLBACK( ctx, SAVAGE_FALLBACK_DRAW_BUFFER, GL_FALSE );
654
650
        break;
655
651
    case BUFFER_BIT_BACK_LEFT:
656
652
        imesa->IsDouble = GL_TRUE;
657
653
        imesa->regs.s4.destCtrl.ni.offset = imesa->savageScreen->backOffset>>11;
658
 
        imesa->NotFirstFrame = GL_FALSE;
659
 
        savageXMesaSetBackClipRects( imesa );
660
 
        FALLBACK( ctx, SAVAGE_FALLBACK_DRAW_BUFFER, GL_FALSE );
661
654
        break;
662
655
    default:
663
656
        FALLBACK( ctx, SAVAGE_FALLBACK_DRAW_BUFFER, GL_TRUE );
664
657
        return;
665
658
    }
666
659
    
 
660
    imesa->NotFirstFrame = GL_FALSE;
 
661
    savageXMesaSetClipRects(imesa);
 
662
    FALLBACK(ctx, SAVAGE_FALLBACK_DRAW_BUFFER, GL_FALSE);
 
663
 
667
664
    if (destCtrl != imesa->regs.s4.destCtrl.ui)
668
665
        imesa->dirty |= SAVAGE_UPLOAD_GLOBAL;
669
666
}
1695
1692
    ctx->Driver.CullFace = 0;
1696
1693
    ctx->Driver.FrontFace = 0;
1697
1694
#endif /* end #if HW_CULL */
1698
 
    ctx->Driver.PolygonMode=NULL;
1699
 
    ctx->Driver.PolygonStipple = 0;
1700
 
    ctx->Driver.LineStipple = 0;
1701
 
    ctx->Driver.LineWidth = 0;
1702
 
    ctx->Driver.LogicOpcode = 0;
1703
1695
    ctx->Driver.DrawBuffer = savageDDDrawBuffer;
1704
1696
    ctx->Driver.ReadBuffer = savageDDReadBuffer;
1705
1697
    ctx->Driver.ClearColor = savageDDClearColor;
1708
1700
    ctx->Driver.Viewport = savageViewport;
1709
1701
    ctx->Driver.RenderMode = savageRenderMode;
1710
1702
 
1711
 
    ctx->Driver.ClearIndex = 0;
1712
 
    ctx->Driver.IndexMask = 0;
1713
 
 
1714
1703
    if (SAVAGE_CONTEXT( ctx )->savageScreen->chipset >= S3_SAVAGE4) {
1715
1704
        ctx->Driver.Enable = savageDDEnable_s4;
1716
1705
        ctx->Driver.AlphaFunc = savageDDAlphaFunc_s4;
1736
1725
        ctx->Driver.StencilMaskSeparate = NULL;
1737
1726
        ctx->Driver.StencilOpSeparate = NULL;
1738
1727
    }
1739
 
 
1740
 
   /* Swrast hooks for imaging extensions:
1741
 
    */
1742
 
   ctx->Driver.CopyColorTable = _swrast_CopyColorTable;
1743
 
   ctx->Driver.CopyColorSubTable = _swrast_CopyColorSubTable;
1744
 
   ctx->Driver.CopyConvolutionFilter1D = _swrast_CopyConvolutionFilter1D;
1745
 
   ctx->Driver.CopyConvolutionFilter2D = _swrast_CopyConvolutionFilter2D;
1746
1728
}