diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-02-03 20:20:05 -0500 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-02-11 00:34:57 +0000 |
commit | a7d03103f30bfff532a0c6d6e22fa5e7a24cad27 (patch) | |
tree | 9ce416482ebbc2fbc188d1c7683da4a0096cdfa1 /src/mesa/vbo/vbo_exec.c | |
parent | 7575a0a25120b9637d50fcf2b55a4859b505f781 (diff) |
vbo: merge use_buffer_objects into vbo_CreateContext to skip the big malloc
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
Diffstat (limited to 'src/mesa/vbo/vbo_exec.c')
-rw-r--r-- | src/mesa/vbo/vbo_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_exec.c b/src/mesa/vbo/vbo_exec.c index c4d4bc6e0ef..e4775ba5c12 100644 --- a/src/mesa/vbo/vbo_exec.c +++ b/src/mesa/vbo/vbo_exec.c @@ -109,13 +109,13 @@ _vbo_attribute_alias_map[VP_MODE_MAX][VERT_ATTRIB_MAX] = { void -vbo_exec_init(struct gl_context *ctx) +vbo_exec_init(struct gl_context *ctx, bool use_buffer_objects) { struct vbo_exec_context *exec = &vbo_context(ctx)->exec; exec->ctx = ctx; - vbo_exec_vtx_init(exec); + vbo_exec_vtx_init(exec, use_buffer_objects); ctx->Driver.NeedFlush = 0; ctx->Driver.CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END; |