From c58f35393e9505ec8694b87579037f58df607865 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 31 Jul 2014 12:45:41 -0700 Subject: [PATCH] vc4: Walk tiles horizontally, then vertically. I was confused looking at my addresses in dumps because I was seeing the tile branch offsets jumping all over. --- src/gallium/drivers/vc4/vc4_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index 759fc0280b4..c69d620d6b6 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -132,8 +132,8 @@ vc4_setup_rcl(struct vc4_context *vc4) cl_u32(&vc4->rcl, 0); /* no address, since we're in None mode */ } - for (int x = 0; x < xtiles; x++) { - for (int y = 0; y < ytiles; y++) { + for (int y = 0; y < ytiles; y++) { + for (int x = 0; x < xtiles; x++) { bool end_of_frame = (x == xtiles - 1 && y == ytiles - 1);