intel/compiler: Silence unused parameter warnings in files that include brw_eu.h
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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9237>
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user