Home
last modified time | relevance | path

Searched refs:fprog (Results 1 – 4 of 4) sorted by relevance

/third_party/mesa3d/src/mesa/program/
Dprogramopt.c247 _mesa_append_fog_code(struct gl_context *ctx, struct gl_program *fprog, in _mesa_append_fog_code() argument
255 const GLuint origLen = fprog->arb.NumInstructions; in _mesa_append_fog_code()
267 if (!(fprog->info.outputs_written & (1 << FRAG_RESULT_COLOR))) { in _mesa_append_fog_code()
273 newInst = rzalloc_array(fprog, struct prog_instruction, newLen); in _mesa_append_fog_code()
281 _mesa_copy_instructions(newInst, fprog->arb.Instructions, origLen); in _mesa_append_fog_code()
285 = _mesa_add_state_reference(fprog->Parameters, fogPStateOpt); in _mesa_append_fog_code()
288 = _mesa_add_state_reference(fprog->Parameters, fogColorState); in _mesa_append_fog_code()
291 colorTemp = fprog->arb.NumTemporaries++; in _mesa_append_fog_code()
293 fogFactorTemp = fprog->arb.NumTemporaries++; in _mesa_append_fog_code()
297 for (i = 0; i < fprog->arb.NumInstructions; i++) { in _mesa_append_fog_code()
[all …]
Dprogramopt.h44 _mesa_append_fog_code(struct gl_context *ctx, struct gl_program *fprog,
/third_party/mesa3d/src/mesa/swrast/
Ds_context.c220 const struct gl_program *fprog = ctx->FragmentProgram._Current; in _swrast_update_deferred_texture() local
222 (fprog->info.outputs_written & (1 << FRAG_RESULT_DEPTH))) { in _swrast_update_deferred_texture()
226 else if (use_fprog && fprog->info.fs.uses_discard) { in _swrast_update_deferred_texture()
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c959 const struct gl_program *fprog = ctx->FragmentProgram._Current; in intelChooseRenderState() local
960 bool have_wpos = (fprog && (fprog->info.inputs_read & VARYING_BIT_POS)); in intelChooseRenderState()