treewide: Replace calling to function ALIGN with align

This is done by grep ALIGN( to align(

docs,*.xml,blake3 is excluded

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38365>
This commit is contained in:
Yonggang Luo
2025-11-11 15:33:54 +08:00
committed by Marge Bot
parent 03a32b3fe2
commit ecb0ccf603
119 changed files with 246 additions and 246 deletions
+1 -1
View File
@@ -3516,7 +3516,7 @@ dzn_cmd_buffer_update_push_constants(struct dzn_cmd_buffer *cmdbuf, uint32_t bin
&cmdbuf->state.push_constant.gfx : &cmdbuf->state.push_constant.compute;
uint32_t offset = state->offset / 4;
uint32_t end = ALIGN(state->end, 4) / 4;
uint32_t end = align(state->end, 4) / 4;
uint32_t count = end - offset;
if (!count)
+2 -2
View File
@@ -854,7 +854,7 @@ dzn_pipeline_layout_create(struct dzn_device *device,
root_param->ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS;
root_param->Constants.ShaderRegister = 0;
root_param->Constants.Num32BitValues = ALIGN(push_constant_size, 4) / 4;
root_param->Constants.Num32BitValues = align(push_constant_size, 4) / 4;
root_param->Constants.RegisterSpace = DZN_REGISTER_SPACE_PUSH_CONSTANT;
root_param->ShaderVisibility = translate_desc_visibility(push_constant_flags);
root_dwords += root_param->Constants.Num32BitValues;
@@ -1680,7 +1680,7 @@ dzn_descriptor_set_init(struct dzn_descriptor_set *set,
dzn_foreach_pool_type(type) {
set->heap_offsets[type] = pool->free_offset[type];
if (device->bindless)
set->heap_offsets[type] = ALIGN(set->heap_offsets[type], 2);
set->heap_offsets[type] = align(set->heap_offsets[type], 2);
set->heap_sizes[type] = layout->range_desc_count[type] + variable_descriptor_count[type];
set->pool->free_offset[type] = set->heap_offsets[type] + set->heap_sizes[type];
}