Mesa (master): i965/cfg: Add a foreach_inst_in_block_reverse_safe macro.
Matt Turner
mattst88 at kemper.freedesktop.org
Sat Jan 24 01:56:21 UTC 2015
Module: Mesa
Branch: master
Commit: 65dd4a255a16a0b5cf843ff1d4657fe346caf116
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=65dd4a255a16a0b5cf843ff1d4657fe346caf116
Author: Matt Turner <mattst88 at gmail.com>
Date: Tue Dec 30 16:14:43 2014 -0800
i965/cfg: Add a foreach_inst_in_block_reverse_safe macro.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
---
src/mesa/drivers/dri/i965/brw_cfg.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h
index 48bca9f..3b1bd16 100644
--- a/src/mesa/drivers/dri/i965/brw_cfg.h
+++ b/src/mesa/drivers/dri/i965/brw_cfg.h
@@ -314,6 +314,9 @@ struct cfg_t {
#define foreach_inst_in_block_reverse(__type, __inst, __block) \
foreach_in_list_reverse(__type, __inst, &(__block)->instructions)
+#define foreach_inst_in_block_reverse_safe(__type, __inst, __block) \
+ foreach_in_list_reverse_safe(__type, __inst, &(__block)->instructions)
+
#define foreach_inst_in_block_starting_from(__type, __scan_inst, __inst, __block) \
for (__type *__scan_inst = (__type *)__inst->next; \
!__scan_inst->is_tail_sentinel(); \
More information about the mesa-commit
mailing list