From 5a5f30bf434f9ab160403930ff57cc116bc39f4f Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 24 Sep 2020 12:29:53 -0700 Subject: [PATCH] i965: Silence many unused parameter warnings in genX_blorp_exec.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This file gets built per-Gen, so the warnings are repeated a lot. src/mesa/drivers/dri/i965/genX_blorp_exec.c: In function ‘blorp_get_surface_address’: src/mesa/drivers/dri/i965/genX_blorp_exec.c:98:47: warning: unused parameter ‘blorp_batch’ [-Wunused-parameter] 98 | blorp_get_surface_address(struct blorp_batch *blorp_batch, | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c:99:48: warning: unused parameter ‘address’ [-Wunused-parameter] 99 | struct blorp_address address) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c: In function ‘blorp_vf_invalidate_for_vb_48b_transitions’: src/mesa/drivers/dri/i965/genX_blorp_exec.c:208:64: warning: unused parameter ‘batch’ [-Wunused-parameter] 208 | blorp_vf_invalidate_for_vb_48b_transitions(struct blorp_batch *batch, | ~~~~~~~~~~~~~~~~~~~~^~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c:209:72: warning: unused parameter ‘addrs’ [-Wunused-parameter] 209 | const struct blorp_address *addrs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c:211:53: warning: unused parameter ‘num_vbs’ [-Wunused-parameter] 211 | unsigned num_vbs) | ~~~~~~~~~^~~~~~~ Reviewed-by: Jason Ekstrand Part-of: --- src/mesa/drivers/dri/i965/genX_blorp_exec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index 219ac58..0d202d8 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c @@ -95,8 +95,8 @@ blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset, } static uint64_t -blorp_get_surface_address(struct blorp_batch *blorp_batch, - struct blorp_address address) +blorp_get_surface_address(UNUSED struct blorp_batch *blorp_batch, + UNUSED struct blorp_address address) { /* We'll let blorp_surface_reloc write the address. */ return 0ull; @@ -205,10 +205,10 @@ blorp_alloc_vertex_buffer(struct blorp_batch *batch, uint32_t size, * See vf_invalidate_for_vb_48b_transitions in genX_state_upload.c. */ static void -blorp_vf_invalidate_for_vb_48b_transitions(struct blorp_batch *batch, - const struct blorp_address *addrs, +blorp_vf_invalidate_for_vb_48b_transitions(UNUSED struct blorp_batch *batch, + UNUSED const struct blorp_address *addrs, UNUSED uint32_t *sizes, - unsigned num_vbs) + UNUSED unsigned num_vbs) { #if GEN_GEN >= 8 && GEN_GEN < 11 struct brw_context *brw = batch->driver_batch; -- 2.7.4