v3dv: constify arguments of vendor/device id getters

These functions do not modify their arguments in any way, so might as
well make the arguments const.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26386>
This commit is contained in:
Oskar Viljasaar 2023-11-17 21:49:30 +02:00 committed by Marge Bot
parent 1afbf0ba4a
commit 18c9b64e65
2 changed files with 4 additions and 4 deletions

View File

@ -1075,13 +1075,13 @@ enumerate_devices(struct vk_instance *vk_instance)
}
uint32_t
v3dv_physical_device_vendor_id(struct v3dv_physical_device *dev)
v3dv_physical_device_vendor_id(const struct v3dv_physical_device *dev)
{
return 0x14E4; /* Broadcom */
}
uint32_t
v3dv_physical_device_device_id(struct v3dv_physical_device *dev)
v3dv_physical_device_device_id(const struct v3dv_physical_device *dev)
{
#if using_v3d_simulator
return dev->device_id;

View File

@ -2398,8 +2398,8 @@ v3dv_cmd_buffer_get_descriptor_state(struct v3dv_cmd_buffer *cmd_buffer,
const nir_shader_compiler_options *v3dv_pipeline_get_nir_options(void);
uint32_t v3dv_physical_device_vendor_id(struct v3dv_physical_device *dev);
uint32_t v3dv_physical_device_device_id(struct v3dv_physical_device *dev);
uint32_t v3dv_physical_device_vendor_id(const struct v3dv_physical_device *dev);
uint32_t v3dv_physical_device_device_id(const struct v3dv_physical_device *dev);
#define v3dv_debug_ignored_stype(sType) \
mesa_logd("%s: ignored VkStructureType %u:%s\n\n", __func__, (sType), vk_StructureType_to_str(sType))