radv: fix aligning the image offset by using align64()
This doesn't fix anything known. Found by inspection. Cc: 21.1 mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11302>
This commit is contained in:
parent
9fdb6f56e1
commit
4026a07e74
|
@ -1381,7 +1381,7 @@ radv_image_create_layout(struct radv_device *device, struct radv_image_create_in
|
|||
offset = mod_info->pPlaneLayouts[plane].offset;
|
||||
stride = mod_info->pPlaneLayouts[plane].rowPitch / image->planes[plane].surface.bpe;
|
||||
} else {
|
||||
offset = align(image->size, 1 << image->planes[plane].surface.alignment_log2);
|
||||
offset = align64(image->size, 1 << image->planes[plane].surface.alignment_log2);
|
||||
stride = 0; /* 0 means no override */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue