mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +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>
(cherry picked from commit d04945ed96)
This commit is contained in:
parent
740ef16e7b
commit
29a9eaf08b
2 changed files with 1 additions and 20 deletions
|
|
@ -2154,7 +2154,7 @@
|
|||
"description": "nvk: Remove nvk_image_plane_size_align_B()",
|
||||
"nominated": true,
|
||||
"nomination_type": 4,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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