summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-01-18 13:50:04 -0700
committerBrian Paul <[email protected]>2018-01-24 10:12:49 -0700
commit7b0ae96711032a99a0b74a4c4a01d086f01a9f0c (patch)
tree3f4ee1632a1ff15daa38ab771f4837dcd981c7d0
parent3bbf8d9042c93d410666c94e078f852cccc330ea (diff)
i965: use vbo_set_[indirect]_draw_func()
Instead of poking into the vbo_context object. Reviewed-by: Roland Scheidegger <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 8692b886e5b..fe7e8c478fa 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -1057,12 +1057,11 @@ void
brw_draw_init(struct brw_context *brw)
{
struct gl_context *ctx = &brw->ctx;
- struct vbo_context *vbo = vbo_context(ctx);
/* Register our drawing function:
*/
- vbo->draw_prims = brw_draw_prims;
- vbo->draw_indirect_prims = brw_draw_indirect_prims;
+ vbo_set_draw_func(ctx, brw_draw_prims);
+ vbo_set_indirect_draw_func(ctx, brw_draw_indirect_prims);
for (int i = 0; i < VERT_ATTRIB_MAX; i++)
brw->vb.inputs[i].buffer = -1;