From 92f08860c9718c4e62fe94146f53a04fe1656f2e Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 22 Sep 2020 14:10:56 -0700 Subject: [PATCH] intel/compiler: Silence unused parameter warning in brw_surface_payload_size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/intel/compiler/brw_eu_emit.c: In function ‘brw_surface_payload_size’: src/intel/compiler/brw_eu_emit.c:3070:46: warning: unused parameter ‘p’ [-Wunused-parameter] 3070 | brw_surface_payload_size(struct brw_codegen *p, | ~~~~~~~~~~~~~~~~~~~~^ Reviewed-by: Jason Ekstrand Reviewed-by: Matt Turner Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_eu_emit.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index c9c180b1fcc..bac3e7f0892 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -3067,8 +3067,7 @@ brw_svb_write(struct brw_codegen *p, } static unsigned -brw_surface_payload_size(struct brw_codegen *p, - unsigned num_channels, +brw_surface_payload_size(unsigned num_channels, unsigned exec_size /**< 0 for SIMD4x2 */) { if (exec_size == 0) @@ -3099,7 +3098,7 @@ brw_untyped_atomic(struct brw_codegen *p, const unsigned exec_size = align1 ? 1 << brw_get_default_exec_size(p) : has_simd4x2 ? 0 : 8; const unsigned response_length = - brw_surface_payload_size(p, response_expected, exec_size); + brw_surface_payload_size(response_expected, exec_size); const unsigned desc = brw_message_desc(devinfo, msg_length, response_length, header_present) | brw_dp_untyped_atomic_desc(devinfo, exec_size, atomic_op, @@ -3131,7 +3130,7 @@ brw_untyped_surface_read(struct brw_codegen *p, const bool align1 = brw_get_default_access_mode(p) == BRW_ALIGN_1; const unsigned exec_size = align1 ? 1 << brw_get_default_exec_size(p) : 0; const unsigned response_length = - brw_surface_payload_size(p, num_channels, exec_size); + brw_surface_payload_size(num_channels, exec_size); const unsigned desc = brw_message_desc(devinfo, msg_length, response_length, false) | brw_dp_untyped_surface_rw_desc(devinfo, exec_size, num_channels, false);