pvr: Add a const qualifier to inline pvr_csb_*() helpers
These do not modify the input struct pvr_csb at all, so the function signature should reflect this. Signed-off-by: Matt Coster <matt.coster@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17360>
This commit is contained in:
parent
871a7536e8
commit
3cc207bc03
|
@ -88,7 +88,7 @@ struct pvr_csb {
|
|||
* \return VK_SUCCESS if the csb hasn't encountered any error or error code
|
||||
* otherwise.
|
||||
*/
|
||||
static inline VkResult pvr_csb_get_status(struct pvr_csb *csb)
|
||||
static inline VkResult pvr_csb_get_status(const struct pvr_csb *csb)
|
||||
{
|
||||
return csb->status;
|
||||
}
|
||||
|
@ -99,12 +99,13 @@ static inline VkResult pvr_csb_get_status(struct pvr_csb *csb)
|
|||
* \param[in] csb Control Stream Builder object.
|
||||
* \return true if csb is empty false otherwise.
|
||||
*/
|
||||
static inline bool pvr_csb_is_empty(struct pvr_csb *csb)
|
||||
static inline bool pvr_csb_is_empty(const struct pvr_csb *csb)
|
||||
{
|
||||
return list_is_empty(&csb->pvr_bo_list);
|
||||
}
|
||||
|
||||
static inline pvr_dev_addr_t pvr_csb_get_start_address(struct pvr_csb *csb)
|
||||
static inline pvr_dev_addr_t
|
||||
pvr_csb_get_start_address(const struct pvr_csb *csb)
|
||||
{
|
||||
if (!pvr_csb_is_empty(csb)) {
|
||||
struct pvr_bo *pvr_bo =
|
||||
|
|
Loading…
Reference in New Issue