diff options
author | Eric Anholt <[email protected]> | 2014-07-31 12:45:41 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-11 14:45:30 -0700 |
commit | c58f35393e9505ec8694b87579037f58df607865 (patch) | |
tree | 19484359446622d0ee7240e8e859a340963c8b16 /src | |
parent | 165ca6b5ad4fbd20798b6bd8120504761865436c (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.c | 4 |
1 files 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); |