diff options
author | Jordan Justen <[email protected]> | 2012-05-12 21:01:19 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-05-23 15:19:09 -0700 |
commit | df7d1323de08274c816a8e5fab7e99b6f00f4fa3 (patch) | |
tree | 1fdb9012d258c421d40f5dea4cb7393b2e8729f0 /src/mesa/drivers/dri/i965/brw_context.c | |
parent | 9f6932cb83def5449a9293cb41238bbc492cb8c4 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 26f0d54466c..4078e484827 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -296,6 +296,8 @@ brwCreateContext(int api, brw->has_negative_rhw_bug = true; } + brw->prim_restart.in_progress = false; + brw_init_state( brw ); brw->curbe.last_buf = calloc(1, 4096); |