Mesa (master): i965: Silence many unused parameter warnings in genX_blorp_exec.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 15 16:45:10 UTC 2020
Module: Mesa
Branch: master
Commit: 5a5f30bf434f9ab160403930ff57cc116bc39f4f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a5f30bf434f9ab160403930ff57cc116bc39f4f
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Thu Sep 24 12:29:53 2020 -0700
i965: Silence many unused parameter warnings in genX_blorp_exec.c
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 <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
---
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 219ac585399..0d202d8e1ae 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;
More information about the mesa-commit
mailing list