struct r300_context* r300 = r300_context(context);
struct r300_query* query, * temp;
- u_hash_table_foreach(r300->shader_hash_table, r300_clear_hash_table,
+ util_hash_table_foreach(r300->shader_hash_table, r300_clear_hash_table,
NULL);
- u_hash_table_destroy(r300->shader_hash_table);
+ util_hash_table_destroy(r300->shader_hash_table);
draw_destroy(r300->draw);
r300->context.is_texture_referenced = r300_is_texture_referenced;
r300->context.is_buffer_referenced = r300_is_buffer_referenced;
- r300->shader_hash_table = u_hash_table_create(r300_shader_key_hash,
+ r300->shader_hash_table = util_hash_table_create(r300_shader_key_hash,
r300_shader_key_compare);
r300->blend_color_state = CALLOC_STRUCT(r300_blend_color_state);
/* Shader hash table. Used to store vertex formatting information, which
* depends on the combination of both currently loaded shaders. */
- struct u_hash_table* shader_hash_table;
+ struct util_hash_table* shader_hash_table;
/* Vertex formatting information. */
struct r300_vertex_format* vertex_info;
key->vs = r300->vs;
key->fs = r300->fs;
- value = u_hash_table_get(r300->shader_hash_table, (void*)key);
+ value = util_hash_table_get(r300->shader_hash_table, (void*)key);
if (value) {
debug_printf("r300: Hash table hit! vs: %p fs: %p\n", key->vs,
key->fs);
r300_vs_tab_routes(r300, vformat);
r300_vertex_psc(r300, vformat);
- if (u_hash_table_set(r300->shader_hash_table, (void*)key,
- (void*)vformat) != PIPE_OK) {
- debug_printf("r300: Hash table insertion error!\n");
- }
+ util_hash_table_set(r300->shader_hash_table,
+ (void*)key, (void*)vformat);
}
if (r300->vertex_info != vformat) {