/external/mesa3d/src/mesa/main/ |
H A D | texstate.c | 124 const struct gl_texture_unit *texUnit = ctx->Texture.Unit + unit; local 126 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_enum_to_string(texUnit->EnvMode)); 127 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB)); 128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA)); 129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0])); 130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1])); 131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2])); 132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0])); 133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1])); 134 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_enum_to_string(texUnit 288 const GLuint texUnit = texture - GL_TEXTURE0; local 324 GLuint texUnit = texture - GL_TEXTURE0; local 382 update_tex_combine(struct gl_context *ctx, struct gl_texture_unit *texUnit) argument 479 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 515 struct gl_texture_unit *texUnit; local 614 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 830 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 964 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[u]; local [all...] |
H A D | 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 50 set_env_mode(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum mode) argument 90 set_env_color(struct gl_context *ctx, struct gl_texture_unit *texUnit, const GLfloat *color) argument 107 set_combiner_mode(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLenum mode) argument 173 set_combiner_source(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLenum param) argument 263 set_combiner_operand(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLenum param) argument 344 set_combiner_scale(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLfloat scale) argument 389 struct gl_texture_unit *texUnit; local 550 get_texenvi(struct gl_context *ctx, const struct gl_texture_unit *texUnit, GLenum pname) argument 635 const struct gl_texture_unit *texUnit; local 701 const struct gl_texture_unit *texUnit; local [all...] |
H A D | texgen.c | 47 get_texgen(struct gl_context *ctx, struct gl_texture_unit *texUnit, argument 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; local 89 texUnit = _mesa_get_current_tex_unit(ctx); 91 texgen = get_texgen(ctx, texUnit, coord); 292 struct gl_texture_unit *texUnit; local 329 struct gl_texture_unit *texUnit; local 374 struct gl_texture_unit *texUnit; local [all...] |
H A D | rastpos.c | 269 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 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 [all...] |
H A D | texobj.c | 159 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); local 164 return texUnit->CurrentTex[TEXTURE_1D_INDEX]; 168 return texUnit->CurrentTex[TEXTURE_2D_INDEX]; 172 return texUnit->CurrentTex[TEXTURE_3D_INDEX]; 183 ? texUnit->CurrentTex[TEXTURE_CUBE_INDEX] : NULL; 189 ? texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX] : NULL; 195 ? texUnit->CurrentTex[TEXTURE_RECT_INDEX] : NULL; 200 return arrayTex ? texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX] : NULL; 204 return arrayTex ? texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX] : NULL; 210 texUnit 1402 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 1608 struct gl_texture_unit *texUnit; local 1839 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[first + i]; local [all...] |
H A D | enable.c | 222 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); local 224 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); 226 if (texUnit->Enabled == newenabled) 230 texUnit->Enabled = newenabled; 709 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local 714 if (texUnit) { 716 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit; 719 if (texUnit->TexGenEnabled == newenabled) 722 texUnit 730 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local 1198 const struct gl_texture_unit *const texUnit = local 1416 const struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local 1429 const struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local [all...] |
H A D | ffvertex_prog.c | 243 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local 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 [all...] |
H A D | context.c | 1248 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local 1249 texUnit->GenS.Mode = GL_REFLECTION_MAP_NV; 1250 texUnit->GenT.Mode = GL_REFLECTION_MAP_NV; 1251 texUnit->GenR.Mode = GL_REFLECTION_MAP_NV; 1252 texUnit->GenS._ModeBit = TEXGEN_REFLECTION_MAP_NV; 1253 texUnit->GenT._ModeBit = TEXGEN_REFLECTION_MAP_NV; 1254 texUnit->GenR._ModeBit = TEXGEN_REFLECTION_MAP_NV;
|
/external/mesa3d/src/mesa/tnl/ |
H A D | t_vb_texgen.c | 340 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 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 ); 398 if (texUnit 492 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local 516 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
H A D | radeon_texstate.c | 205 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 231 if ( !texUnit->_Current ) { 238 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; 239 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; 240 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; 241 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; 248 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; 249 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; 254 if (texUnit->_Current->Image[0][0]->_BaseFormat == GL_ALPHA) 293 const GLint op = texUnit 795 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local [all...] |
H A D | radeon_tex.c | 260 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 271 _mesa_unclamped_float_rgba_to_ubyte(c, texUnit->EnvColor);
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
H A D | r200_texstate.c | 219 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 246 if ( !texUnit->_Current ) { 256 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; 257 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; 258 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; 259 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; 271 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; 272 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; 358 GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; 359 const GLint srcAi = texUnit 773 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[j]; local 1088 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local [all...] |
/external/deqp/framework/opengl/ |
H A D | gluStrUtil.hpp | 61 const deUint32 texUnit; member in class:glu::detail::TextureUnitStr 62 TextureUnitStr (deUint32 texUnit_) : texUnit(texUnit_) {}
|
H A D | gluStrUtil.cpp | 73 int unitNdx = unitStr.texUnit - GL_TEXTURE0; 77 return str << tcu::toHex(unitStr.texUnit);
|
/external/deqp/modules/glshared/ |
H A D | 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);
|
H A D | glsTextureTestUtil.cpp | 297 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, TextureType texType) argument 299 renderQuad(texUnit, texCoord, RenderParams(texType)); 302 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, const RenderParams& params) argument 444 gl.uniform1i(gl.getUniformLocation(prog, "u_sampler"), texUnit); 446 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage;
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_texture.c | 58 GLuint texUnit, unsigned glsl_version) 66 samp = _mesa_get_samplerobj(ctx, texUnit); 68 texObj = ctx->Texture.Unit[texUnit]._Current; 128 const GLuint texUnit = prog->SamplerUnits[unit]; local 131 retval = update_single_texture(st, &sampler_view, texUnit, 56 update_single_texture(struct st_context *st, struct pipe_sampler_view **sampler_view, GLuint texUnit, unsigned glsl_version) argument
|
H A D | st_atom_sampler.c | 132 GLuint texUnit) 139 texobj = ctx->Texture.Unit[texUnit]._Current; 144 msamp = _mesa_get_samplerobj(ctx, texUnit); 161 sampler->lod_bias = ctx->Texture.Unit[texUnit].LodBias + msamp->LodBias; 269 const GLuint texUnit = prog->SamplerUnits[unit]; local 271 convert_sampler(st, sampler, texUnit); 130 convert_sampler(struct st_context *st, struct pipe_sampler_state *sampler, GLuint texUnit) argument
|
H A D | st_texture.h | 172 const GLuint texUnit = prog->SamplerUnits[unit]; local 173 struct gl_texture_object *texObj = ctx->Texture.Unit[texUnit]._Current;
|
/external/mesa3d/src/mesa/swrast/ |
H A D | s_fragprog.c | 116 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 117 const struct gl_texture_object *texObj = texUnit->_Current; 136 lambda += lodBias + texUnit->LodBias + samp->LodBias;
|
H A D | s_texcombine.c | 651 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 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/ |
H A D | vktTextureTestUtil.hpp | 166 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType); 167 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params); 170 const int texUnit,
|
H A D | vktTextureTestUtil.cpp | 939 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, TextureType texType) argument 941 renderQuad(result, texUnit, texCoord, ReferenceParams(texType)); 944 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const ReferenceParams& params) argument 954 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); 959 int texUnit, 1293 VkSamplerCreateInfo samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit]->getTestTexture().getTextureFormat(), params.minLod, params.maxLod); 1303 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(m_context.getInstanceInterface(), m_context.getPhysicalDevice(), mapTextureFormat(m_textureBindings[texUnit]->getTestTexture().getTextureFormat())); 1339 m_textureBindings[texUnit]->getImageView(), // VkImageView imageView; 1539 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage; 957 renderQuad(tcu::Surface& result, const float* positions, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params, const float maxAnisotropy) argument
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
H A D | i830_texblend.c | 392 struct gl_texture_unit *texUnit = &i830->intel.ctx.Texture.Unit[unit]; local 401 tmp_sz = i830SetTexEnvCombine(i830, texUnit->_CurrentCombine, blendUnit, 402 GetTexelOp(unit), tmp, texUnit->EnvColor);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_sampler_state.c | 566 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local 567 const struct gl_texture_object *texObj = texUnit->_Current; 576 texUnit->LodBias,
|