amd/common: fix a typo

Fixes: 35f053ba8c ("radv: Fix corrupted mipmap copies on GFX9+")

Signed-off-by: Lang Yu <lang.yu@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22000>
This commit is contained in:
Lang Yu 2023-03-18 09:20:37 +08:00 committed by Marge Bot
parent deb537de3c
commit 19b89c8077

View File

@ -3051,7 +3051,7 @@ ac_surface_addr_from_coord(struct ac_addrlib *addrlib, const struct radeon_info
assert(info->gfx_level >= GFX9);
ADDR2_COMPUTE_SURFACE_ADDRFROMCOORD_INPUT input = {0};
input.size = sizeof(ADDR_COMPUTE_SURFACE_ADDRFROMCOORD_INPUT);
input.size = sizeof(ADDR2_COMPUTE_SURFACE_ADDRFROMCOORD_INPUT);
input.slice = layer;
input.mipId = level;
input.unalignedWidth = DIV_ROUND_UP(surf_info->width, surf->blk_w);