i965: Assume flexible hardware primitive restart exists in the future.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 26 Jan 2013 10:06:08 +0000 (02:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 15 Jun 2013 05:58:18 +0000 (22:58 -0700)
Primitive restart with an arbitrary cut index was first supported as of
Haswell.  It's very doubtful that they'd take that away in future
hardware, so we may as well alter the check now.

src/mesa/drivers/dri/i965/brw_primitive_restart.c

index b5cfbbc4c6fe643c465444199d98fdb1a876ddd0..5fbc9333dfdbcf3e7803466c6c3ecdae1719752c 100644 (file)
@@ -82,7 +82,7 @@ can_cut_index_handle_prims(struct gl_context *ctx,
    struct intel_context *intel = intel_context(ctx);
 
    /* Otherwise Haswell can do it all. */
-   if (intel->is_haswell)
+   if (intel->gen >= 8 || intel->is_haswell)
       return true;
 
    if (!can_cut_index_handle_restart_index(ctx, ib)) {