Home | History | Annotate | Download | only in swrast

Lines Matching refs:unit

47  * Return array of texels for given unit.
50 get_texel_array(SWcontext *swrast, GLuint unit)
53 return (float4_array) (swrast->TexelBuffer + unit * SWRAST_MAX_WIDTH * 4 * omp_get_num_threads() + (SWRAST_MAX_WIDTH * 4 * omp_get_thread_num()));
55 return (float4_array) (swrast->TexelBuffer + unit * SWRAST_MAX_WIDTH * 4);
72 * \param unit the texture combiner unit
81 texture_combine( struct gl_context *ctx, GLuint unit,
87 const struct gl_texture_unit *textureUnit = &(ctx->Texture.Unit[unit]);
146 argRGB[term] = get_texel_array(swrast, unit);
192 if (!ctx->Texture.Unit[srcUnit]._ReallyEnabled)
242 argA[term] = get_texel_array(swrast, unit);
282 if (!ctx->Texture.Unit[srcUnit]._ReallyEnabled)
600 GLuint unit;
645 for (unit = 0; unit < ctx->Const.MaxTextureUnits; unit++) {
646 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
651 span->array->attribs[FRAG_ATTRIB_TEX0 + unit];
654 ctx->Texture.Unit[unit].BumpTarget - GL_TEXTURE0];
656 const struct gl_sampler_object *samp = _mesa_get_samplerobj(ctx, unit);
657 GLfloat *lambda = span->array->lambda[unit];
658 float4_array texels = get_texel_array(swrast, unit);
660 GLfloat rotMatrix00 = ctx->Texture.Unit[unit].RotMatrix[0];
661 GLfloat rotMatrix01 = ctx->Texture.Unit[unit].RotMatrix[1];
662 GLfloat rotMatrix10 = ctx->Texture.Unit[unit].RotMatrix[2];
663 GLfloat rotMatrix11 = ctx->Texture.Unit[unit].RotMatrix[3];
692 swrast->TextureSample[unit]( ctx, samp,
693 ctx->Texture.Unit[unit]._Current,
712 for (unit = 0; unit < ctx->Const.MaxTextureUnits; unit++) {
713 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
717 span->array->attribs[FRAG_ATTRIB_TEX0 + unit];
719 const struct gl_sampler_object *samp = _mesa_get_samplerobj(ctx, unit);
720 GLfloat *lambda = span->array->lambda[unit];
721 float4_array texels = get_texel_array(swrast, unit);
762 swrast->TextureSample[unit]( ctx, samp,
763 ctx->Texture.Unit[unit]._Current,
777 for (unit = 0; unit < ctx->Const.MaxTextureUnits; unit++) {
778 if (ctx->Texture.Unit[unit]._ReallyEnabled)
779 texture_combine(ctx, unit, primary_rgba, swrast->TexelBuffer, span);