Mesa (master): vbo: Remove get_vp_mode() and enum vp_mode.
Mathias Fröhlich
frohlich at kemper.freedesktop.org
Fri Feb 23 06:11:38 UTC 2018
Module: Mesa
Branch: master
Commit: ce3d2421a0bc0dd2e99fa6a54a127ca5fc57ba15
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce3d2421a0bc0dd2e99fa6a54a127ca5fc57ba15
Author: Mathias Fröhlich <mathias.froehlich at web.de>
Date: Sat Feb 3 10:44:10 2018 +0100
vbo: Remove get_vp_mode() and enum vp_mode.
Is now unused.
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/mesa/vbo/vbo_private.h | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/src/mesa/vbo/vbo_private.h b/src/mesa/vbo/vbo_private.h
index e44a521b11..49922892e5 100644
--- a/src/mesa/vbo/vbo_private.h
+++ b/src/mesa/vbo/vbo_private.h
@@ -69,33 +69,6 @@ vbo_context(struct gl_context *ctx)
/**
- * Current vertex processing mode: fixed function vs. shader.
- * In reality, fixed function is probably implemented by a shader but that's
- * not what we care about here.
- */
-enum vp_mode {
- VP_FF, /**< legacy / fixed function */
- VP_SHADER, /**< ARB vertex program or GLSL vertex shader */
- VP_MODE_MAX /**< for sizing arrays */
-};
-
-
-/**
- * Get current vertex processing mode (fixed function vs. shader).
- */
-static inline enum vp_mode
-get_vp_mode( struct gl_context *ctx )
-{
- if (!ctx->VertexProgram._Current)
- return VP_FF;
- else if (ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram)
- return VP_FF;
- else
- return VP_SHADER;
-}
-
-
-/**
* Array to apply the fixed function material aliasing map to
* an attribute value used in vbo processing inputs to an attribute
* as they appear in the vao.
More information about the mesa-commit
mailing list