mesa: rename some 'client' array functions
A long time ago gl_vertex_array was gl_client_array. Update some function names to be consistent. Reviewed-by: Gert Wollny <gw.fossdev@gmail.com>
This commit is contained in:
@@ -315,8 +315,8 @@ _mesa_initialize_vao(struct gl_context *ctx,
|
||||
* or a gl_vertex_buffer_binding has changed.
|
||||
*/
|
||||
void
|
||||
_mesa_update_vao_client_arrays(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao)
|
||||
_mesa_update_vao_derived_arrays(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao)
|
||||
{
|
||||
GLbitfield arrays = vao->NewArrays;
|
||||
|
||||
@@ -328,7 +328,7 @@ _mesa_update_vao_client_arrays(struct gl_context *ctx,
|
||||
const struct gl_vertex_buffer_binding *buffer_binding =
|
||||
&vao->BufferBinding[attrib_array->BufferBindingIndex];
|
||||
|
||||
_mesa_update_client_array(ctx, client_array, attrib_array,
|
||||
_mesa_update_vertex_array(ctx, client_array, attrib_array,
|
||||
buffer_binding);
|
||||
}
|
||||
}
|
||||
|
@@ -78,8 +78,8 @@ _mesa_initialize_vao(struct gl_context *ctx,
|
||||
|
||||
|
||||
extern void
|
||||
_mesa_update_vao_client_arrays(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao);
|
||||
_mesa_update_vao_derived_arrays(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao);
|
||||
|
||||
/* Returns true if all varying arrays reside in vbos */
|
||||
extern bool
|
||||
|
@@ -1503,7 +1503,7 @@ copy_array_object(struct gl_context *ctx,
|
||||
/* skip RefCount */
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(src->VertexAttrib); i++) {
|
||||
_mesa_copy_client_array(ctx, &dest->_VertexAttrib[i], &src->_VertexAttrib[i]);
|
||||
_mesa_copy_vertex_array(ctx, &dest->_VertexAttrib[i], &src->_VertexAttrib[i]);
|
||||
_mesa_copy_vertex_attrib_array(ctx, &dest->VertexAttrib[i], &src->VertexAttrib[i]);
|
||||
_mesa_copy_vertex_buffer_binding(ctx, &dest->BufferBinding[i], &src->BufferBinding[i]);
|
||||
}
|
||||
|
@@ -357,7 +357,7 @@ _mesa_update_state_locked( struct gl_context *ctx )
|
||||
}
|
||||
|
||||
if (new_state & _NEW_ARRAY)
|
||||
_mesa_update_vao_client_arrays(ctx, ctx->Array.VAO);
|
||||
_mesa_update_vao_derived_arrays(ctx, ctx->Array.VAO);
|
||||
|
||||
out:
|
||||
new_prog_state |= update_program_constants(ctx);
|
||||
|
@@ -2794,10 +2794,10 @@ _mesa_VertexArrayBindingDivisor(GLuint vaobj, GLuint bindingIndex,
|
||||
|
||||
|
||||
/**
|
||||
* Copy one client vertex array to another.
|
||||
* Copy one vertex array to another.
|
||||
*/
|
||||
void
|
||||
_mesa_copy_client_array(struct gl_context *ctx,
|
||||
_mesa_copy_vertex_array(struct gl_context *ctx,
|
||||
struct gl_vertex_array *dst,
|
||||
struct gl_vertex_array *src)
|
||||
{
|
||||
|
@@ -53,7 +53,7 @@ _mesa_vertex_attrib_address(const struct gl_array_attributes *array,
|
||||
* gl_array_attributes and a gl_vertex_buffer_binding.
|
||||
*/
|
||||
static inline void
|
||||
_mesa_update_client_array(struct gl_context *ctx,
|
||||
_mesa_update_vertex_array(struct gl_context *ctx,
|
||||
struct gl_vertex_array *dst,
|
||||
const struct gl_array_attributes *attribs,
|
||||
const struct gl_vertex_buffer_binding *binding)
|
||||
@@ -475,7 +475,7 @@ _mesa_VertexArrayBindingDivisor(GLuint vaobj, GLuint bindingIndex,
|
||||
GLuint divisor);
|
||||
|
||||
extern void
|
||||
_mesa_copy_client_array(struct gl_context *ctx,
|
||||
_mesa_copy_vertex_array(struct gl_context *ctx,
|
||||
struct gl_vertex_array *dst,
|
||||
struct gl_vertex_array *src);
|
||||
|
||||
|
Reference in New Issue
Block a user