intel/compiler: Remove unused exported functions
Now that all drivers are using brw_cs_get_dispatch_info() we can remove one function (which is now unused) and reduce the scope of the other. Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10504>
This commit is contained in:
parent
313c80c158
commit
caf9fb1a10
|
@ -1752,11 +1752,6 @@ unsigned
|
|||
brw_cs_push_const_total_size(const struct brw_cs_prog_data *cs_prog_data,
|
||||
unsigned threads);
|
||||
|
||||
unsigned
|
||||
brw_cs_simd_size_for_group_size(const struct intel_device_info *devinfo,
|
||||
const struct brw_cs_prog_data *cs_prog_data,
|
||||
unsigned group_size);
|
||||
|
||||
void
|
||||
brw_write_shader_relocs(const struct intel_device_info *devinfo,
|
||||
void *program,
|
||||
|
@ -1764,19 +1759,6 @@ brw_write_shader_relocs(const struct intel_device_info *devinfo,
|
|||
struct brw_shader_reloc_value *values,
|
||||
unsigned num_values);
|
||||
|
||||
/**
|
||||
* Calculate the RightExecutionMask field used in GPGPU_WALKER.
|
||||
*/
|
||||
static inline unsigned
|
||||
brw_cs_right_mask(unsigned group_size, unsigned simd_size)
|
||||
{
|
||||
const uint32_t remainder = group_size & (simd_size - 1);
|
||||
if (remainder > 0)
|
||||
return ~0u >> (32 - remainder);
|
||||
else
|
||||
return ~0u >> (32 - simd_size);
|
||||
}
|
||||
|
||||
struct brw_cs_dispatch_info {
|
||||
uint32_t group_size;
|
||||
uint32_t simd_size;
|
||||
|
|
|
@ -9810,7 +9810,7 @@ brw_compile_cs(const struct brw_compiler *compiler,
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned
|
||||
static unsigned
|
||||
brw_cs_simd_size_for_group_size(const struct intel_device_info *devinfo,
|
||||
const struct brw_cs_prog_data *cs_prog_data,
|
||||
unsigned group_size)
|
||||
|
|
Loading…
Reference in New Issue