diff options
author | Eric Anholt <[email protected]> | 2013-06-20 09:03:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-06-25 19:19:21 -0700 |
commit | b04c718ebde69e763433269d9ab1a8b65f013605 (patch) | |
tree | c19ac319297a016be70d7b493ad8096af5c147e4 /src | |
parent | 17bc8fdb1d9c264e1f3c319d4ebc64b8c85e0d64 (diff) |
radeon: Remove gratuitous custom framebuffer resize code.
_mesa_resize_framebuffer(), the default value of the ResizeBuffers hook,
already checks for a window system framebuffer and walks the renderbuffers
calling AllocStorage().
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_fbo.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index 29a6d79b8f9..1e6cd1be1fd 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -621,36 +621,6 @@ radeon_alloc_window_storage(struct gl_context * ctx, struct gl_renderbuffer *rb, return GL_TRUE; } - -static void -radeon_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb, - GLuint width, GLuint height) -{ - struct radeon_framebuffer *radeon_fb = (struct radeon_framebuffer*)fb; - int i; - - radeon_print(RADEON_TEXTURE, RADEON_TRACE, - "%s(%p, fb %p) \n", - __func__, ctx, fb); - - _mesa_resize_framebuffer(ctx, fb, width, height); - - if (fb->Name != 0) { - return; - } - - /* Make sure all window system renderbuffers are up to date */ - for (i = 0; i < 2; i++) { - struct gl_renderbuffer *rb = &radeon_fb->color_rb[i]->base.Base; - - /* only resize if size is changing */ - if (rb && (rb->Width != width || rb->Height != height)) { - rb->AllocStorage(ctx, rb, rb->InternalFormat, width, height); - } - } -} - - /** Dummy function for gl_renderbuffer::AllocStorage() */ static GLboolean radeon_nop_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *rb, @@ -903,7 +873,6 @@ void radeon_fbo_init(struct radeon_context *radeon) radeon->glCtx.Driver.FramebufferRenderbuffer = radeon_framebuffer_renderbuffer; radeon->glCtx.Driver.RenderTexture = radeon_render_texture; radeon->glCtx.Driver.FinishRenderTexture = radeon_finish_render_texture; - radeon->glCtx.Driver.ResizeBuffers = radeon_resize_buffers; radeon->glCtx.Driver.ValidateFramebuffer = radeon_validate_framebuffer; radeon->glCtx.Driver.BlitFramebuffer = _mesa_meta_BlitFramebuffer; radeon->glCtx.Driver.EGLImageTargetRenderbufferStorage = |