mirror of https://gitlab.freedesktop.org/mesa/mesa
nvk: Make nvk_min_cbuf_alignment() inline
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29591>
This commit is contained in:
parent
cbe62813a1
commit
903fb6f74a
|
@ -626,12 +626,6 @@ nvk_get_device_features(const struct nv_device_info *info,
|
|||
};
|
||||
}
|
||||
|
||||
uint32_t
|
||||
nvk_min_cbuf_alignment(const struct nv_device_info *info)
|
||||
{
|
||||
return info->cls_eng3d >= TURING_A ? 64 : 256;
|
||||
}
|
||||
|
||||
static void
|
||||
nvk_get_device_properties(const struct nvk_instance *instance,
|
||||
const struct nv_device_info *info,
|
||||
|
|
|
@ -61,7 +61,11 @@ struct nvk_physical_device {
|
|||
const struct vk_sync_type *sync_types[2];
|
||||
};
|
||||
|
||||
uint32_t nvk_min_cbuf_alignment(const struct nv_device_info *info);
|
||||
static inline uint32_t
|
||||
nvk_min_cbuf_alignment(const struct nv_device_info *info)
|
||||
{
|
||||
return info->cls_eng3d >= 0xC597 /* TURING_A */ ? 64 : 256;
|
||||
}
|
||||
|
||||
VK_DEFINE_HANDLE_CASTS(nvk_physical_device,
|
||||
vk.base,
|
||||
|
|
Loading…
Reference in New Issue