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

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/mga/mgadd.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:
41
41
#include "mga_xmesa.h"
42
42
#include "utils.h"
43
43
 
44
 
#define DRIVER_DATE     "20050609"
 
44
#define DRIVER_DATE     "20061030"
45
45
 
46
46
 
47
47
/***************************************
74
74
}
75
75
 
76
76
 
77
 
static void mgaBufferSize(GLframebuffer *buffer, GLuint *width, GLuint *height)
78
 
{
79
 
   GET_CURRENT_CONTEXT(ctx);
80
 
   mgaContextPtr mmesa = MGA_CONTEXT(ctx);
81
 
 
82
 
   /* Need to lock to make sure the driDrawable is uptodate.  This
83
 
    * information is used to resize Mesa's software buffers, so it has
84
 
    * to be correct.
85
 
    */
86
 
   LOCK_HARDWARE( mmesa );
87
 
   *width = mmesa->driDrawable->w;
88
 
   *height = mmesa->driDrawable->h;
89
 
   UNLOCK_HARDWARE( mmesa );
90
 
}
91
 
 
92
 
 
93
77
void mgaInitDriverFuncs( struct dd_function_table *functions )
94
78
{
95
 
   functions->GetBufferSize = mgaBufferSize;
96
 
   functions->ResizeBuffers = _mesa_resize_framebuffer;
97
79
   functions->GetString = mgaGetString;
98
80
}