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:
Marek Olšák
2024-01-04 18:58:44 -05:00
committed by Marge Bot
parent 9aa205668b
commit 10f08c2733
3 changed files with 2 additions and 19 deletions
-9
View File
@@ -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.
*/
-9
View File
@@ -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);
+2 -1
View File
@@ -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);