Module: Mesa
Branch: master
Commit: 6d7abafdc86c6d8533bcb798465452c78c2694e8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d7abafdc86c6d8533bcb798465452c78c2694e8

Author: Kenneth Graunke <[email protected]>
Date:   Sat Jan 26 02:06:08 2013 -0800

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_primitive_restart.c 
b/src/mesa/drivers/dri/i965/brw_primitive_restart.c
index b5cfbbc..5fbc933 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)) {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to