From: Kenneth Graunke Date: Sat, 26 Jan 2013 10:06:08 +0000 (-0800) Subject: i965: Assume flexible hardware primitive restart exists in the future. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d7abafdc86c6d8533bcb798465452c78c2694e8;p=mesa.git i965: Assume flexible hardware primitive restart exists in the future. 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. --- diff --git a/src/mesa/drivers/dri/i965/brw_primitive_restart.c b/src/mesa/drivers/dri/i965/brw_primitive_restart.c index b5cfbbc4c6f..5fbc9333dfd 100644 --- a/src/mesa/drivers/dri/i965/brw_primitive_restart.c +++ b/src/mesa/drivers/dri/i965/brw_primitive_restart.c @@ -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)) {