Mesa (arb_fbo): intel: plug in stub intel_validate_framebuffer() function

Brian Paul brianp at kemper.freedesktop.org
Tue Jan 20 22:30:49 UTC 2009


Module: Mesa
Branch: arb_fbo
Commit: 246aea3e567ec6760de281d446d8dc2f010daff2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=246aea3e567ec6760de281d446d8dc2f010daff2

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jan 20 15:30:22 2009 -0700

intel: plug in stub intel_validate_framebuffer() function

---

 src/mesa/drivers/dri/intel/intel_fbo.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index 66ebfdc..ab05871 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -668,6 +668,19 @@ intel_finish_render_texture(GLcontext * ctx,
 
 
 /**
+ * Do additional "completeness" testing of a framebuffer object.
+ */
+static void
+intel_validate_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb)
+{
+   /* no-op for now.
+    * Eventually: examine the renderbuffers/textures and make sure it's
+    * supported by the hw.
+    */
+}
+
+
+/**
  * Do one-time context initializations related to GL_EXT_framebuffer_object.
  * Hook in device driver functions.
  */
@@ -681,4 +694,5 @@ intel_fbo_init(struct intel_context *intel)
    intel->ctx.Driver.RenderTexture = intel_render_texture;
    intel->ctx.Driver.FinishRenderTexture = intel_finish_render_texture;
    intel->ctx.Driver.ResizeBuffers = intel_resize_buffers;
+   intel->ctx.Driver.ValidateFramebuffer = intel_validate_framebuffer;
 }




More information about the mesa-commit mailing list