summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2020-09-22 14:10:56 -0700
committerIan Romanick <ian.d.romanick@intel.com>2020-09-28 11:43:04 -0700
commit92f08860c9718c4e62fe94146f53a04fe1656f2e (patch)
tree7c1a3d193d517eb47139dea7c2f4b4770e30145b
parent9bcdca2455e894da9d71a73562be9b9084b672a8 (diff)
intel/compiler: Silence unused parameter warning in brw_surface_payload_size
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 <jason@jlekstrand.net> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6826>
-rw-r--r--src/intel/compiler/brw_eu_emit.c7
1 files 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);