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

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/r200/r200_vtxfmt.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:
57
57
#include "tnl/tnl.h"
58
58
#include "tnl/t_context.h"
59
59
#include "tnl/t_array_api.h"
 
60
#include "tnl/t_save_api.h"
60
61
 
61
62
#include "dispatch.h"
62
63
 
106
107
   count_func( "FogCoordfvEXT", &rmesa->vb.dfn_cache.FogCoordfvEXT );*/
107
108
}
108
109
 
 
110
static void r200NewList( GLcontext *ctx, GLuint list, GLenum mode )
 
111
{
 
112
   VFMT_FALLBACK( __FUNCTION__ );
 
113
   _tnl_NewList( ctx, list, mode );
 
114
   return;
 
115
}
109
116
 
110
117
void r200_copy_to_current( GLcontext *ctx ) 
111
118
{
395
402
 
396
403
   _tnl_wakeup_exec( ctx );
397
404
   ctx->Driver.FlushVertices = r200FlushVertices;
 
405
   ctx->Driver.NewList = _tnl_NewList;
398
406
 
399
407
   assert( rmesa->dma.flush == 0 );
400
408
   rmesa->vb.fell_back = GL_TRUE;
853
861
 
854
862
         _mesa_install_exec_vtxfmt( ctx, &rmesa->vb.vtxfmt );
855
863
         ctx->Driver.FlushVertices = r200VtxFmtFlushVertices;
 
864
         ctx->Driver.NewList = r200NewList;
856
865
         rmesa->vb.installed = GL_TRUE;
857
866
      }
858
867
      else if (R200_DEBUG & DEBUG_VFMT)
867
876
            rmesa->dma.flush( rmesa );
868
877
         _tnl_wakeup_exec( ctx );
869
878
         ctx->Driver.FlushVertices = r200FlushVertices;
 
879
         ctx->Driver.NewList =_tnl_NewList;
870
880
         rmesa->vb.installed = GL_FALSE;
871
881
      }
872
882
   }