[Mesa-dev] [PATCH 17/17] intel: Remove dead intel_drawbuf_region().

Eric Anholt eric at anholt.net
Fri May 24 13:56:55 PDT 2013


Since the glBitmap() MRT change, it's unused.  There was basically no way
to responsibly use this function since MRT was introduced.
---
 src/mesa/drivers/dri/intel/intel_buffers.c | 14 --------------
 src/mesa/drivers/dri/intel/intel_buffers.h |  2 --
 2 files changed, 16 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c
index 9a9a259..fdad480 100644
--- a/src/mesa/drivers/dri/intel/intel_buffers.c
+++ b/src/mesa/drivers/dri/intel/intel_buffers.c
@@ -35,20 +35,6 @@
 #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.
  */
 struct intel_region *
diff --git a/src/mesa/drivers/dri/intel/intel_buffers.h b/src/mesa/drivers/dri/intel/intel_buffers.h
index e68cc67..4e3d130 100644
--- a/src/mesa/drivers/dri/intel/intel_buffers.h
+++ b/src/mesa/drivers/dri/intel/intel_buffers.h
@@ -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
-- 
1.8.3.rc0



More information about the mesa-dev mailing list