diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2021-04-28 10:59:20 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2021-05-04 08:15:19 -0700 |
commit | caf9fb1a10e238070657e12544c04ae82b5d5aae (patch) | |
tree | eeb65ddf696faf075b6d5c5145e4aaac17583d1a /src/intel | |
parent | 313c80c1580b714db622b18e3b0d7c789ba1f7c0 (diff) | |
download | mesa-caf9fb1a10e238070657e12544c04ae82b5d5aae.tar.gz mesa-caf9fb1a10e238070657e12544c04ae82b5d5aae.tar.bz2 mesa-caf9fb1a10e238070657e12544c04ae82b5d5aae.zip |
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>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_compiler.h | 18 | ||||
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 2 |
2 files changed, 1 insertions, 19 deletions
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index bce586e98bc..3d36d8948c2 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -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; diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 61251f44a0b..2f28996d4a2 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -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) |