diff options
author | Eric Engestrom <[email protected]> | 2018-10-20 18:00:09 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-10-25 12:43:18 +0100 |
commit | e27902a261361e8a7980db14138ef13753db196d (patch) | |
tree | 021b6638314baf37073766f1092e2be736da75aa /src/gallium/drivers/freedreno | |
parent | bb84fa146f2252f22999205a2904d8a948bffd3b (diff) |
util: use C99 declaration in the for-loop set_foreach() macro
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_batch.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_batch_cache.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c index 487176cc638..6c05fbaa74d 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.c +++ b/src/gallium/drivers/freedreno/freedreno_batch.c @@ -182,8 +182,6 @@ batch_flush_reset_dependencies(struct fd_batch *batch, bool flush) static void batch_reset_resources_locked(struct fd_batch *batch) { - struct set_entry *entry; - pipe_mutex_assert_locked(batch->ctx->screen->lock); set_foreach(batch->resources, entry) { diff --git a/src/gallium/drivers/freedreno/freedreno_batch_cache.c b/src/gallium/drivers/freedreno/freedreno_batch_cache.c index a8b32d9bd08..408d48ccdb6 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch_cache.c +++ b/src/gallium/drivers/freedreno/freedreno_batch_cache.c @@ -282,7 +282,6 @@ fd_bc_alloc_batch(struct fd_batch_cache *cache, struct fd_context *ctx, bool non for (unsigned i = 0; i < ARRAY_SIZE(cache->batches); i++) { batch = cache->batches[i]; debug_printf("%d: needs_flush=%d, depends:", batch->idx, batch->needs_flush); - struct set_entry *entry; set_foreach(batch->dependencies, entry) { struct fd_batch *dep = (struct fd_batch *)entry->key; debug_printf(" %d", dep->idx); diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index 7a3c8a8579c..0c7a722aa0c 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -2987,7 +2987,6 @@ get_block(struct ir3_context *ctx, const nir_block *nblock) { struct ir3_block *block; struct hash_entry *hentry; - struct set_entry *sentry; unsigned i; hentry = _mesa_hash_table_search(ctx->block_ht, nblock); |