diff options
author | Matt Turner <[email protected]> | 2014-12-30 19:54:50 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-01-23 17:57:39 -0800 |
commit | 71486e9f2d37fc473dd8ae20555882f89402a9d7 (patch) | |
tree | 336092810b2fe543fc4e84233c20eb5b013fefc0 | |
parent | 65dd4a255a16a0b5cf843ff1d4657fe346caf116 (diff) |
i965/cfg: Add a foreach_block_reverse macro.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cfg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index 3b1bd16194c..0b60fec9825 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drivers/dri/i965/brw_cfg.h @@ -297,6 +297,9 @@ struct cfg_t { #define foreach_block(__block, __cfg) \ foreach_list_typed (bblock_t, __block, link, &(__cfg)->block_list) +#define foreach_block_reverse(__block, __cfg) \ + foreach_list_typed_reverse (bblock_t, __block, link, &(__cfg)->block_list) + #define foreach_block_safe(__block, __cfg) \ foreach_list_typed_safe (bblock_t, __block, link, &(__cfg)->block_list) |