mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 14:30:22 +01:00
i965: Remove dead arguments from prog_data_compare.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
ce8eadb6e8
commit
fbc088ee49
8 changed files with 8 additions and 17 deletions
|
|
@ -794,8 +794,7 @@ struct brw_cache_item {
|
|||
};
|
||||
|
||||
|
||||
typedef bool (*cache_aux_compare_func)(const void *a, const void *b,
|
||||
int aux_size, const void *key);
|
||||
typedef bool (*cache_aux_compare_func)(const void *a, const void *b);
|
||||
typedef void (*cache_aux_free_func)(const void *aux);
|
||||
|
||||
struct brw_cache {
|
||||
|
|
|
|||
|
|
@ -215,9 +215,7 @@ brw_try_upload_using_copy(struct brw_cache *cache,
|
|||
}
|
||||
|
||||
if (cache->aux_compare[result_item->cache_id]) {
|
||||
if (!cache->aux_compare[result_item->cache_id](item_aux, aux,
|
||||
item->aux_size,
|
||||
item->key))
|
||||
if (!cache->aux_compare[result_item->cache_id](item_aux, aux))
|
||||
continue;
|
||||
} else if (memcmp(item_aux, aux, item->aux_size) != 0) {
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -304,8 +304,7 @@ const struct brw_tracked_state brw_gs_prog = {
|
|||
|
||||
|
||||
bool
|
||||
brw_gs_prog_data_compare(const void *in_a, const void *in_b,
|
||||
int aux_size, const void *in_key)
|
||||
brw_gs_prog_data_compare(const void *in_a, const void *in_b)
|
||||
{
|
||||
const struct brw_gs_prog_data *a = in_a;
|
||||
const struct brw_gs_prog_data *b = in_b;
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
bool brw_gs_prog_data_compare(const void *a, const void *b,
|
||||
int aux_size, const void *key);
|
||||
bool brw_gs_prog_data_compare(const void *a, const void *b);
|
||||
void brw_gs_prog_data_free(const void *in_prog_data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -176,8 +176,7 @@ gl_clip_plane *brw_select_clip_planes(struct gl_context *ctx)
|
|||
|
||||
|
||||
bool
|
||||
brw_vs_prog_data_compare(const void *in_a, const void *in_b,
|
||||
int aux_size, const void *in_key)
|
||||
brw_vs_prog_data_compare(const void *in_a, const void *in_b)
|
||||
{
|
||||
const struct brw_vs_prog_data *a = in_a;
|
||||
const struct brw_vs_prog_data *b = in_b;
|
||||
|
|
|
|||
|
|
@ -93,8 +93,7 @@ bool brw_vs_precompile(struct gl_context *ctx, struct gl_shader_program *prog);
|
|||
void brw_vs_debug_recompile(struct brw_context *brw,
|
||||
struct gl_shader_program *prog,
|
||||
const struct brw_vs_prog_key *key);
|
||||
bool brw_vs_prog_data_compare(const void *a, const void *b,
|
||||
int aux_size, const void *key);
|
||||
bool brw_vs_prog_data_compare(const void *a, const void *b);
|
||||
void brw_vs_prog_data_free(const void *in_prog_data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -103,8 +103,7 @@ brw_compute_barycentric_interp_modes(struct brw_context *brw,
|
|||
}
|
||||
|
||||
bool
|
||||
brw_wm_prog_data_compare(const void *in_a, const void *in_b,
|
||||
int aux_size, const void *in_key)
|
||||
brw_wm_prog_data_compare(const void *in_a, const void *in_b)
|
||||
{
|
||||
const struct brw_wm_prog_data *a = in_a;
|
||||
const struct brw_wm_prog_data *b = in_b;
|
||||
|
|
|
|||
|
|
@ -114,8 +114,7 @@ bool do_wm_prog(struct brw_context *brw,
|
|||
void brw_wm_debug_recompile(struct brw_context *brw,
|
||||
struct gl_shader_program *prog,
|
||||
const struct brw_wm_prog_key *key);
|
||||
bool brw_wm_prog_data_compare(const void *a, const void *b,
|
||||
int aux_size, const void *key);
|
||||
bool brw_wm_prog_data_compare(const void *a, const void *b);
|
||||
void brw_wm_prog_data_free(const void *in_prog_data);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue