mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
intel: Rename calculate_gen_slm_size to intel_calculate_slm_size
export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965 grep -E "calculate_gen_slm_size" -rIl $SEARCH_PATH | xargs sed -ie "s/calculate_gen_slm_size/intel_calculate_slm_size/g" Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10241>
This commit is contained in:
parent
12099d51f6
commit
c144cc7889
2 changed files with 3 additions and 3 deletions
|
|
@ -1644,7 +1644,7 @@ void brw_debug_key_recompile(const struct brw_compiler *c, void *log,
|
|||
* and also have a Gen-dependent minimum value if not zero.
|
||||
*/
|
||||
static inline uint32_t
|
||||
calculate_gen_slm_size(unsigned gen, uint32_t bytes)
|
||||
intel_calculate_slm_size(unsigned gen, uint32_t bytes)
|
||||
{
|
||||
assert(bytes <= 64 * 1024);
|
||||
if (bytes > 0)
|
||||
|
|
@ -1669,7 +1669,7 @@ encode_slm_size(unsigned gen, uint32_t bytes)
|
|||
*/
|
||||
|
||||
if (bytes > 0) {
|
||||
slm_size = calculate_gen_slm_size(gen, bytes);
|
||||
slm_size = intel_calculate_slm_size(gen, bytes);
|
||||
assert(util_is_power_of_two_nonzero(slm_size));
|
||||
|
||||
if (gen >= 9) {
|
||||
|
|
|
|||
|
|
@ -1743,7 +1743,7 @@ anv_pipeline_compile_cs(struct anv_compute_pipeline *pipeline,
|
|||
const unsigned chunk_size = 16;
|
||||
const unsigned shared_size = ALIGN(stage.nir->info.shared_size, chunk_size);
|
||||
assert(shared_size <=
|
||||
calculate_gen_slm_size(compiler->devinfo->ver, stage.nir->info.shared_size));
|
||||
intel_calculate_slm_size(compiler->devinfo->ver, stage.nir->info.shared_size));
|
||||
|
||||
NIR_PASS_V(stage.nir, nir_zero_initialize_shared_memory,
|
||||
shared_size, chunk_size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue