intel: Remove dead intel_drawbuf_region().
authorEric Anholt <eric@anholt.net>
Fri, 24 May 2013 19:50:11 +0000 (12:50 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 May 2013 20:06:58 +0000 (13:06 -0700)
Since the glBitmap() MRT change, it's unused.  There was basically no way
to responsibly use this function since MRT was introduced.

Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_buffers.h

index 9a9a259c9e56f27abf98cb6e7892110f6b597687..fdad480cb39ca392d4bb2ba4fe89c6c08777db8d 100644 (file)
 #include "main/framebuffer.h"
 #include "main/renderbuffer.h"
 
-/**
- * Return pointer to current color drawing region, or NULL.
- */
-struct intel_region *
-intel_drawbuf_region(struct intel_context *intel)
-{
-   struct intel_renderbuffer *irbColor =
-      intel_renderbuffer(intel->ctx.DrawBuffer->_ColorDrawBuffers[0]);
-   if (irbColor && irbColor->mt)
-      return irbColor->mt->region;
-   else
-      return NULL;
-}
-
 /**
  * Return pointer to current color reading region, or NULL.
  */
index e68cc6726657d912883974af32a84a570bec8f6c..4e3d13087fe699dfa96544df811094ab14614e49 100644 (file)
@@ -38,8 +38,6 @@ struct intel_framebuffer;
 
 extern struct intel_region *intel_readbuf_region(struct intel_context *intel);
 
-extern struct intel_region *intel_drawbuf_region(struct intel_context *intel);
-
 extern void intel_check_front_buffer_rendering(struct intel_context *intel);
 
 static inline void