HomeSort by relevance Sort by last modified time
    Searched refs:texUnit (Results 1 - 25 of 43) sorted by null

1 2

  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_tex.c 53 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i];
55 if (texUnit->_ReallyEnabled) {
brw_wm_sampler_state.c 87 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
88 struct gl_texture_object *texObj = texUnit->_Current;
166 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
167 struct gl_texture_object *texObj = texUnit->_Current;
279 sampler->ss0.lod_bias = S_FIXED(CLAMP(texUnit->LodBias +
gen7_sampler_state.c 41 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
42 struct gl_texture_object *texObj = texUnit->_Current;
146 sampler->ss0.lod_bias = S_FIXED(CLAMP(texUnit->LodBias +
  /external/mesa3d/src/mesa/main/
texstate.c 124 const struct gl_texture_unit *texUnit = ctx->Texture.Unit + unit;
126 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_lookup_enum_by_nr(texUnit->EnvMode));
127 printf(" GL_COMBINE_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeRGB));
128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeA));
129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[0]));
130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[1]));
131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[2]));
132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[0]));
133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[1]));
134 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[2]))
    [all...]
texenv.c 50 struct gl_texture_unit *texUnit,
55 if (texUnit->EnvMode == mode)
80 texUnit->EnvMode = mode;
90 struct gl_texture_unit *texUnit,
93 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped))
96 COPY_4FV(texUnit->EnvColorUnclamped, color);
97 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F);
98 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F);
99 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F);
100 texUnit->EnvColor[3] = CLAMP(color[3], 0.0F, 1.0F)
    [all...]
texgen.c 51 get_texgen(struct gl_context *ctx, struct gl_texture_unit *texUnit,
56 ? &texUnit->GenS : NULL;
61 return &texUnit->GenS;
63 return &texUnit->GenT;
65 return &texUnit->GenR;
67 return &texUnit->GenQ;
77 struct gl_texture_unit *texUnit;
94 texUnit = _mesa_get_current_tex_unit(ctx);
96 texgen = get_texgen(ctx, texUnit, coord);
299 struct gl_texture_unit *texUnit;
    [all...]
enable.c 240 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx);
242 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit);
244 if (texUnit->Enabled == newenabled)
248 texUnit->Enabled = newenabled;
691 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx);
696 if (texUnit) {
698 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit;
701 if (texUnit->TexGenEnabled == newenabled)
704 texUnit->TexGenEnabled = newenabled
    [all...]
texparam.c 122 struct gl_texture_unit *texUnit;
130 texUnit = _mesa_get_current_tex_unit(ctx);
135 return texUnit->CurrentTex[TEXTURE_1D_INDEX];
138 return texUnit->CurrentTex[TEXTURE_2D_INDEX];
141 return texUnit->CurrentTex[TEXTURE_3D_INDEX];
145 return texUnit->CurrentTex[TEXTURE_CUBE_INDEX];
151 return texUnit->CurrentTex[TEXTURE_RECT_INDEX];
158 return texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX];
165 return texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX];
170 return texUnit->CurrentTex[TEXTURE_EXTERNAL_INDEX]
    [all...]
ff_fragment_shader.cpp 429 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i];
430 const struct gl_texture_object *texObj = texUnit->_Current;
431 const struct gl_tex_env_combine_state *comb = texUnit->_CurrentCombine;
435 if (!texUnit->_ReallyEnabled || !texUnit->Enabled)
447 translate_tex_src_bit(texUnit->_ReallyEnabled);
458 translate_mode(texUnit->EnvMode, comb->ModeRGB);
460 translate_mode(texUnit->EnvMode, comb->ModeA);
479 key->unit[i].OptRGB[1].Source = texUnit->BumpTarget - GL_TEXTURE0 + SRC_TEXTURE0;
    [all...]
