diff options
Diffstat (limited to 'lib/mesa/src/gallium/drivers/r300/r300_render_stencilref.c')
-rw-r--r-- | lib/mesa/src/gallium/drivers/r300/r300_render_stencilref.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/drivers/r300/r300_render_stencilref.c b/lib/mesa/src/gallium/drivers/r300/r300_render_stencilref.c index 5135ce776..87d944d2e 100644 --- a/lib/mesa/src/gallium/drivers/r300/r300_render_stencilref.c +++ b/lib/mesa/src/gallium/drivers/r300/r300_render_stencilref.c @@ -36,8 +36,9 @@ struct r300_stencilref_context { void (*draw_vbo)(struct pipe_context *pipe, const struct pipe_draw_info *info, + unsigned drawid_offset, const struct pipe_draw_indirect_info *indirect, - const struct pipe_draw_start_count *draws, + const struct pipe_draw_start_count_bias *draws, unsigned num_draws); uint32_t rs_cull_mode; @@ -105,20 +106,21 @@ static void r300_stencilref_end(struct r300_context *r300) static void r300_stencilref_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info, + unsigned drawid_offset, const struct pipe_draw_indirect_info *indirect, - const struct pipe_draw_start_count *draws, + const struct pipe_draw_start_count_bias *draws, unsigned num_draws) { struct r300_context *r300 = r300_context(pipe); struct r300_stencilref_context *sr = r300->stencilref_fallback; if (!r300_stencilref_needed(r300)) { - sr->draw_vbo(pipe, info, NULL, draws, num_draws); + sr->draw_vbo(pipe, info, drawid_offset, NULL, draws, num_draws); } else { r300_stencilref_begin(r300); - sr->draw_vbo(pipe, info, NULL, draws, num_draws); + sr->draw_vbo(pipe, info, drawid_offset, NULL, draws, num_draws); r300_stencilref_switch_side(r300); - sr->draw_vbo(pipe, info, NULL, draws, num_draws); + sr->draw_vbo(pipe, info, drawid_offset, NULL, draws, num_draws); r300_stencilref_end(r300); } } |