summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-03-09 19:37:39 -0400
committerMarge Bot <eric+marge@anholt.net>2020-03-19 23:24:08 +0000
commitff0881c686cc250d492d38fd14063e4b18c951c1 (patch)
treecbfbe9a6d89e9480add5d62ef24965738ab0c0d7 /src/mesa/main
parent98d11972334186b1b5ede148e32ac7758be56ce4 (diff)
mesa: remove redundant api_loopback functions
vbo_attrib_tmp.h implements them, so this loopback code isn't needed and shouldn't be used. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4123> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4123>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/api_loopback.c81
-rw-r--r--src/mesa/main/api_loopback.h27
2 files changed, 0 insertions, 108 deletions
diff --git a/src/mesa/main/api_loopback.c b/src/mesa/main/api_loopback.c
index 53873eae29e..ba4b1995765 100644
--- a/src/mesa/main/api_loopback.c
+++ b/src/mesa/main/api_loopback.c
@@ -84,13 +84,6 @@
#define ATTRIBI_4UI(index,x,y,z,w) CALL_VertexAttribI4uiEXT(GET_DISPATCH(), (index,x,y,z,w))
-#define ATTRIB1_D(index,x) CALL_VertexAttribL1d(GET_DISPATCH(), (index,x))
-#define ATTRIB2_D(index,x,y) CALL_VertexAttribL2d(GET_DISPATCH(), (index,x,y))
-#define ATTRIB3_D(index,x,y,z) CALL_VertexAttribL3d(GET_DISPATCH(), (index,x,y,z))
-#define ATTRIB4_D(index,x,y,z,w) CALL_VertexAttribL4d(GET_DISPATCH(), (index,x,y,z,w))
-
-#define ATTRIB1_UI64(index, x) CALL_VertexAttribL1ui64ARB(GET_DISPATCH(), (index, x))
-
void GLAPIENTRY
_mesa_Color3b( GLbyte red, GLbyte green, GLbyte blue )
{
@@ -824,12 +817,6 @@ _mesa_EvalCoord2dv( const GLdouble *u )
}
void GLAPIENTRY
-_mesa_EvalCoord2fv( const GLfloat *u )
-{
- EVALCOORD2( u[0], u[1] );
-}
-
-void GLAPIENTRY
_mesa_EvalCoord2d( GLdouble u, GLdouble v )
{
EVALCOORD2( (GLfloat) u, (GLfloat) v );
@@ -842,12 +829,6 @@ _mesa_EvalCoord1dv( const GLdouble *u )
}
void GLAPIENTRY
-_mesa_EvalCoord1fv( const GLfloat *u )
-{
- EVALCOORD1( (GLfloat) *u );
-}
-
-void GLAPIENTRY
_mesa_EvalCoord1d( GLdouble u )
{
EVALCOORD1( (GLfloat) u );
@@ -1497,66 +1478,6 @@ _mesa_VertexAttribI4usv(GLuint index, const GLushort *v)
ATTRIBI_4UI(index, v[0], v[1], v[2], v[3]);
}
-void GLAPIENTRY
-_mesa_VertexAttribL1d(GLuint index, GLdouble x)
-{
- ATTRIB1_D(index, x);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL2d(GLuint index, GLdouble x, GLdouble y)
-{
- ATTRIB2_D(index, x, y);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL3d(GLuint index, GLdouble x, GLdouble y, GLdouble z)
-{
- ATTRIB3_D(index, x, y, z);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
-{
- ATTRIB4_D(index, x, y, z, w);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL1dv(GLuint index, const GLdouble *v)
-{
- ATTRIB1_D(index, v[0]);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL1ui64ARB(GLuint index, GLuint64EXT x)
-{
- ATTRIB1_UI64(index, x);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL1ui64vARB(GLuint index, const GLuint64EXT *v)
-{
- ATTRIB1_UI64(index, v[0]);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL2dv(GLuint index, const GLdouble *v)
-{
- ATTRIB2_D(index, v[0], v[1]);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL3dv(GLuint index, const GLdouble *v)
-{
- ATTRIB3_D(index, v[0], v[1], v[2]);
-}
-
-void GLAPIENTRY
-_mesa_VertexAttribL4dv(GLuint index, const GLdouble *v)
-{
- ATTRIB4_D(index, v[0], v[1], v[2], v[3]);
-}
-
/*
* This code never registers handlers for any of the entry points
* listed in vtxfmt.h.
@@ -1698,10 +1619,8 @@ _mesa_loopback_init_api_table(const struct gl_context *ctx,
SET_MultiTexCoord4s(dest, _mesa_MultiTexCoord4s);
SET_MultiTexCoord4sv(dest, _mesa_MultiTexCoord4sv);
SET_EvalCoord2dv(dest, _mesa_EvalCoord2dv);
- SET_EvalCoord2fv(dest, _mesa_EvalCoord2fv);
SET_EvalCoord2d(dest, _mesa_EvalCoord2d);
SET_EvalCoord1dv(dest, _mesa_EvalCoord1dv);
- SET_EvalCoord1fv(dest, _mesa_EvalCoord1fv);
SET_EvalCoord1d(dest, _mesa_EvalCoord1d);
SET_Materiali(dest, _mesa_Materiali);
SET_Materialiv(dest, _mesa_Materialiv);
diff --git a/src/mesa/main/api_loopback.h b/src/mesa/main/api_loopback.h
index c1e7b24f092..272c7e57b03 100644
--- a/src/mesa/main/api_loopback.h
+++ b/src/mesa/main/api_loopback.h
@@ -270,14 +270,10 @@ _mesa_MultiTexCoord4sv(GLenum target, const GLshort *v);
void GLAPIENTRY
_mesa_EvalCoord2dv( const GLdouble *u );
void GLAPIENTRY
-_mesa_EvalCoord2fv( const GLfloat *u );
-void GLAPIENTRY
_mesa_EvalCoord2d( GLdouble u, GLdouble v );
void GLAPIENTRY
_mesa_EvalCoord1dv( const GLdouble *u );
void GLAPIENTRY
-_mesa_EvalCoord1fv( const GLfloat *u );
-void GLAPIENTRY
_mesa_EvalCoord1d( GLdouble u );
void GLAPIENTRY
_mesa_Materialf( GLenum face, GLenum pname, GLfloat param );
@@ -464,27 +460,4 @@ _mesa_VertexAttribI4ubv(GLuint index, const GLubyte *v);
void GLAPIENTRY
_mesa_VertexAttribI4usv(GLuint index, const GLushort *v);
-void GLAPIENTRY
-_mesa_VertexAttribL1d(GLuint index, GLdouble x);
-void GLAPIENTRY
-_mesa_VertexAttribL2d(GLuint index, GLdouble x, GLdouble y);
-void GLAPIENTRY
-_mesa_VertexAttribL3d(GLuint index, GLdouble x, GLdouble y, GLdouble z);
-void GLAPIENTRY
-_mesa_VertexAttribL4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-
-void GLAPIENTRY
-_mesa_VertexAttribL1dv(GLuint index, const GLdouble *v);
-void GLAPIENTRY
-_mesa_VertexAttribL2dv(GLuint index, const GLdouble *v);
-void GLAPIENTRY
-_mesa_VertexAttribL3dv(GLuint index, const GLdouble *v);
-void GLAPIENTRY
-_mesa_VertexAttribL4dv(GLuint index, const GLdouble *v);
-
-void GLAPIENTRY
-_mesa_VertexAttribL1ui64ARB(GLuint index, GLuint64EXT x);
-void GLAPIENTRY
-_mesa_VertexAttribL1ui64vARB(GLuint index, const GLuint64EXT *v);
-
#endif /* API_LOOPBACK_H */