From 6d7abafdc86c6d8533bcb798465452c78c2694e8 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 26 Jan 2013 02:06:08 -0800 Subject: 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. --- src/mesa/drivers/dri/i965/brw_primitive_restart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3