projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26624b8
)
i965/cfg: Add a foreach_block_and_inst_safe macro.
author
Matt Turner
<mattst88@gmail.com>
Tue, 15 Jul 2014 02:48:15 +0000
(19:48 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Tue, 19 Aug 2014 02:08:53 +0000
(19:08 -0700)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_cfg.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_cfg.h
b/src/mesa/drivers/dri/i965/brw_cfg.h
index 913a1ed85de247194ad996161aeb87ddd4f0799e..29e31e77efbd1c186bae63a6a9b4a78a9eed7460 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_cfg.h
+++ b/
src/mesa/drivers/dri/i965/brw_cfg.h
@@
-109,6
+109,10
@@
struct cfg_t {
foreach_block (__block, __cfg) \
foreach_inst_in_block (__type, __inst, __block)
+#define foreach_block_and_inst_safe(__block, __type, __inst, __cfg) \
+ foreach_block_safe (__block, __cfg) \
+ foreach_inst_in_block_safe (__type, __inst, __block)
+
#define foreach_block(__block, __cfg) \
foreach_list_typed (bblock_t, __block, link, &(__cfg)->block_list)