[Mesa-dev] [PATCH 07/17] i965: use vbo_set_[indirect]_draw_func()

Brian Paul brianp at vmware.com
Fri Jan 19 17:46:57 UTC 2018


Instead of poking into the vbo_context object.
---
 src/mesa/drivers/dri/i965/brw_draw.c | 5 ++---
 1 file 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 fc349ad..73f2e1f 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -1055,12 +1055,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;
-- 
2.7.4



More information about the mesa-dev mailing list