[Mesa-dev] [PATCH 14/17] i965: Silence unused parameter warning
Ian Romanick
idr at freedesktop.org
Mon Jun 19 02:21:04 UTC 2017
From: Ian Romanick <ian.d.romanick at intel.com>
brw_blorp.c: In function ‘brw_blorp_clear_depth_stencil’:
brw_blorp.c:913:53: warning: unused parameter ‘partial_clear’ [-Wunused-parameter]
GLbitfield mask, bool partial_clear)
^~~~~~~~~~~~~
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/drivers/dri/i965/brw_blorp.c | 2 +-
src/mesa/drivers/dri/i965/brw_blorp.h | 2 +-
src/mesa/drivers/dri/i965/brw_clear.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index bc7a7b2..02158d9 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -910,7 +910,7 @@ brw_blorp_clear_color(struct brw_context *brw, struct gl_framebuffer *fb,
void
brw_blorp_clear_depth_stencil(struct brw_context *brw,
struct gl_framebuffer *fb,
- GLbitfield mask, bool partial_clear)
+ GLbitfield mask)
{
const struct gl_context *ctx = &brw->ctx;
struct gl_renderbuffer *depth_rb =
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h b/src/mesa/drivers/dri/i965/brw_blorp.h
index 29d5788..f03413d 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.h
+++ b/src/mesa/drivers/dri/i965/brw_blorp.h
@@ -65,7 +65,7 @@ brw_blorp_clear_color(struct brw_context *brw, struct gl_framebuffer *fb,
void
brw_blorp_clear_depth_stencil(struct brw_context *brw,
struct gl_framebuffer *fb,
- GLbitfield mask, bool partial_clear);
+ GLbitfield mask);
void
brw_blorp_resolve_color(struct brw_context *brw,
diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c
index 467f017..25604cb 100644
--- a/src/mesa/drivers/dri/i965/brw_clear.c
+++ b/src/mesa/drivers/dri/i965/brw_clear.c
@@ -235,7 +235,7 @@ brw_clear(struct gl_context *ctx, GLbitfield mask)
}
if (mask & BUFFER_BITS_DEPTH_STENCIL) {
- brw_blorp_clear_depth_stencil(brw, fb, mask, partial_clear);
+ brw_blorp_clear_depth_stencil(brw, fb, mask);
debug_mask("blorp depth/stencil", mask & BUFFER_BITS_DEPTH_STENCIL);
mask &= ~BUFFER_BITS_DEPTH_STENCIL;
}
--
2.9.4
More information about the mesa-dev
mailing list