return hash;
}
-static void delete_blend_state(void *state, void *data)
+static void delete_blend_state(void *state, UNUSED void *data)
{
struct cso_blend *cso = (struct cso_blend *)state;
if (cso->delete_state)
FREE(state);
}
-static void delete_depth_stencil_state(void *state, void *data)
+static void delete_depth_stencil_state(void *state, UNUSED void *data)
{
struct cso_depth_stencil_alpha *cso = (struct cso_depth_stencil_alpha *)state;
if (cso->delete_state)
FREE(state);
}
-static void delete_sampler_state(void *state, void *data)
+static void delete_sampler_state(void *state, UNUSED void *data)
{
struct cso_sampler *cso = (struct cso_sampler *)state;
if (cso->delete_state)
FREE(state);
}
-static void delete_rasterizer_state(void *state, void *data)
+static void delete_rasterizer_state(void *state, UNUSED void *data)
{
struct cso_rasterizer *cso = (struct cso_rasterizer *)state;
if (cso->delete_state)
FREE(state);
}
-static void delete_velements(void *state, void *data)
+static void delete_velements(void *state, UNUSED void *data)
{
struct cso_velements *cso = (struct cso_velements *)state;
if (cso->delete_state)
static inline void sanitize_cb(struct cso_hash *hash, enum cso_cache_type type,
- int max_size, void *user_data)
+ int max_size, UNUSED void *user_data)
{
/* if we're approach the maximum size, remove fourth of the entries
* otherwise every subsequent call will go through the same */