aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-09-02 21:07:51 -0700
committerMatt Turner <[email protected]>2014-09-24 09:42:46 -0700
commitef75f60822b71a5ac1715f0e3d9b04b9f7e9020f (patch)
tree0f84f779df1a2d04f1b959578dfc2524c5e7d2ca /src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
parent444fc0b4a837a669c585f52b1d814300cfc9c999 (diff)
i965: Add and use functions to get next/prev blocks.
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
index e03fc6950aa..33829d253e7 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
@@ -200,9 +200,9 @@ count_to_loop_end(const bblock_t *block)
/* Skip the first block, since we don't want to count the do the calling
* function found.
*/
- for (block = (bblock_t *)block->link.next;
+ for (block = block->next();
depth > 0;
- block = (bblock_t *)block->link.next) {
+ block = block->next()) {
if (block->start()->opcode == BRW_OPCODE_DO)
depth++;
if (block->end()->opcode == BRW_OPCODE_WHILE) {