summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-22 15:16:23 +0100
committerEric Engestrom <[email protected]>2019-07-31 09:41:05 +0100
commit21196ec927b9961257f20f17b3ffaa92fbdda6a0 (patch)
tree6a070dbeb52375280f3ec4726ac2fc17d1737215 /src/gallium/drivers/r600
parent5febd4d575393fbd7b42db4446f064f4054416a4 (diff)
r600: move variable to proper scope
It helps show when it's actually used. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/compute_memory_pool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index 4c87b32fcd4..805cf662da7 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -429,14 +429,13 @@ static void compute_memory_move_item(struct compute_memory_pool *pool,
struct r600_context *rctx = (struct r600_context *)pipe;
struct pipe_box box;
- MAYBE_UNUSED struct compute_memory_item *prev;
-
COMPUTE_DBG(pool->screen, "* compute_memory_move_item()\n"
" + Moving item %"PRIi64" from %"PRIi64" (%"PRIi64" bytes) to %"PRIu64" (%"PRIu64" bytes)\n",
item->id, item->start_in_dw, item->start_in_dw * 4,
new_start_in_dw, new_start_in_dw * 4);
if (pool->item_list != item->link.prev) {
+ MAYBE_UNUSED struct compute_memory_item *prev;
prev = container_of(item->link.prev, item, link);
assert(prev->start_in_dw + prev->size_in_dw <= new_start_in_dw);
}