Lines Matching refs:Current
221 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_BindFragmentShaderATI()
265 ctx->ATIFragmentShader.Current = newProg; in _mesa_BindFragmentShaderATI()
267 assert(ctx->ATIFragmentShader.Current); in _mesa_BindFragmentShaderATI()
289 if (ctx->ATIFragmentShader.Current && in _mesa_DeleteFragmentShaderATI()
290 ctx->ATIFragmentShader.Current->Id == id) { in _mesa_DeleteFragmentShaderATI()
325 free(ctx->ATIFragmentShader.Current->Instructions[i]); in _mesa_BeginFragmentShaderATI()
326 free(ctx->ATIFragmentShader.Current->SetupInst[i]); in _mesa_BeginFragmentShaderATI()
329 _mesa_reference_program(ctx, &ctx->ATIFragmentShader.Current->Program, NULL); in _mesa_BeginFragmentShaderATI()
334 ctx->ATIFragmentShader.Current->Instructions[i] = in _mesa_BeginFragmentShaderATI()
337 ctx->ATIFragmentShader.Current->SetupInst[i] = in _mesa_BeginFragmentShaderATI()
343 ctx->ATIFragmentShader.Current->LocalConstDef = 0; in _mesa_BeginFragmentShaderATI()
344 ctx->ATIFragmentShader.Current->numArithInstr[0] = 0; in _mesa_BeginFragmentShaderATI()
345 ctx->ATIFragmentShader.Current->numArithInstr[1] = 0; in _mesa_BeginFragmentShaderATI()
346 ctx->ATIFragmentShader.Current->regsAssigned[0] = 0; in _mesa_BeginFragmentShaderATI()
347 ctx->ATIFragmentShader.Current->regsAssigned[1] = 0; in _mesa_BeginFragmentShaderATI()
348 ctx->ATIFragmentShader.Current->NumPasses = 0; in _mesa_BeginFragmentShaderATI()
349 ctx->ATIFragmentShader.Current->cur_pass = 0; in _mesa_BeginFragmentShaderATI()
350 ctx->ATIFragmentShader.Current->last_optype = 0; in _mesa_BeginFragmentShaderATI()
351 ctx->ATIFragmentShader.Current->interpinp1 = GL_FALSE; in _mesa_BeginFragmentShaderATI()
352 ctx->ATIFragmentShader.Current->isValid = GL_FALSE; in _mesa_BeginFragmentShaderATI()
353 ctx->ATIFragmentShader.Current->swizzlerq = 0; in _mesa_BeginFragmentShaderATI()
356 _mesa_debug(ctx, "%s %u\n", __func__, ctx->ATIFragmentShader.Current->Id); in _mesa_BeginFragmentShaderATI()
364 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_EndFragmentShaderATI()
373 if (curProg->interpinp1 && (ctx->ATIFragmentShader.Current->cur_pass > 1)) { in _mesa_EndFragmentShaderATI()
380 ctx->ATIFragmentShader.Current->isValid = GL_TRUE; in _mesa_EndFragmentShaderATI()
381 if ((ctx->ATIFragmentShader.Current->cur_pass == 0) || in _mesa_EndFragmentShaderATI()
382 (ctx->ATIFragmentShader.Current->cur_pass == 2)) { in _mesa_EndFragmentShaderATI()
385 if (ctx->ATIFragmentShader.Current->cur_pass > 1) in _mesa_EndFragmentShaderATI()
386 ctx->ATIFragmentShader.Current->NumPasses = 2; in _mesa_EndFragmentShaderATI()
388 ctx->ATIFragmentShader.Current->NumPasses = 1; in _mesa_EndFragmentShaderATI()
390 ctx->ATIFragmentShader.Current->cur_pass = 0; in _mesa_EndFragmentShaderATI()
417 ctx->ATIFragmentShader.Current); in _mesa_EndFragmentShaderATI()
418 _mesa_reference_program(ctx, &ctx->ATIFragmentShader.Current->Program, in _mesa_EndFragmentShaderATI()
421 ctx->ATIFragmentShader.Current->Program = prog; in _mesa_EndFragmentShaderATI()
426 ctx->ATIFragmentShader.Current->isValid = GL_FALSE; in _mesa_EndFragmentShaderATI()
437 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_PassTexCoordATI()
510 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_SampleMapATI()
588 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_FragmentOpXATI()
813 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_SetFragmentShaderConstantATI()