i965/gs: New gs primitive types are supported by HW primitive restart.
authorPaul Berry <stereotype441@gmail.com>
Tue, 27 Aug 2013 04:20:12 +0000 (21:20 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 17 Sep 2013 22:18:11 +0000 (15:18 -0700)
When we previously implemented primitive restart, we didn't add cases
to brw_primitive_restart.c's can_cut_index_handle_prims() for the
primitive types that are introduced with geometry shaders.  It turns
out that all of the new primitive types are supported by hardware
primitive restart.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_primitive_restart.c

index bd48762c200a9e763f0aaff4885ef25f021a96e7..2ee6055032e34f7f384d843f0e1d3ed0d600fd3b 100644 (file)
@@ -99,6 +99,10 @@ can_cut_index_handle_prims(struct gl_context *ctx,
       case GL_LINE_STRIP:
       case GL_TRIANGLES:
       case GL_TRIANGLE_STRIP:
+      case GL_LINES_ADJACENCY:
+      case GL_LINE_STRIP_ADJACENCY:
+      case GL_TRIANGLES_ADJACENCY:
+      case GL_TRIANGLE_STRIP_ADJACENCY:
          /* Cut index supports these primitive types */
          break;
       default: