summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-06-30 09:22:27 -0700
committerKenneth Graunke <[email protected]>2014-08-10 19:32:34 -0700
commit7d41170b62570eafa0d3041a87cff9ad57ff418e (patch)
tree1789bb22cb48fa59e009451af799ae47ad714325
parent0457464c3343b3809048249fa5c1c0867ef499dc (diff)
i965/eu: Make it clear that brw_patch_break_count only runs on Gen4-5.
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Chris Forbes <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_emit.c2
1 files changed, 2 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 beac35e609a..e102d4b1c4a 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -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