summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_draw.h
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2012-05-12 21:01:19 -0700
committerJordan Justen <jordan.l.justen@intel.com>2012-05-23 15:19:09 -0700
commitdf7d1323de08274c816a8e5fab7e99b6f00f4fa3 (patch)
tree1fdb9012d258c421d40f5dea4cb7393b2e8729f0 /src/mesa/drivers/dri/i965/brw_draw.h
parent9f6932cb83def5449a9293cb41238bbc492cb8c4 (diff)
downloadexternal_mesa3d-df7d1323de08274c816a8e5fab7e99b6f00f4fa3.zip
external_mesa3d-df7d1323de08274c816a8e5fab7e99b6f00f4fa3.tar.gz
external_mesa3d-df7d1323de08274c816a8e5fab7e99b6f00f4fa3.tar.bz2
i965: create code path to handle primitive restart in hardware
For newer hardware we disable the VBO module's software handling of primitive restart. We now handle primitive restarts in brw_handle_primitive_restart. The initial version of brw_handle_primitive_restart simply calls vbo_sw_primitive_restart, and therefore still uses the VBO module software primitive restart support. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_draw.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.h b/src/mesa/drivers/dri/i965/brw_draw.h
index 2cc4cb3..d86a9e7 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.h
+++ b/src/mesa/drivers/dri/i965/brw_draw.h
@@ -51,4 +51,11 @@ void brw_draw_destroy( struct brw_context *brw );
void brw_init_current_values(struct gl_context *ctx,
struct gl_client_array *arrays);
+/* brw_primitive_restart.c */
+GLboolean
+brw_handle_primitive_restart(struct gl_context *ctx,
+ const struct _mesa_prim *prim,
+ GLuint nr_prims,
+ const struct _mesa_index_buffer *ib);
+
#endif