Lines Matching defs:history
51 struct fd_batch_history *history;
62 history = entry->data;
66 history = rzalloc_size(at->ht, sizeof(*history));
68 history->key = fd_batch_key_clone(history, batch->key);
69 list_inithead(&history->node);
70 list_inithead(&history->results);
83 _mesa_hash_table_insert_pre_hashed(at->ht, batch->hash, history->key,
84 history);
88 list_delinit(&history->node);
89 list_add(&history->node, &at->lru);
91 return history;
104 get_result(struct fd_autotune *at, struct fd_batch_history *history)
106 struct fd_batch_result *result = rzalloc_size(history, sizeof(*result));
115 result->history = history;
133 struct fd_batch_history *history = result->history;
139 list_add(&result->node, &history->results);
141 if (history->num_results < MAX_RESULTS) {
142 history->num_results++;
148 list_last_entry(&history->results, struct fd_batch_result, node);
198 struct fd_batch_history *history = get_history(at, batch);
199 if (!history)
202 batch->autotune_result = get_result(at, history);
210 if (history->num_results > 0) {
216 list_for_each_entry (struct fd_batch_result, result, &history->results,
221 float avg_samples = (float)total_samples / (float)history->num_results;