amd: Use align64 instead of ALIGN for 64 bit value parameter

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26869>
This commit is contained in:
Yonggang Luo 2023-06-29 11:34:46 +08:00 committed by Marge Bot
parent 49378bc3cd
commit 19fca131b1
2 changed files with 2 additions and 2 deletions

View file

@ -532,7 +532,7 @@ ac_rgp_file_write_elf_object(FILE *output, size_t file_elf_start,
sec_hdr[3].sh_name = (uintptr_t)((struct ac_rgp_elf_string_table*)0)->symtab;
sec_hdr[3].sh_type = SHT_SYMTAB;
sec_hdr[3].sh_offset = sec_hdr[2].sh_offset +
ALIGN(sec_hdr[2].sh_size, 256);
align64(sec_hdr[2].sh_size, 256);
sec_hdr[3].sh_size = symbol_table_size;
sec_hdr[3].sh_link = RGP_ELF_STRING_TBL_SEC_HEADER_INDEX;
sec_hdr[3].sh_addralign = 8;

View file

@ -93,7 +93,7 @@ radeon_ioctl_gem_create(int fd, unsigned long request, void *arg)
struct shim_fd *shim_fd = drm_shim_fd_lookup(fd);
struct shim_bo *bo = calloc(1, sizeof(*bo));
size_t size = ALIGN(create->size, 4096);
size_t size = (size_t)align64(create->size, 4096);
drm_shim_bo_init(bo, size);