Mesa (master): intel/compiler: Silence unused parameter warning in brw_surface_payload_size
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 28 19:32:20 UTC 2020
Module: Mesa
Branch: master
Commit: 92f08860c9718c4e62fe94146f53a04fe1656f2e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=92f08860c9718c4e62fe94146f53a04fe1656f2e
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Sep 22 14:10:56 2020 -0700
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 at jlekstrand.net>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6826>
---
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);
More information about the mesa-commit
mailing list