mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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
2 changed files with 5 additions and 7 deletions
|
|
@ -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
|
static void
|
||||||
nvk_get_device_properties(const struct nvk_instance *instance,
|
nvk_get_device_properties(const struct nvk_instance *instance,
|
||||||
const struct nv_device_info *info,
|
const struct nv_device_info *info,
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,11 @@ struct nvk_physical_device {
|
||||||
const struct vk_sync_type *sync_types[2];
|
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_DEFINE_HANDLE_CASTS(nvk_physical_device,
|
||||||
vk.base,
|
vk.base,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue