nvk: Make image/buffer address helpers const
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
committed by
Marge Bot
parent
7ebc94a17a
commit
5e3f6f326f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user