From 0da47c4019ca1044efe35d7c6bdb8e82d8843713 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 9 Dec 2020 12:29:15 -0800 Subject: [PATCH] intel/compiler: Silence unused parameter warnings in files that include brw_eu.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit src/intel/compiler/brw_eu.h: In function ‘uint32_t brw_btd_spawn_msg_type(const gen_device_info*, uint32_t)’: src/intel/compiler/brw_eu.h:1040:54: warning: unused parameter ‘devinfo’ [-Wunused-parameter] 1040 | brw_btd_spawn_msg_type(const struct gen_device_info *devinfo, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ src/intel/compiler/brw_eu.h: In function ‘uint32_t brw_btd_spawn_exec_size(const gen_device_info*, uint32_t)’: src/intel/compiler/brw_eu.h:1047:55: warning: unused parameter ‘devinfo’ [-Wunused-parameter] 1047 | brw_btd_spawn_exec_size(const struct gen_device_info *devinfo, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ src/intel/compiler/brw_eu.h: In function ‘uint32_t brw_rt_trace_ray_desc_exec_size(const gen_device_info*, uint32_t)’: src/intel/compiler/brw_eu.h:1065:63: warning: unused parameter ‘devinfo’ [-Wunused-parameter] 1065 | brw_rt_trace_ray_desc_exec_size(const struct gen_device_info *devinfo, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ Reviewed-by: Anuj Phogat anuj.phogat@gmail.com Part-of: --- src/intel/compiler/brw_eu.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index bc1f4d0..81045e4c 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -1026,7 +1026,7 @@ brw_mdc_sm2_exec_size(uint32_t sm2) } static inline uint32_t -brw_btd_spawn_desc(const struct gen_device_info *devinfo, +brw_btd_spawn_desc(ASSERTED const struct gen_device_info *devinfo, unsigned exec_size, unsigned msg_type) { assert(devinfo->has_ray_tracing); @@ -1037,21 +1037,21 @@ brw_btd_spawn_desc(const struct gen_device_info *devinfo, } static inline uint32_t -brw_btd_spawn_msg_type(const struct gen_device_info *devinfo, +brw_btd_spawn_msg_type(UNUSED const struct gen_device_info *devinfo, uint32_t desc) { return GET_BITS(desc, 17, 14); } static inline uint32_t -brw_btd_spawn_exec_size(const struct gen_device_info *devinfo, +brw_btd_spawn_exec_size(UNUSED const struct gen_device_info *devinfo, uint32_t desc) { return brw_mdc_sm2_exec_size(GET_BITS(desc, 8, 8)); } static inline uint32_t -brw_rt_trace_ray_desc(const struct gen_device_info *devinfo, +brw_rt_trace_ray_desc(ASSERTED const struct gen_device_info *devinfo, unsigned exec_size) { assert(devinfo->has_ray_tracing); @@ -1062,7 +1062,7 @@ brw_rt_trace_ray_desc(const struct gen_device_info *devinfo, } static inline uint32_t -brw_rt_trace_ray_desc_exec_size(const struct gen_device_info *devinfo, +brw_rt_trace_ray_desc_exec_size(UNUSED const struct gen_device_info *devinfo, uint32_t desc) { return brw_mdc_sm2_exec_size(GET_BITS(desc, 8, 8)); -- 2.7.4