Lines Matching refs:vprog
49 insert_mvp_dp4_code(struct gl_context *ctx, struct gl_program *vprog)
52 const GLuint origLen = vprog->arb.NumInstructions;
69 mvpRef[i] = _mesa_add_state_reference(vprog->Parameters, mvpState[i]);
73 newInst = rzalloc_array(vprog, struct prog_instruction, newLen);
102 _mesa_copy_instructions (newInst + 4, vprog->arb.Instructions, origLen);
105 ralloc_free(vprog->arb.Instructions);
108 vprog->arb.Instructions = newInst;
109 vprog->arb.NumInstructions = newLen;
110 vprog->info.inputs_read |= VERT_BIT_POS;
111 vprog->info.outputs_written |= BITFIELD64_BIT(VARYING_SLOT_POS);
116 insert_mvp_mad_code(struct gl_context *ctx, struct gl_program *vprog)
119 const GLuint origLen = vprog->arb.NumInstructions;
137 mvpRef[i] = _mesa_add_state_reference(vprog->Parameters, mvpState[i]);
141 newInst = rzalloc_array(vprog, struct prog_instruction, newLen);
149 hposTemp = vprog->arb.NumTemporaries++;
203 _mesa_copy_instructions (newInst + 4, vprog->arb.Instructions, origLen);
206 ralloc_free(vprog->arb.Instructions);
209 vprog->arb.Instructions = newInst;
210 vprog->arb.NumInstructions = newLen;
211 vprog->info.inputs_read |= VERT_BIT_POS;
212 vprog->info.outputs_written |= BITFIELD64_BIT(VARYING_SLOT_POS);
217 _mesa_insert_mvp_code(struct gl_context *ctx, struct gl_program *vprog)
220 insert_mvp_dp4_code( ctx, vprog );
222 insert_mvp_mad_code( ctx, vprog );