diff options
author | Brian Paul <[email protected]> | 2006-10-29 18:33:14 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-10-29 18:33:14 +0000 |
commit | ebcedd2d8909cc00d8528d76d3a1990315f270ea (patch) | |
tree | 6d89b2dff1b8cf8f826c7f2dfa4c2856375a359c /src/mesa/shader/nvvertexec.c | |
parent | abb1430c79024198bdc9816465d3c8bc963adf8b (diff) |
New _mesa_exec_vertex_state_program() function. Start of some re-org.
Diffstat (limited to 'src/mesa/shader/nvvertexec.c')
-rw-r--r-- | src/mesa/shader/nvvertexec.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/mesa/shader/nvvertexec.c b/src/mesa/shader/nvvertexec.c index 19855936593..a4c5728d593 100644 --- a/src/mesa/shader/nvvertexec.c +++ b/src/mesa/shader/nvvertexec.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.5 + * Version: 6.5.2 * * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. * @@ -805,6 +805,22 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct gl_vertex_program *progra } +/** + * Execute a vertex state program. + * \sa _mesa_ExecuteProgramNV + */ +void +_mesa_exec_vertex_state_program(GLcontext *ctx, + struct gl_vertex_program *vprog, + const GLfloat *params) +{ + _mesa_init_vp_per_vertex_registers(ctx); + _mesa_init_vp_per_primitive_registers(ctx); + COPY_4V(ctx->VertexProgram.Machine.Inputs[VERT_ATTRIB_POS], params); + _mesa_exec_vertex_program(ctx, vprog); +} + + /** Thoughts on vertex program optimization: |