Lines Matching refs:vprog
49 _mesa_insert_mvp_dp4_code(struct gl_context *ctx, struct gl_vertex_program *vprog) in _mesa_insert_mvp_dp4_code() argument
52 const GLuint origLen = vprog->Base.NumInstructions; in _mesa_insert_mvp_dp4_code()
69 mvpRef[i] = _mesa_add_state_reference(vprog->Base.Parameters, in _mesa_insert_mvp_dp4_code()
103 _mesa_copy_instructions (newInst + 4, vprog->Base.Instructions, origLen); in _mesa_insert_mvp_dp4_code()
106 _mesa_free_instructions(vprog->Base.Instructions, origLen); in _mesa_insert_mvp_dp4_code()
109 vprog->Base.Instructions = newInst; in _mesa_insert_mvp_dp4_code()
110 vprog->Base.NumInstructions = newLen; in _mesa_insert_mvp_dp4_code()
111 vprog->Base.InputsRead |= VERT_BIT_POS; in _mesa_insert_mvp_dp4_code()
112 vprog->Base.OutputsWritten |= BITFIELD64_BIT(VERT_RESULT_HPOS); in _mesa_insert_mvp_dp4_code()
117 _mesa_insert_mvp_mad_code(struct gl_context *ctx, struct gl_vertex_program *vprog) in _mesa_insert_mvp_mad_code() argument
120 const GLuint origLen = vprog->Base.NumInstructions; in _mesa_insert_mvp_mad_code()
138 mvpRef[i] = _mesa_add_state_reference(vprog->Base.Parameters, in _mesa_insert_mvp_mad_code()
151 hposTemp = vprog->Base.NumTemporaries++; in _mesa_insert_mvp_mad_code()
205 _mesa_copy_instructions (newInst + 4, vprog->Base.Instructions, origLen); in _mesa_insert_mvp_mad_code()
208 _mesa_free_instructions(vprog->Base.Instructions, origLen); in _mesa_insert_mvp_mad_code()
211 vprog->Base.Instructions = newInst; in _mesa_insert_mvp_mad_code()
212 vprog->Base.NumInstructions = newLen; in _mesa_insert_mvp_mad_code()
213 vprog->Base.InputsRead |= VERT_BIT_POS; in _mesa_insert_mvp_mad_code()
214 vprog->Base.OutputsWritten |= BITFIELD64_BIT(VERT_RESULT_HPOS); in _mesa_insert_mvp_mad_code()
219 _mesa_insert_mvp_code(struct gl_context *ctx, struct gl_vertex_program *vprog) in _mesa_insert_mvp_code() argument
222 _mesa_insert_mvp_dp4_code( ctx, vprog ); in _mesa_insert_mvp_code()
224 _mesa_insert_mvp_mad_code( ctx, vprog ); in _mesa_insert_mvp_code()