OSDN Git Service

Remove Driver.ResizeBuffers = _mesa_resize_framebuffer lines.
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 15 Oct 2006 18:18:39 +0000 (18:18 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 15 Oct 2006 18:18:39 +0000 (18:18 +0000)
This is already done by the preceeding call to _mesa_init_driver_functions()
which plugs in default functions like that.

18 files changed:
src/mesa/drivers/dri/fb/fb_dri.c
src/mesa/drivers/dri/fb/fb_egl.c
src/mesa/drivers/dri/gamma/gamma_dd.c
src/mesa/drivers/dri/i810/i810context.c
src/mesa/drivers/dri/i915/intel_context.c
src/mesa/drivers/dri/i965/intel_buffers.c
src/mesa/drivers/dri/mach64/mach64_dd.c
src/mesa/drivers/dri/mga/mgadd.c
src/mesa/drivers/dri/r128/r128_dd.c
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/r300/radeon_context.c
src/mesa/drivers/dri/radeon/radeon_context.c
src/mesa/drivers/dri/s3v/s3v_dd.c
src/mesa/drivers/dri/savage/savagedd.c
src/mesa/drivers/dri/tdfx/tdfx_dd.c
src/mesa/drivers/dri/trident/trident_dd.c
src/mesa/drivers/dri/trident/trident_state.c
src/mesa/drivers/dri/unichrome/via_context.c

index 6bbe490..d6ba23b 100644 (file)
@@ -137,7 +137,6 @@ init_core_functions( struct dd_function_table *functions )
 {
    functions->GetString = get_string;
    functions->UpdateState = update_state;
-   functions->ResizeBuffers = _mesa_resize_framebuffer;
    functions->GetBufferSize = get_buffer_size;
    functions->Viewport = viewport;
 
index 1b38b26..5c74b0b 100644 (file)
@@ -429,7 +429,6 @@ init_core_functions( struct dd_function_table *functions )
 {
    functions->GetString = get_string;
    functions->UpdateState = update_state;
-   functions->ResizeBuffers = _mesa_resize_framebuffer;
    functions->GetBufferSize = get_buffer_size;
    functions->Viewport = viewport;
 
index cca382d..8479eb3 100644 (file)
@@ -105,7 +105,6 @@ void gammaDDInitExtensions( GLcontext *ctx )
 void gammaDDInitDriverFuncs( GLcontext *ctx )
 {
    ctx->Driver.GetBufferSize           = gammaDDGetBufferSize;
-   ctx->Driver.ResizeBuffers            = _swrast_alloc_buffers;
    ctx->Driver.GetString               = gammaDDGetString;
 
    ctx->Driver.Error                   = NULL;
@@ -117,7 +116,6 @@ void gammaDDInitDriverFuncs( GLcontext *ctx )
    ctx->Driver.CopyPixels               = _swrast_CopyPixels;
    ctx->Driver.DrawPixels               = _swrast_DrawPixels;
    ctx->Driver.ReadPixels               = _swrast_ReadPixels;
-   ctx->Driver.ResizeBuffers            = _swrast_alloc_buffers;
 
    /* Swrast hooks for imaging extensions:
     */
index 23373ef..c0f4efd 100644 (file)
@@ -277,7 +277,6 @@ i810CreateContext( const __GLcontextModes *mesaVis,
    ctx->Const.PointSizeGranularity = 1.0;
 
    ctx->Driver.GetBufferSize = i810BufferSize;
-   ctx->Driver.ResizeBuffers = _mesa_resize_framebuffer;
    ctx->Driver.GetString = i810GetString;
 
    /* Who owns who?
index 480b442..444fcd5 100644 (file)
@@ -264,7 +264,6 @@ void intelInitDriverFunctions( struct dd_function_table *functions )
    functions->Flush = intelglFlush;
    functions->Finish = intelFinish;
    functions->GetBufferSize = intelBufferSize;
-   functions->ResizeBuffers = _mesa_resize_framebuffer;
    functions->GetString = intelGetString;
    functions->UpdateState = intelInvalidateState;
    functions->CopyColorTable = _swrast_CopyColorTable;
index 8539566..9c98571 100644 (file)
@@ -549,7 +549,6 @@ void intelInitBufferFuncs( struct dd_function_table *functions )
 {
    functions->Clear = intelClear;
    functions->GetBufferSize = intelBufferSize;
-   functions->ResizeBuffers = _mesa_resize_framebuffer;
    functions->DrawBuffer = intelDrawBuffer;
    functions->ReadBuffer = intelReadBuffer;
 }
index 7c27c58..17e8d74 100644 (file)
@@ -127,7 +127,6 @@ static void mach64DDFinish( GLcontext *ctx )
 void mach64InitDriverFuncs( struct dd_function_table *functions )
 {
    functions->GetBufferSize    = mach64DDGetBufferSize;
-   functions->ResizeBuffers    = _mesa_resize_framebuffer;
    functions->GetString        = mach64DDGetString;
    functions->Finish           = mach64DDFinish;
    functions->Flush            = mach64DDFlush;
index 8532ea9..faf46f3 100644 (file)
@@ -93,6 +93,5 @@ static void mgaBufferSize(GLframebuffer *buffer, GLuint *width, GLuint *height)
 void mgaInitDriverFuncs( struct dd_function_table *functions )
 {
    functions->GetBufferSize = mgaBufferSize;
-   functions->ResizeBuffers = _mesa_resize_framebuffer;
    functions->GetString = mgaGetString;
 }
index 4f0bb47..54f2b21 100644 (file)
@@ -141,7 +141,6 @@ static void r128Finish( GLcontext *ctx )
 void r128InitDriverFuncs( struct dd_function_table *functions )
 {
    functions->GetBufferSize    = r128GetBufferSize;
-   functions->ResizeBuffers    = _mesa_resize_framebuffer;
    functions->GetString                = r128GetString;
    functions->Finish           = r128Finish;
    functions->Flush            = r128Flush;
index 2e55ac1..9cec501 100644 (file)
@@ -234,7 +234,6 @@ static const struct tnl_pipeline_stage *r200_pipeline[] = {
 static void r200InitDriverFuncs( struct dd_function_table *functions )
 {
     functions->GetBufferSize           = r200GetBufferSize;
-    functions->ResizeBuffers            = _mesa_resize_framebuffer;
     functions->GetString               = r200GetString;
 
     functions->Error                   = NULL;
index bfedae4..0932112 100644 (file)
@@ -119,7 +119,6 @@ static void radeonGetBufferSize(GLframebuffer * buffer,
 static void radeonInitDriverFuncs(struct dd_function_table *functions)
 {
        functions->GetBufferSize = radeonGetBufferSize;
-       functions->ResizeBuffers = _mesa_resize_framebuffer;
        functions->GetString = radeonGetString;
 }
 
index edfa36f..6328c08 100644 (file)
@@ -187,7 +187,6 @@ static const struct tnl_pipeline_stage *radeon_pipeline[] = {
 static void radeonInitDriverFuncs( struct dd_function_table *functions )
 {
     functions->GetBufferSize   = radeonGetBufferSize;
-    functions->ResizeBuffers   = _mesa_resize_framebuffer;
     functions->GetString       = radeonGetString;
 }
 
index 2c8e230..072e97b 100644 (file)
@@ -97,7 +97,6 @@ void s3vInitDriverFuncs( GLcontext *ctx )
    ctx->Driver.CopyPixels               = _swrast_CopyPixels;
    ctx->Driver.DrawPixels               = _swrast_DrawPixels;
    ctx->Driver.ReadPixels               = _swrast_ReadPixels;
-   ctx->Driver.ResizeBuffers            = _mesa_resize_framebuffer;
 
    /* Swrast hooks for imaging extensions:
     */
index ced44e5..ae19481 100644 (file)
@@ -114,6 +114,5 @@ static void savageBufferSize(GLframebuffer *buffer, GLuint *width, GLuint *heigh
 void savageDDInitDriverFuncs( GLcontext *ctx )
 {
    ctx->Driver.GetBufferSize = savageBufferSize;
-   ctx->Driver.ResizeBuffers = _mesa_resize_framebuffer;
    ctx->Driver.GetString = savageDDGetString;
 }
index 3dbd24d..c2f3185 100644 (file)
@@ -168,7 +168,6 @@ void tdfxDDInitDriverFuncs( const __GLcontextModes *visual,
 
    functions->GetString                = tdfxDDGetString;
    functions->GetBufferSize    = tdfxDDGetBufferSize;
-   functions->ResizeBuffers     = _mesa_resize_framebuffer;
 
    /* Accelerated paths
     */
index 8c3af20..9e6e4b2 100644 (file)
@@ -116,7 +116,6 @@ void tridentDDInitDriverFuncs( GLcontext *ctx )
    ctx->Driver.CopyPixels               = _swrast_CopyPixels;
    ctx->Driver.DrawPixels               = _swrast_DrawPixels;
    ctx->Driver.ReadPixels               = _swrast_ReadPixels;
-   ctx->Driver.ResizeBuffers            = _mesa_resize_framebuffer;
 
    /* Swrast hooks for imaging extensions:
     */
index e0b7a45..9c09020 100644 (file)
@@ -547,7 +547,6 @@ void tridentDDInitStateFuncs( GLcontext *ctx )
    ctx->Driver.CopyPixels = _swrast_CopyPixels;
    ctx->Driver.DrawPixels = _swrast_DrawPixels;
    ctx->Driver.ReadPixels = _swrast_ReadPixels;
-   ctx->Driver.ResizeBuffers = _mesa_resize_framebuffer;
 
    /* Swrast hooks for imaging extensions:
     */
index d92da8f..d5737c7 100644 (file)
@@ -576,7 +576,6 @@ viaCreateContext(const __GLcontextModes *visual,
     ctx->Const.PointSizeGranularity = 1.0;
 
     ctx->Driver.GetBufferSize = viaBufferSize;
-/*    ctx->Driver.ResizeBuffers = _swrast_alloc_buffers;  *//* FIXME ?? */
     ctx->Driver.GetString = viaGetString;
 
     ctx->DriverCtx = (void *)vmesa;