Mesa (master): mesa: make _mesa_scissor_bounding_box() static

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Wed Jun 7 07:11:36 UTC 2017


Module: Mesa
Branch: master
Commit: ee38dfe9a5525375012d1c6681e7c39c15ac3049
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee38dfe9a5525375012d1c6681e7c39c15ac3049

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Jun  6 21:58:25 2017 +0200

mesa: make _mesa_scissor_bounding_box() static

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

---

 src/mesa/main/framebuffer.c | 10 +++++-----
 src/mesa/main/framebuffer.h |  4 ----
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 5069d37394..993cd37137 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -407,10 +407,10 @@ _mesa_intersect_scissor_bounding_box(const struct gl_context *ctx,
  *
  * \sa _mesa_clip_to_region
  */
-void
-_mesa_scissor_bounding_box(const struct gl_context *ctx,
-                           const struct gl_framebuffer *buffer,
-                           unsigned idx, int *bbox)
+static void
+scissor_bounding_box(const struct gl_context *ctx,
+                     const struct gl_framebuffer *buffer,
+                     unsigned idx, int *bbox)
 {
    bbox[0] = 0;
    bbox[2] = 0;
@@ -444,7 +444,7 @@ _mesa_update_draw_buffer_bounds(struct gl_context *ctx,
    }
 
    /* Default to the first scissor as that's always valid */
-   _mesa_scissor_bounding_box(ctx, buffer, 0, bbox);
+   scissor_bounding_box(ctx, buffer, 0, bbox);
    buffer->_Xmin = bbox[0];
    buffer->_Ymin = bbox[2];
    buffer->_Xmax = bbox[1];
diff --git a/src/mesa/main/framebuffer.h b/src/mesa/main/framebuffer.h
index ee0690b068..bc6e7bc31a 100644
--- a/src/mesa/main/framebuffer.h
+++ b/src/mesa/main/framebuffer.h
@@ -72,10 +72,6 @@ extern void
 _mesa_resizebuffers( struct gl_context *ctx );
 
 extern void
-_mesa_scissor_bounding_box(const struct gl_context *ctx,
-                           const struct gl_framebuffer *buffer,
-                           unsigned idx, int *bbox);
-extern void
 _mesa_intersect_scissor_bounding_box(const struct gl_context *ctx,
                                      unsigned idx, int *bbox);
 




More information about the mesa-commit mailing list