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 6bbe49021bb3501f663a6c9950a6ff956b43b62a..d6ba23bc6e6973eeffa900f25214239d7c578a29 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 1b38b26c42dcd2909a1ffb7194f6bf4fa472497e..5c74b0b0f47bac6fe6cbe2e1dcd3c0c03b7d8014 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 cca382d89266c3c395a142f81e3fc63e033731b6..8479eb3bba54b3412341ed99136b355b1b4072b8 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 23373ef73b1dd8f5ab2488372bc7f593bb3a33db..c0f4efd7a3161cdf667f9ddcb469276908c4988f 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 480b442211df84bed8067db1a16e54418a7f4b18..444fcd584aa397bee7732b4849c65a7d044be160 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 853956671cee22d93f497e6a3bcc3f25ca1f9a4f..9c985715ab4aca5a5bc165d5786b52183536cd71 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 7c27c5856a2a929cc78fd10586fd0307e81c19a7..17e8d74d9fa203024705131cba8045904c6d0d53 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 8532ea95f101fe649bbe8f939d1ab9f3997e3bd7..faf46f31392d8fce3524896dd55ce9dcb946ac0c 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 4f0bb4761cd6bf8a1cd4b706c4cca6809404a30b..54f2b21b5d0dffcc87fefafbff08b3e4270fc440 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 2e55ac1f50e03f961fd21bd5ece92e868d6e9c7f..9cec50147df723a2cdf15cc60dbe2b80cb065690 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 bfedae4dbdb8946fd8b7d02d3494d96c7b9ae364..09321126d69c64a1ed72d2cf766b63caf26a8ed5 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 edfa36fcc50089064d630d841327f1faea3e8bc8..6328c0844255483e3e52d4bfd9af4f34abd39889 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 2c8e230f3ef6339457ac338f8628e632f3700350..072e97b43ac6f83be4bb7ce7699e2dc2cdc7c2a4 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 ced44e562f7d2539407b73560066bf26cee4d48b..ae19481f0393f483d3a5cf375bf30e40ce9035de 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 3dbd24d49b7ccb412f70b070fc14249f48d8506c..c2f3185dc476e49d046e3d8e74add8ee505da2a7 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 8c3af2001665de27fd86fec231b14c22d5f0c227..9e6e4b2971a3a5966406e1c64817581112f815cc 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 e0b7a452243412e14f3401076b4379ee855a0c63..9c09020b9d0319e3fb2faed180f5bc649df6da93 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 d92da8f4963c3fe4381f487264cb2f0a4e5d5c71..d5737c7d112f16408a593c1eefc80690b6373816 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;