mesa: Remove the Initialized field from framebuffers.
authorEric Anholt <eric@anholt.net>
Thu, 20 Jun 2013 16:41:10 +0000 (09:41 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 02:19:20 +0000 (19:19 -0700)
This existed to tell the core not to call GetBufferSize, except that even
if you didn't set it nothing happened because nobody had a GetBufferSize.

v2: Remove two more instances of setting the field (from Brian)

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/radeon/radeon_common.c
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/osmesa/osmesa.c
src/mesa/drivers/x11/xm_api.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_manager.c

index 5fe3dc79560137651db8ae69021c92765302ed82..32d1797a3b0c88a0d362c5cdcbde8f87a8a00fa4 100644 (file)
@@ -339,8 +339,6 @@ intel_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb,
 
    _mesa_resize_framebuffer(ctx, fb, width, height);
 
-   fb->Initialized = true; /* XXX remove someday */
-
    if (_mesa_is_user_fbo(fb)) {
       return;
    }
index 0cf656b6527ace0b6e157ca5403c79cf0191137e..0f0945da9810e5bf3c9d65bc389283a66afb4913 100644 (file)
@@ -85,7 +85,6 @@ void radeonSetCliprects(radeonContextPtr radeon)
            (draw_rfb->base.Height != drawable->h)) {
                _mesa_resize_framebuffer(&radeon->glCtx, &draw_rfb->base,
                                         drawable->w, drawable->h);
-               draw_rfb->base.Initialized = GL_TRUE;
        }
 
        if (drawable != readable) {
@@ -93,7 +92,6 @@ void radeonSetCliprects(radeonContextPtr radeon)
                    (read_rfb->base.Height != readable->h)) {
                        _mesa_resize_framebuffer(&radeon->glCtx, &read_rfb->base,
                                                 readable->w, readable->h);
-                       read_rfb->base.Initialized = GL_TRUE;
                }
        }
 
index 63bc7e8ab6472ac724deba17aeac5862c97b37d5..29a6d79b8f9a07d606dc61fdfa3eb12eef931e7b 100644 (file)
@@ -635,8 +635,6 @@ radeon_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb,
 
    _mesa_resize_framebuffer(ctx, fb, width, height);
 
-   fb->Initialized = GL_TRUE; /* XXX remove someday */
-
    if (fb->Name != 0) {
       return;
    }
index 241e74f778ca993d3c55d5d320e8540f78b57124..deb0b9364fa9611237479609a5899400b7e3ee03 100644 (file)
@@ -916,7 +916,6 @@ OSMesaMakeCurrent( OSMesaContext osmesa, void *buffer, GLenum type,
     * osmesa_renderbuffer_storage() function to get called.
     */
    _mesa_resize_framebuffer(&osmesa->mesa, osmesa->gl_buffer, width, height);
-   osmesa->gl_buffer->Initialized = GL_TRUE; /* XXX TEMPORARY? */
 
    _mesa_make_current( &osmesa->mesa, osmesa->gl_buffer, osmesa->gl_buffer );
 
index 6455889080d487abe8a2ec740cbbb32744e70f5d..b7c94aa4c96af05051c4e997feb507ee535d3230 100644 (file)
@@ -1193,7 +1193,6 @@ xmesa_check_and_update_buffer_size(XMesaContext xmctx, XMesaBuffer drawBuffer)
       struct gl_context *ctx = xmctx ? &xmctx->mesa : NULL;
       _mesa_resize_framebuffer(ctx, &(drawBuffer->mesa_buffer), width, height);
    }
-   drawBuffer->mesa_buffer.Initialized = GL_TRUE; /* XXX TEMPORARY? */
 }
 
 
index 0002da5c0d53fd48a0115976071a044885dea62c..5d5b53492bc23c83f80ae9881a5eae82f3d5e336 100644 (file)
@@ -2680,8 +2680,6 @@ struct gl_framebuffer
     */
    struct gl_config Visual;
 
-   GLboolean Initialized;
-
    GLuint Width, Height;       /**< size of frame buffer in pixels */
 
    /** \name  Drawing bounds (Intersection of buffer size and scissor box) */
index ec876087c95c2a6bbdfb34cb3be79ba2ef04af8c..9c2b4d24e874cc1d48363a694048b17bbb18265e 100644 (file)
@@ -431,8 +431,6 @@ st_framebuffer_create(struct st_framebuffer_iface *stfbi)
    stfb->stamp = 0;
    st_framebuffer_update_attachments(stfb);
 
-   stfb->Base.Initialized = GL_TRUE;
-
    return stfb;
 }