mesa: inline _mesa_set_vao_immutable
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27525>
This commit is contained in:
@@ -798,15 +798,6 @@ _mesa_update_vao_derived_arrays(struct gl_context *ctx,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
_mesa_set_vao_immutable(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao)
|
||||
{
|
||||
_mesa_update_vao_derived_arrays(ctx, vao);
|
||||
vao->SharedAndImmutable = true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Map buffer objects used in attribute arrays.
|
||||
*/
|
||||
|
||||
@@ -91,15 +91,6 @@ extern void
|
||||
_mesa_update_vao_derived_arrays(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao);
|
||||
|
||||
|
||||
/**
|
||||
* Mark the vao as shared and immutable, do remaining updates.
|
||||
*/
|
||||
extern void
|
||||
_mesa_set_vao_immutable(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao);
|
||||
|
||||
|
||||
extern void
|
||||
_mesa_vao_map_arrays(struct gl_context *ctx, struct gl_vertex_array_object *vao,
|
||||
GLbitfield access);
|
||||
|
||||
@@ -389,7 +389,8 @@ update_vao(struct gl_context *ctx,
|
||||
assert((vao_enabled & ~(*vao)->VertexAttribBufferMask) == 0);
|
||||
|
||||
/* Finalize and freeze the VAO */
|
||||
_mesa_set_vao_immutable(ctx, *vao);
|
||||
_mesa_update_vao_derived_arrays(ctx, *vao);
|
||||
(*vao)->SharedAndImmutable = true;
|
||||
}
|
||||
|
||||
static void wrap_filled_vertex(struct gl_context *ctx);
|
||||
|
||||
Reference in New Issue
Block a user