summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-08-15 18:40:14 -0700
committerEric Anholt <[email protected]>2011-08-16 13:04:43 -0700
commitd376fa8e84b044ead47586d1b56a10742bcbdac7 (patch)
treeb83c9863a08a2057534f3847df2494822612235f /src
parente8980c61b2932cd4c8791fcc5afdb54fa033c224 (diff)
i965: Fix assertion failure on a loop consisting of while (true) { break }.
On enabling the precompile step in the VS, we tripped over this assertion failure in glsl-link-bug-30552.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index b08906426e4..f5cc09dd49b 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -2311,7 +2311,7 @@ brw_find_loop_end(struct brw_compile *p, int start)
if (insn->header.opcode == BRW_OPCODE_WHILE) {
int jip = intel->gen == 6 ? insn->bits1.branch_gen6.jump_count
: insn->bits3.break_cont.jip;
- if (ip + jip / br < start)
+ if (ip + jip / br <= start)
return ip;
}
}