mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
nvk: Remove nvk_image_plane_size_align_B()
Now that we stash the offset and alignment, this helper is redundant. Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Mel Henning <mhenning@darkrefraction.com> Tested-by: Mary Guillemard <mary@mary.zone> Backport-to: 26.1 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40473>
This commit is contained in:
parent
c6fbd3402e
commit
d04945ed96
1 changed files with 0 additions and 19 deletions
|
|
@ -1150,25 +1150,6 @@ nvk_image_init(struct nvk_device *dev,
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
static void
|
||||
nvk_image_plane_size_align_B(struct nvk_device *dev,
|
||||
const struct nvk_image *image,
|
||||
const struct nvk_image_plane *plane,
|
||||
uint64_t *size_B_out, uint64_t *align_B_out)
|
||||
{
|
||||
const struct nvk_physical_device *pdev = nvk_device_physical(dev);
|
||||
const bool sparse_bound =
|
||||
image->vk.create_flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT;
|
||||
|
||||
assert(util_is_power_of_two_or_zero64(plane->nil.align_B));
|
||||
if (sparse_bound || plane->nil.pte_kind) {
|
||||
*align_B_out = MAX2(plane->nil.align_B, pdev->nvkmd->bind_align_B);
|
||||
} else {
|
||||
*align_B_out = plane->nil.align_B;
|
||||
}
|
||||
*size_B_out = align64(plane->nil.size_B, *align_B_out);
|
||||
}
|
||||
|
||||
static VkResult
|
||||
nvk_image_plane_alloc_va(struct nvk_device *dev,
|
||||
const struct nvk_image *image,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue