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

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/radeon/radeon_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:
48
48
#include "tnl/tnl.h"
49
49
#include "tnl/t_context.h"
50
50
#include "tnl/t_array_api.h"
 
51
#include "tnl/t_save_api.h"
51
52
 
52
53
#include "radeon_context.h"
53
54
#include "radeon_state.h"
343
344
 
344
345
   _tnl_wakeup_exec( ctx );
345
346
   ctx->Driver.FlushVertices = radeonFlushVertices;
 
347
   ctx->Driver.NewList =_tnl_NewList;
346
348
 
347
349
   assert( rmesa->dma.flush == 0 );
348
350
   rmesa->vb.fell_back = GL_TRUE;
464
466
   }
465
467
}
466
468
 
 
469
static void radeonNewList( GLcontext *ctx, GLuint list, GLenum mode )
 
470
{
 
471
   VFMT_FALLBACK( __FUNCTION__ );
 
472
   _tnl_NewList( ctx, list, mode );
 
473
   return;
 
474
}
467
475
 
468
476
 
469
477
static void wrap_buffer( void )
717
725
 
718
726
         _mesa_install_exec_vtxfmt( ctx, &rmesa->vb.vtxfmt );
719
727
         ctx->Driver.FlushVertices = radeonVtxfmtFlushVertices;
 
728
         ctx->Driver.NewList = radeonNewList;
720
729
         rmesa->vb.installed = GL_TRUE;
721
730
      }
722
731
      else if (RADEON_DEBUG & DEBUG_VFMT)
731
740
            rmesa->dma.flush( rmesa );
732
741
         _tnl_wakeup_exec( ctx );
733
742
         ctx->Driver.FlushVertices = radeonFlushVertices;
 
743
         ctx->Driver.NewList =_tnl_NewList;
734
744
         rmesa->vb.installed = GL_FALSE;
735
745
      }
736
746
   }