mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 20:50:23 +01:00
nvk: Make image/buffer address helpers const
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
7ebc94a17a
commit
5e3f6f326f
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue