nvk: Make image/buffer address helpers const

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:11:51 -06:00 committed by Marge Bot
parent 7ebc94a17a
commit 5e3f6f326f
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ nvk_push_buffer_ref(struct nouveau_ws_push *push,
}
static inline uint64_t
nvk_buffer_address(struct nvk_buffer *buffer, uint64_t offset)
nvk_buffer_address(const struct nvk_buffer *buffer, uint64_t offset)
{
return buffer->mem->bo->offset + buffer->offset + offset;
}

View file

@ -34,7 +34,7 @@ nvk_push_image_ref(struct nouveau_ws_push *push,
}
static inline uint64_t
nvk_image_base_address(struct nvk_image *image)
nvk_image_base_address(const struct nvk_image *image)
{
return image->mem->bo->offset + image->offset;
}