i965/eu: Make it clear that brw_patch_break_count only runs on Gen4-5.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jun 2014 16:22:27 +0000 (09:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 02:32:34 +0000 (19:32 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index beac35e609aa5d3df99d1fb5b379efebe241dcd9..e102d4b1c4aa3b49527b0b223d44c0b95b4cf8e5 100644 (file)
@@ -1631,6 +1631,8 @@ brw_patch_break_cont(struct brw_compile *p, brw_inst *while_inst)
    brw_inst *inst;
    int br = (brw->gen == 5) ? 2 : 1;
 
+   assert(brw->gen < 6);
+
    for (inst = while_inst - 1; inst != do_inst; inst--) {
       /* If the jump count is != 0, that means that this instruction has already
        * been patched because it's part of a loop inside of the one we're