mesa: Remove unused _mesa_all_buffers_are_unmapped
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14098>
This commit is contained in:
parent
31ad50d989
commit
8aa776ab1f
|
@ -850,33 +850,6 @@ _mesa_all_varyings_in_vbos(const struct gl_vertex_array_object *vao)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
_mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao)
|
|
||||||
{
|
|
||||||
/* Walk the enabled arrays that have a vbo attached */
|
|
||||||
GLbitfield mask = vao->Enabled & vao->VertexAttribBufferMask;
|
|
||||||
|
|
||||||
while (mask) {
|
|
||||||
const int i = ffs(mask) - 1;
|
|
||||||
const struct gl_array_attributes *attrib_array =
|
|
||||||
&vao->VertexAttrib[i];
|
|
||||||
const struct gl_vertex_buffer_binding *buffer_binding =
|
|
||||||
&vao->BufferBinding[attrib_array->BufferBindingIndex];
|
|
||||||
|
|
||||||
/* We have already masked with vao->VertexAttribBufferMask */
|
|
||||||
assert(buffer_binding->BufferObj);
|
|
||||||
|
|
||||||
/* Bail out once we find the first disallowed mapping */
|
|
||||||
if (_mesa_check_disallowed_mapping(buffer_binding->BufferObj))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* We have handled everything that is bound to this buffer_binding. */
|
|
||||||
mask &= ~buffer_binding->_BoundArrays;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map buffer objects used in attribute arrays.
|
* Map buffer objects used in attribute arrays.
|
||||||
|
|
|
@ -104,11 +104,6 @@ _mesa_set_vao_immutable(struct gl_context *ctx,
|
||||||
extern bool
|
extern bool
|
||||||
_mesa_all_varyings_in_vbos(const struct gl_vertex_array_object *vao);
|
_mesa_all_varyings_in_vbos(const struct gl_vertex_array_object *vao);
|
||||||
|
|
||||||
/* Returns true if all vbos are unmapped */
|
|
||||||
extern bool
|
|
||||||
_mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao);
|
|
||||||
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
_mesa_vao_map_arrays(struct gl_context *ctx, struct gl_vertex_array_object *vao,
|
_mesa_vao_map_arrays(struct gl_context *ctx, struct gl_vertex_array_object *vao,
|
||||||
GLbitfield access);
|
GLbitfield access);
|
||||||
|
|
Loading…
Reference in New Issue