i965/cfg: Add a foreach_block_reverse macro.
authorMatt Turner <mattst88@gmail.com>
Wed, 31 Dec 2014 03:54:50 +0000 (19:54 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 24 Jan 2015 01:57:39 +0000 (17:57 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_cfg.h

index 3b1bd16194cc98ada1d0f32a3e6e76c4fafbf327..0b60fec9825ee609c21e17ed4287ad60c48f20cd 100644 (file)
@@ -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)