diff options
author | Timothy Arceri <[email protected]> | 2017-01-26 13:50:42 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-01-30 10:17:54 +1100 |
commit | 2842dea310e80346a077ec21fe5932875c0d9265 (patch) | |
tree | b7a7bf115de09e56bfda3ab043dc98a67967a48d /src/mesa | |
parent | 77a6597bb7b05d8d8ce30be9eb24792faa9067e9 (diff) |
i965: add assert to while_jumps_before_offset()
jip should always be negative here as its the result of
do instruction - while instruction.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_emit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 257757f2490..f4bec33f53b 100644 --- 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; } |