vkd3d: Implement vkd3d_shader_cache_put.

This commit is contained in:
Stefan Dösinger
2023-12-23 21:44:39 +03:00
committed by Alexandre Julliard
parent af33caf036
commit aad76f4ed2
Notes: Alexandre Julliard 2024-04-25 00:16:00 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/791
6 changed files with 146 additions and 3 deletions

View File

@@ -340,6 +340,11 @@ static inline int vkd3d_u32_compare(uint32_t x, uint32_t y)
return (x > y) - (x < y);
}
static inline int vkd3d_u64_compare(uint64_t x, uint64_t y)
{
return (x > y) - (x < y);
}
#define VKD3D_BITMAP_SIZE(x) (((x) + 0x1f) >> 5)
static inline bool bitmap_clear(uint32_t *map, unsigned int idx)