mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
Inline get_size as an interim measure to get rid of function call overhead.
This commit is contained in:
parent
cac8d425a8
commit
dbb0d2751f
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@
|
|||
#include "t_save_api.h"
|
||||
#include "t_vtx_api.h"
|
||||
|
||||
static GLint get_size( const GLfloat *f )
|
||||
static INLINE GLint get_size( const GLfloat *f )
|
||||
{
|
||||
if (f[3] != 1.0) return 4;
|
||||
if (f[2] != 0.0) return 3;
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ GLboolean *_tnl_import_current_edgeflag( GLcontext *ctx,
|
|||
return ef;
|
||||
}
|
||||
|
||||
static GLint get_size( const GLfloat *f )
|
||||
static INLINE GLint get_size( const GLfloat *f )
|
||||
{
|
||||
if (f[3] != 1.0) return 4;
|
||||
if (f[2] != 0.0) return 3;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue