* For debugging. Dump the current vertex program machine registers.
*/
void
-_mesa_dump_vp_state( const struct vertex_program_state *state )
+_mesa_dump_vp_state( const struct gl_vertex_program_state *state )
{
int i;
_mesa_printf("VertexIn:\n");
*/
static INLINE const GLfloat *
get_register_pointer( const struct vp_src_register *source,
- const struct vertex_program_state *state )
+ const struct gl_vertex_program_state *state )
{
if (source->RelAddr) {
const GLint reg = source->Index + state->AddressReg[0];
*/
static INLINE void
fetch_vector4( const struct vp_src_register *source,
- const struct vertex_program_state *state,
+ const struct gl_vertex_program_state *state,
GLfloat result[4] )
{
const GLfloat *src = get_register_pointer(source, state);
*/
static INLINE void
fetch_vector1( const struct vp_src_register *source,
- const struct vertex_program_state *state,
+ const struct gl_vertex_program_state *state,
GLfloat result[4] )
{
const GLfloat *src = get_register_pointer(source, state);
*/
static void
store_vector4( const struct vp_dst_register *dest,
- struct vertex_program_state *state,
+ struct gl_vertex_program_state *state,
const GLfloat value[4] )
{
GLfloat *dst;
void
_mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program)
{
- struct vertex_program_state *state = &ctx->VertexProgram;
+ struct gl_vertex_program_state *state = &ctx->VertexProgram;
const struct vp_instruction *inst;
ctx->_CurrentProgram = GL_VERTEX_PROGRAM_ARB; /* or NV, doesn't matter */