From: Eric Anholt Date: Fri, 24 May 2013 19:50:11 +0000 (-0700) Subject: intel: Remove dead intel_drawbuf_region(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3abc93f47cbc4c0a5f4304c66a79395c0aa8220;p=mesa.git intel: Remove dead intel_drawbuf_region(). 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 Acked-by: Paul Berry --- diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c index 9a9a259c9e5..fdad480cb39 100644 --- a/src/mesa/drivers/dri/intel/intel_buffers.c +++ b/src/mesa/drivers/dri/intel/intel_buffers.c @@ -34,20 +34,6 @@ #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. */ diff --git a/src/mesa/drivers/dri/intel/intel_buffers.h b/src/mesa/drivers/dri/intel/intel_buffers.h index e68cc672665..4e3d13087fe 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