Commit c144cc78 authored by Anuj Phogat's avatar Anuj Phogat Committed by Marge Bot
Browse files

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's avatarAnuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Part-of: <mesa/mesa!10241>
parent 12099d51
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment