11 Jan
2024
11 Jan
'24
1:39 p.m.
Giovanni Mascellani (@giomasce) commented about libs/vkd3d/cache.c:
#include <stdarg.h> #include <stdio.h>
+/* List of open caches. I expect the number to be small. */ +static struct list cache_list = LIST_INIT(cache_list); +static struct vkd3d_mutex cache_list_mutex; +static LONG cache_mutex_initialized; + +struct vkd3d_shader_cache +{ + LONG refcount; + struct vkd3d_shader_cache_desc desc; + struct list cache_list_entry; + char name[1]; We use C99, you don't need the `1`.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/541#note_57175