ffvertex_prog.c 243 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i];
245 if (texUnit->_ReallyEnabled)
255 if (texUnit->TexGenEnabled) {
259 translate_texgen( texUnit->TexGenEnabled & (1<<0),
260 texUnit->GenS.Mode );
262 translate_texgen( texUnit->TexGenEnabled & (1<<1),
263 texUnit->GenT.Mode );
265 translate_texgen( texUnit->TexGenEnabled & (1<<2),
266 texUnit->GenR.Mode );
268 translate_texgen( texUnit->TexGenEnabled & (1<<3)
    [all...]
  /external/mesa3d/src/mesa/tnl/
t_vb_texgen.c 64 /* Per-texunit derived state.
342 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
352 if (texUnit->_GenFlags & TEXGEN_NEED_M) {
354 } else if (texUnit->_GenFlags & TEXGEN_NEED_F) {
360 out->flags |= (in->flags & VEC_SIZE_FLAGS) | texUnit->TexGenEnabled;
363 copy = (all_bits[in->size] & ~texUnit->TexGenEnabled);
367 if (texUnit->TexGenEnabled & S_BIT) {
369 switch (texUnit->GenS.Mode) {
373 texUnit->GenS.ObjectPlane );
378 texUnit->GenS.EyePlane )
    [all...]
t_rasterpos.c 262 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
278 if (texUnit->TexGenEnabled & S_BIT) {
279 switch (texUnit->GenS.Mode) {
281 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane);
284 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane);
301 if (texUnit->TexGenEnabled & T_BIT) {
302 switch (texUnit->GenT.Mode) {
304 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane);
307 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane);
324 if (texUnit->TexGenEnabled & R_BIT)
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/radeon/
radeon_texstate.c 266 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
276 /* texUnit->_Current can be NULL if and only if the texture unit is
279 assert( (texUnit->_ReallyEnabled == 0)
280 || (texUnit->_Current != NULL) );
298 if ( !texUnit->_ReallyEnabled ) {
305 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB;
306 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA;
307 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB;
308 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA;
315 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR
    [all...]
  /external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/
MaterialLoader.java 73 private int texUnit = 0;
139 textures[texUnit].setImage(loadedTexture.getImage());
140 textures[texUnit].setMinFilter(loadedTexture.getMinFilter());
141 textures[texUnit].setKey(loadedTexture.getKey());
144 textures[texUnit].setWrap(WrapMode.Repeat);
146 textures[texUnit].setName(texName);
149 textures[texUnit].setName(texKey.getName());
153 textures[texUnit].setImage(PlaceholderAssets.getPlaceholderImage());
165 textures[texUnit].setWrap(WrapMode.Repeat);
167 textures[texUnit].setWrap(WrapMode.Clamp)
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/r200/
r200_texstate.c 306 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
315 /* texUnit->_Current can be NULL if and only if the texture unit is
318 assert( (texUnit->_ReallyEnabled == 0)
319 || (texUnit->_Current != NULL) );
339 if ( !texUnit->_ReallyEnabled ) {
349 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB;
350 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA;
351 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB;
352 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA;
364 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR
    [all...]
  /external/deqp/framework/opengl/
gluStrUtil.hpp 61 const deUint32 texUnit;
62 TextureUnitStr (deUint32 texUnit_) : texUnit(texUnit_) {}
gluStrUtil.cpp 73 int unitNdx = unitStr.texUnit - GL_TEXTURE0;
77 return str << tcu::toHex(unitStr.texUnit);
  /external/mesa3d/src/mesa/state_tracker/
st_atom_sampler.c 129 GLuint texUnit)
135 texobj = ctx->Texture.Unit[texUnit]._Current;
140 msamp = _mesa_get_samplerobj(ctx, texUnit);
154 sampler->lod_bias = ctx->Texture.Unit[texUnit].LodBias + msamp->LodBias;
232 const GLuint texUnit = prog->SamplerUnits[unit];
234 convert_sampler(st, sampler, texUnit);
st_atom_texture.c 190 GLuint texUnit)
200 samp = _mesa_get_samplerobj(ctx, texUnit);
202 texObj = ctx->Texture.Unit[texUnit]._Current;
280 const GLuint texUnit = prog->SamplerUnits[unit];
283 retval = update_single_texture(st, &sampler_view, texUnit);
401 const GLuint texUnit = fprog->Base.SamplerUnits[su];
403 = ctx->Texture.Unit[texUnit]._Current;
  /external/skia/src/gpu/gl/
GrGLProgramDataManager.h 76 void setSampler(UniformHandle, GrGLint texUnit) const;
GrGLProgramDataManager.cpp 45 void GrGLProgramDataManager::setSampler(UniformHandle u, GrGLint texUnit) const {
54 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fFSLocation, texUnit));
57 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fVSLocation, texUnit));
  /external/mesa3d/src/mesa/swrast/
s_fragprog.c 115 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
116 const struct gl_texture_object *texObj = texUnit->_Current;
136 lambda += lodBias + texUnit->LodBias + samp->LodBias;
s_texcombine.c 646 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
648 if (texUnit->_ReallyEnabled &&
649 texUnit->_CurrentCombine->ModeRGB == GL_BUMP_ENVMAP_ATI) {
667 if (texUnit->LodBias + samp->LodBias != 0.0F) {
669 const GLfloat bias = CLAMP(texUnit->LodBias + samp->LodBias,
713 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
714 if (texUnit->_ReallyEnabled &&
715 texUnit->_CurrentCombine->ModeRGB != GL_BUMP_ENVMAP_ATI) {
718 const struct gl_texture_object *curObj = texUnit->_Current;
725 if (texUnit->LodBias + samp->LodBias != 0.0F)
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/i915/
i830_texblend.c 392 struct gl_texture_unit *texUnit = &i830->intel.ctx.Texture.Unit[unit];
401 tmp_sz = i830SetTexEnvCombine(i830, texUnit->_CurrentCombine, blendUnit,
402 GetTexelOp(unit), tmp, texUnit->EnvColor);
  /device/generic/goldfish/opengl/shared/OpenglCodecCommon/
GLClientState.h 91 void setActiveTexture(int texUnit) {m_activeTexture = texUnit; };

Completed in 624 milliseconds

1 2