OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d0ccb
)
i965/cfg: Add a foreach_block_safe macro.
author
Matt Turner
<mattst88@gmail.com>
Mon, 14 Jul 2014 18:15:51 +0000
(11:15 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Tue, 19 Aug 2014 02:05:59 +0000
(19:05 -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
f7203e2
..
a5d2df5
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_cfg.h
+++ b/
src/mesa/drivers/dri/i965/brw_cfg.h
@@
-112,6
+112,9
@@
struct cfg_t {
#define foreach_block(__block, __cfg) \
foreach_list_typed (bblock_t, __block, link, &(__cfg)->block_list)
+#define foreach_block_safe(__block, __cfg) \
+ foreach_list_typed_safe (bblock_t, __block, link, &(__cfg)->block_list)
+
#define foreach_inst_in_block(__type, __inst, __block) \
for (__type *__inst = (__type *)__block->start; \
__inst != __block->end->next; \