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

1 2

  /external/mesa3d/src/mesa/main/
texstate.c 125 const struct gl_texture_unit *texUnit = ctx->Texture.Unit + unit;
127 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_enum_to_string(texUnit->EnvMode));
128 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB));
129 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA));
130 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0]));
131 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1]));
132 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2]));
133 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0]));
134 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1]));
135 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[2]))
    [all...]
texenv.c 51 struct gl_texture_unit *texUnit,
56 if (texUnit->EnvMode == mode)
81 texUnit->EnvMode = mode;
91 struct gl_texture_unit *texUnit,
94 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped))
97 COPY_4FV(texUnit->EnvColorUnclamped, color);
98 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F);
99 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F);
100 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F);
101 texUnit->EnvColor[3] = CLAMP(color[3], 0.0F, 1.0F)
    [all...]
texgen.c 47 get_texgen(struct gl_context *ctx, struct gl_texture_unit *texUnit,
52 ? &texUnit->GenS : NULL;
57 return &texUnit->GenS;
59 return &texUnit->GenT;
61 return &texUnit->GenR;
63 return &texUnit->GenQ;
73 struct gl_texture_unit *texUnit;
89 texUnit = _mesa_get_current_tex_unit(ctx);
91 texgen = get_texgen(ctx, texUnit, coord);
292 struct gl_texture_unit *texUnit;
    [all...]
rastpos.c 269 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
285 if (texUnit->TexGenEnabled & S_BIT) {
286 switch (texUnit->GenS.Mode) {
288 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane);
291 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane);
308 if (texUnit->TexGenEnabled & T_BIT) {
309 switch (texUnit->GenT.Mode) {
311 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane);
314 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane);
331 if (texUnit->TexGenEnabled & R_BIT)
    [all...]
texobj.c 147 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx);
152 return texUnit->CurrentTex[TEXTURE_1D_INDEX];
156 return texUnit->CurrentTex[TEXTURE_2D_INDEX];
160 return texUnit->CurrentTex[TEXTURE_3D_INDEX];
171 ? texUnit->CurrentTex[TEXTURE_CUBE_INDEX] : NULL;
177 ? texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX] : NULL;
183 ? texUnit->CurrentTex[TEXTURE_RECT_INDEX] : NULL;
188 return arrayTex ? texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX] : NULL;
192 return arrayTex ? texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX] : NULL;
198 texUnit->CurrentTex[TEXTURE_BUFFER_INDEX] : NULL
    [all...]
enable.c 221 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx);
223 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit);
225 if (texUnit->Enabled == newenabled)
229 texUnit->Enabled = newenabled;
761 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx);
766 if (texUnit) {
768 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit;
771 if (texUnit->TexGenEnabled == newenabled)
774 texUnit->TexGenEnabled = newenabled
    [all...]
ffvertex_prog.c 243 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i];
245 if (texUnit->_Current)
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...]
context.c     [all...]
  /external/mesa3d/src/mesa/tnl/
t_vb_texgen.c 62 /* Per-texunit derived state.
340 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
350 if (texUnit->_GenFlags & TEXGEN_NEED_M) {
352 } else if (texUnit->_GenFlags & TEXGEN_NEED_F) {
358 out->flags |= (in->flags & VEC_SIZE_FLAGS) | texUnit->TexGenEnabled;
361 copy = (all_bits[in->size] & ~texUnit->TexGenEnabled);
365 if (texUnit->TexGenEnabled & S_BIT) {
367 switch (texUnit->GenS.Mode) {
371 texUnit->GenS.ObjectPlane );
376 texUnit->GenS.EyePlane )
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/radeon/
radeon_texstate.c 211 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
237 if ( !texUnit->_Current ) {
244 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB;
245 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA;
246 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB;
247 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA;
254 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR;
255 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i];
260 if (texture_base_format(texUnit->_Current) == GL_ALPHA)
289 * instead of undefined results when referencing not enabled texunit) */
    [all...]
radeon_tex.c 260 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
271 _mesa_unclamped_float_rgba_to_ubyte(c, texUnit->EnvColor);
  /external/mesa3d/src/mesa/drivers/dri/r200/
r200_texstate.c 220 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
247 if ( !texUnit->_Current ) {
257 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB;
258 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA;
259 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB;
260 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA;
272 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR;
273 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i];
359 GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA;
360 const GLint srcAi = texUnit->_CurrentCombine->SourceA[i]
    [all...]
  /external/mesa3d/src/mesa/state_tracker/
st_texture.h 230 const GLuint texUnit = prog->SamplerUnits[unit];
231 struct gl_texture_object *texObj = ctx->Texture.Unit[texUnit]._Current;
339 GLuint texUnit);
344 GLuint texUnit, bool glsl130_or_later,
st_atom_texture.c 61 GLuint texUnit, bool glsl130_or_later,
69 samp = _mesa_get_samplerobj(ctx, texUnit);
71 texObj = ctx->Texture.Unit[texUnit]._Current;
128 const GLuint texUnit = prog->SamplerUnits[unit];
157 st_update_single_texture(st, &sampler_view, texUnit, glsl130,
st_atom_sampler.c 226 GLuint texUnit)
232 texobj = ctx->Texture.Unit[texUnit]._Current;
236 msamp = _mesa_get_samplerobj(ctx, texUnit);
238 st_convert_sampler(st, texobj, msamp, ctx->Texture.Unit[texUnit].LodBias,
st_texture.c 512 struct gl_program *prog, GLuint texUnit)
519 st_update_single_texture(st, &view, texUnit, prog->sh.data->Version >= 130, true);
524 st_convert_sampler_from_unit(st, &sampler, texUnit);
526 assert(st->ctx->Texture.Unit[texUnit]._Current);
  /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/deqp/modules/glshared/
glsTextureTestUtil.hpp 154 void renderQuad (int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType);
155 void renderQuad (int texUnit, const float* texCoord, const glu::TextureTestUtil::RenderParams& params);
glsTextureTestUtil.cpp 297 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, TextureType texType)
299 renderQuad(texUnit, texCoord, RenderParams(texType));
302 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, const RenderParams& params)
444 gl.uniform1i(gl.getUniformLocation(prog, "u_sampler"), texUnit);
446 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage;
  /external/mesa3d/src/mesa/swrast/
s_fragprog.c 116 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
117 const struct gl_texture_object *texObj = texUnit->_Current;
136 lambda += lodBias + texUnit->LodBias + samp->LodBias;
s_texcombine.c 651 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
652 if (texUnit->_Current) {
655 const struct gl_texture_object *curObj = texUnit->_Current;
662 if (texUnit->LodBias + samp->LodBias != 0.0F) {
664 const GLfloat bias = CLAMP(texUnit->LodBias + samp->LodBias,
  /external/deqp/external/vulkancts/modules/vulkan/texture/
vktTextureTestUtil.hpp 180 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType);
181 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params);
184 const int texUnit,
vktTextureTestUtil.cpp     [all...]
  /external/mesa3d/src/mesa/drivers/dri/i915/
i830_texblend.c 391 struct gl_texture_unit *texUnit = &i830->intel.ctx.Texture.Unit[unit];
400 tmp_sz = i830SetTexEnvCombine(i830, texUnit->_CurrentCombine, blendUnit,
401 GetTexelOp(unit), tmp, texUnit->EnvColor);

Completed in 509 milliseconds

1 2