mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
vulkan/anv:Remove unused anv_clock_gettime
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40595>
This commit is contained in:
parent
2ff9fa8b72
commit
d067d6e163
1 changed files with 0 additions and 17 deletions
|
|
@ -3810,23 +3810,6 @@ void anv_DestroySampler(
|
|||
vk_object_free(&device->vk, pAllocator, sampler);
|
||||
}
|
||||
|
||||
static uint64_t
|
||||
anv_clock_gettime(clockid_t clock_id)
|
||||
{
|
||||
struct timespec current;
|
||||
int ret;
|
||||
|
||||
ret = clock_gettime(clock_id, ¤t);
|
||||
#ifdef CLOCK_MONOTONIC_RAW
|
||||
if (ret < 0 && clock_id == CLOCK_MONOTONIC_RAW)
|
||||
ret = clock_gettime(CLOCK_MONOTONIC, ¤t);
|
||||
#endif
|
||||
if (ret < 0)
|
||||
return 0;
|
||||
|
||||
return (uint64_t) current.tv_sec * 1000000000ULL + current.tv_nsec;
|
||||
}
|
||||
|
||||
void anv_GetPhysicalDeviceMultisamplePropertiesEXT(
|
||||
VkPhysicalDevice physicalDevice,
|
||||
VkSampleCountFlagBits samples,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue