diff options
author | Paul Berry <[email protected]> | 2013-08-26 21:20:12 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-09-17 15:18:11 -0700 |
commit | f67fa8f3c85a991d3d88409a2c3981cd9b2f2120 (patch) | |
tree | 1b3f4eb8160f1faf6d355f4433e9bafee7b1a7c6 /src/mesa/drivers/dri/i965 | |
parent | 9791af90e3025fdec090808316e8fe130478dcc9 (diff) |
i965/gs: New gs primitive types are supported by HW primitive restart.
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_primitive_restart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_primitive_restart.c b/src/mesa/drivers/dri/i965/brw_primitive_restart.c index bd48762c200..2ee6055032e 100644 --- a/src/mesa/drivers/dri/i965/brw_primitive_restart.c +++ b/src/mesa/drivers/dri/i965/brw_primitive_restart.c @@ -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: |