i965/eu: Make it clear that brw_find_loop_end only runs on Gen6+.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jun 2014 15:06:43 +0000 (08:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 02:32:34 +0000 (19:32 -0700)
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 <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 1128bad29e5212367143095461884505aada8d23..beac35e609aa5d3df99d1fb5b379efebe241dcd9 100644 (file)
@@ -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.
     */