projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8980c6
)
i965: Fix assertion failure on a loop consisting of while (true) { break }.
author
Eric Anholt
<eric@anholt.net>
Tue, 16 Aug 2011 01:40:14 +0000
(18:40 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Aug 2011 20:04:43 +0000
(13:04 -0700)
On enabling the precompile step in the VS, we tripped over this
assertion failure in glsl-link-bug-30552.
src/mesa/drivers/dri/i965/brw_eu_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_eu_emit.c
b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index b08906426e4a73b2a57a0455812240d0c26421e0..f5cc09dd49bf06700d083756c6bc9d7b1eca678d 100644
(file)
--- 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;
}
}