[Mesa-dev] [PATCH 11.2/18] i915: Don't override NewFramebuffer just to call _mesa_new_framebuffer
Ian Romanick
idr at freedesktop.org
Tue Oct 6 11:13:57 PDT 2015
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/drivers/dri/i915/intel_buffers.h | 1 -
src/mesa/drivers/dri/i915/intel_fbo.c | 14 --------------
2 files changed, 15 deletions(-)
diff --git a/src/mesa/drivers/dri/i915/intel_buffers.h b/src/mesa/drivers/dri/i915/intel_buffers.h
index 42d84bc..6e22f51 100644
--- a/src/mesa/drivers/dri/i915/intel_buffers.h
+++ b/src/mesa/drivers/dri/i915/intel_buffers.h
@@ -34,7 +34,6 @@
#include "intel_context.h"
struct intel_context;
-struct intel_framebuffer;
extern void intel_check_front_buffer_rendering(struct intel_context *intel);
diff --git a/src/mesa/drivers/dri/i915/intel_fbo.c b/src/mesa/drivers/dri/i915/intel_fbo.c
index 12cc7e3..8750c60 100644
--- a/src/mesa/drivers/dri/i915/intel_fbo.c
+++ b/src/mesa/drivers/dri/i915/intel_fbo.c
@@ -64,19 +64,6 @@ intel_get_rb_region(struct gl_framebuffer *fb, GLuint attIndex)
return NULL;
}
-/**
- * Create a new framebuffer object.
- */
-static struct gl_framebuffer *
-intel_new_framebuffer(struct gl_context * ctx, GLuint name)
-{
- /* Only drawable state in intel_framebuffer at this time, just use Mesa's
- * class
- */
- return _mesa_new_framebuffer(ctx, name);
-}
-
-
/** Called by gl_renderbuffer::Delete() */
static void
intel_delete_renderbuffer(struct gl_context *ctx, struct gl_renderbuffer *rb)
@@ -770,7 +757,6 @@ intel_blit_framebuffer(struct gl_context *ctx,
void
intel_fbo_init(struct intel_context *intel)
{
- intel->ctx.Driver.NewFramebuffer = intel_new_framebuffer;
intel->ctx.Driver.NewRenderbuffer = intel_new_renderbuffer;
intel->ctx.Driver.MapRenderbuffer = intel_map_renderbuffer;
intel->ctx.Driver.UnmapRenderbuffer = intel_unmap_renderbuffer;
--
2.1.0
More information about the mesa-dev
mailing list