diff options
author | Eric Engestrom <[email protected]> | 2018-10-20 18:00:08 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-10-25 12:43:18 +0100 |
commit | bb84fa146f2252f22999205a2904d8a948bffd3b (patch) | |
tree | 2e4773252d67da46590ec4a545fc10f6125043a9 /src/intel | |
parent | 3d261cf77b35c56cc575ce9bb7909d2f8d920233 (diff) |
util: use C99 declaration in the for-loop hash_table_foreach() macro
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/common/gen_decoder.c | 2 | ||||
-rw-r--r-- | src/intel/compiler/brw_nir_analyze_ubo_ranges.c | 1 | ||||
-rw-r--r-- | src/intel/tools/aubinator_viewer.cpp | 2 | ||||
-rw-r--r-- | src/intel/vulkan/anv_pipeline_cache.c | 3 |
4 files changed, 0 insertions, 8 deletions
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 5f6e7a0b808..f24d3ccf15d 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.c @@ -702,8 +702,6 @@ void gen_spec_destroy(struct gen_spec *spec) struct gen_group * gen_spec_find_instruction(struct gen_spec *spec, const uint32_t *p) { - struct hash_entry *entry; - hash_table_foreach(spec->commands, entry) { struct gen_group *command = entry->data; uint32_t opcode = *p & command->opcode_mask; diff --git a/src/intel/compiler/brw_nir_analyze_ubo_ranges.c b/src/intel/compiler/brw_nir_analyze_ubo_ranges.c index cfa531675fc..2dfc7b8ddd6 100644 --- a/src/intel/compiler/brw_nir_analyze_ubo_ranges.c +++ b/src/intel/compiler/brw_nir_analyze_ubo_ranges.c @@ -245,7 +245,6 @@ brw_nir_analyze_ubo_ranges(const struct brw_compiler *compiler, struct util_dynarray ranges; util_dynarray_init(&ranges, mem_ctx); - struct hash_entry *entry; hash_table_foreach(state.blocks, entry) { const int b = entry->hash - 1; const struct ubo_block_info *info = entry->data; diff --git a/src/intel/tools/aubinator_viewer.cpp b/src/intel/tools/aubinator_viewer.cpp index d5d289032e8..27ef4f7e99b 100644 --- a/src/intel/tools/aubinator_viewer.cpp +++ b/src/intel/tools/aubinator_viewer.cpp @@ -839,7 +839,6 @@ display_registers_window(struct window *win) filter.Draw(); ImGui::BeginChild(ImGui::GetID("##block")); - struct hash_entry *entry; hash_table_foreach(context.file->spec->registers_by_name, entry) { struct gen_group *reg = (struct gen_group *) entry->data; if (filter.PassFilter(reg->name) && @@ -895,7 +894,6 @@ display_commands_window(struct window *win) if (ImGui::Button("Dwords")) show_dwords ^= 1; ImGui::BeginChild(ImGui::GetID("##block")); - struct hash_entry *entry; hash_table_foreach(context.file->spec->commands, entry) { struct gen_group *cmd = (struct gen_group *) entry->data; if ((cmd_filter.PassFilter(cmd->name) && diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index 3efa427279d..eac058fb47f 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -237,7 +237,6 @@ anv_pipeline_cache_finish(struct anv_pipeline_cache *cache) * going away, the shader cache has to hold a reference to all shader * binaries it contains. We unref them when we destroy the cache. */ - struct hash_entry *entry; hash_table_foreach(cache->cache, entry) anv_shader_bin_unref(cache->device, entry->data); @@ -499,7 +498,6 @@ VkResult anv_GetPipelineCacheData( VkResult result = VK_SUCCESS; if (cache->cache) { - struct hash_entry *entry; hash_table_foreach(cache->cache, entry) { struct anv_shader_bin *shader = entry->data; @@ -540,7 +538,6 @@ VkResult anv_MergePipelineCaches( if (!src->cache) continue; - struct hash_entry *entry; hash_table_foreach(src->cache, entry) { struct anv_shader_bin *bin = entry->data; assert(bin); |