projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77a6597
)
i965: add assert to while_jumps_before_offset()
author
Timothy Arceri
<t_arceri@yahoo.com.au>
Thu, 26 Jan 2017 02:50:42 +0000
(13:50 +1100)
committer
Timothy Arceri
<t_arceri@yahoo.com.au>
Sun, 29 Jan 2017 23:17:54 +0000
(10:17 +1100)
jip should always be negative here as its the result of
do instruction - while instruction.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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 257757f2490bd72a1ff50cbe4815936d352f9d8d..f4bec33f53b76918a09e0e8ad4889f4d90a6ad91 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/
src/mesa/drivers/dri/i965/brw_eu_emit.c
@@
-2714,6
+2714,7
@@
while_jumps_before_offset(const struct gen_device_info *devinfo,
int scale = 16 / brw_jump_scale(devinfo);
int jip = devinfo->gen == 6 ? brw_inst_gen6_jump_count(devinfo, insn)
: brw_inst_jip(devinfo, insn);
+ assert(jip < 0);
return while_offset + jip * scale <= start_offset;
}