diff options
author | Kenneth Graunke <[email protected]> | 2014-06-30 08:06:43 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-08-10 19:32:34 -0700 |
commit | 0457464c3343b3809048249fa5c1c0867ef499dc (patch) | |
tree | 6242edd6157cf2f77564ab89c110bd71ac8aae96 /src/mesa/drivers/dri/i965/brw_eu_emit.c | |
parent | 0d6adce469b36190224cd13173441e98870c695a (diff) |
i965/eu: Make it clear that brw_find_loop_end only runs on Gen6+.
It has Gen6+ knowledge baked in, and indeed is only called for Gen6+,
but it wasn't immediately obvious that this was the case.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu_emit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 |
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 1128bad29e5..beac35e609a 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -2341,6 +2341,8 @@ brw_find_loop_end(struct brw_compile *p, int start_offset) int scale = 8; void *store = p->store; + assert(brw->gen >= 6); + /* Always start after the instruction (such as a WHILE) we're trying to fix * up. */ |