mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
mesa: Remove some dead helper functions.
Dead since the _MaxElement removal, but these functions seemed generally applicable, so I decided to remove them in a separate patch. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Fredrik Höglund <fredrik@kde.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
a04605a8ca
commit
8c16a0d7ba
1 changed files with 0 additions and 26 deletions
|
|
@ -78,32 +78,6 @@ extern void
|
|||
_mesa_update_vao_client_arrays(struct gl_context *ctx,
|
||||
struct gl_vertex_array_object *vao);
|
||||
|
||||
|
||||
/** Returns the bitmask of all enabled arrays in fixed function mode.
|
||||
*
|
||||
* In fixed function mode only the traditional fixed function arrays
|
||||
* are available.
|
||||
*/
|
||||
static inline GLbitfield64
|
||||
_mesa_array_object_get_enabled_ff(const struct gl_vertex_array_object *vao)
|
||||
{
|
||||
return vao->_Enabled & VERT_BIT_FF_ALL;
|
||||
}
|
||||
|
||||
/** Returns the bitmask of all enabled arrays in arb/glsl shader mode.
|
||||
*
|
||||
* In arb/glsl shader mode all the fixed function and the arb/glsl generic
|
||||
* arrays are available. Only the first generic array takes
|
||||
* precedence over the legacy position array.
|
||||
*/
|
||||
static inline GLbitfield64
|
||||
_mesa_array_object_get_enabled_arb(const struct gl_vertex_array_object *vao)
|
||||
{
|
||||
GLbitfield64 enabled = vao->_Enabled;
|
||||
return enabled & ~(VERT_BIT_POS & (enabled >> VERT_ATTRIB_GENERIC0));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* API functions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue