mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
nouveau: Use align64 instead of ALIGN over input layer_size_B
layer_size_B is uint64_t, so use align64 over it Because array_stride_B is uint32_t, so cast back to uint32_t Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23932>
This commit is contained in:
parent
fb55c70269
commit
32d2f70742
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ nil_image_init(struct nv_device_info *dev,
|
|||
image->align_B = nil_tiling_size_B(image->levels[0].tiling);
|
||||
|
||||
/* I have no idea why but hardware seems to align layer strides */
|
||||
image->array_stride_B = ALIGN(layer_size_B, image->align_B);
|
||||
image->array_stride_B = (uint32_t)align64(layer_size_B, image->align_B);
|
||||
|
||||
image->size_B = (uint64_t)image->array_stride_B * image->extent_px.a;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue