/external/mesa3d/src/mesa/main/ |
D | texstate.c | 125 const struct gl_texture_unit *texUnit = ctx->Texture.Unit + unit; in _mesa_print_texunit_state() local 127 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_enum_to_string(texUnit->EnvMode)); in _mesa_print_texunit_state() 128 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB)); in _mesa_print_texunit_state() 129 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA)); in _mesa_print_texunit_state() 130 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0])); in _mesa_print_texunit_state() 131 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1])); in _mesa_print_texunit_state() 132 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2])); in _mesa_print_texunit_state() 133 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0])); in _mesa_print_texunit_state() 134 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1])); in _mesa_print_texunit_state() 135 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[2])); in _mesa_print_texunit_state() [all …]
|
D | texenv.c | 51 struct gl_texture_unit *texUnit, in set_env_mode() argument 56 if (texUnit->EnvMode == mode) in set_env_mode() 81 texUnit->EnvMode = mode; in set_env_mode() 91 struct gl_texture_unit *texUnit, in set_env_color() argument 94 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped)) in set_env_color() 97 COPY_4FV(texUnit->EnvColorUnclamped, color); in set_env_color() 98 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F); in set_env_color() 99 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F); in set_env_color() 100 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F); in set_env_color() 101 texUnit->EnvColor[3] = CLAMP(color[3], 0.0F, 1.0F); in set_env_color() [all …]
|
D | texgen.c | 47 get_texgen(struct gl_context *ctx, struct gl_texture_unit *texUnit, in get_texgen() argument 52 ? &texUnit->GenS : NULL; in get_texgen() 57 return &texUnit->GenS; in get_texgen() 59 return &texUnit->GenT; in get_texgen() 61 return &texUnit->GenR; in get_texgen() 63 return &texUnit->GenQ; in get_texgen() 73 struct gl_texture_unit *texUnit; in _mesa_TexGenfv() local 89 texUnit = _mesa_get_current_tex_unit(ctx); in _mesa_TexGenfv() 91 texgen = get_texgen(ctx, texUnit, coord); in _mesa_TexGenfv() 292 struct gl_texture_unit *texUnit; in _mesa_GetTexGendv() local [all …]
|
D | rastpos.c | 269 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in compute_texgen() local 285 if (texUnit->TexGenEnabled & S_BIT) { in compute_texgen() 286 switch (texUnit->GenS.Mode) { in compute_texgen() 288 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane); in compute_texgen() 291 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane); in compute_texgen() 308 if (texUnit->TexGenEnabled & T_BIT) { in compute_texgen() 309 switch (texUnit->GenT.Mode) { in compute_texgen() 311 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane); in compute_texgen() 314 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane); in compute_texgen() 331 if (texUnit->TexGenEnabled & R_BIT) { in compute_texgen() [all …]
|
D | texobj.c | 147 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in _mesa_get_current_tex_object() local 152 return texUnit->CurrentTex[TEXTURE_1D_INDEX]; in _mesa_get_current_tex_object() 156 return texUnit->CurrentTex[TEXTURE_2D_INDEX]; in _mesa_get_current_tex_object() 160 return texUnit->CurrentTex[TEXTURE_3D_INDEX]; in _mesa_get_current_tex_object() 171 ? texUnit->CurrentTex[TEXTURE_CUBE_INDEX] : NULL; in _mesa_get_current_tex_object() 177 ? texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 183 ? texUnit->CurrentTex[TEXTURE_RECT_INDEX] : NULL; in _mesa_get_current_tex_object() 188 return arrayTex ? texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 192 return arrayTex ? texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 198 texUnit->CurrentTex[TEXTURE_BUFFER_INDEX] : NULL; in _mesa_get_current_tex_object() [all …]
|
D | enable.c | 221 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in enable_texture() local 223 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); in enable_texture() 225 if (texUnit->Enabled == newenabled) in enable_texture() 229 texUnit->Enabled = newenabled; in enable_texture() 761 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local 766 if (texUnit) { in _mesa_set_enable() 768 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit; in _mesa_set_enable() 771 if (texUnit->TexGenEnabled == newenabled) in _mesa_set_enable() 774 texUnit->TexGenEnabled = newenabled; in _mesa_set_enable() 782 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local [all …]
|
D | ffvertex_prog.c | 243 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; in make_state_key() local 245 if (texUnit->_Current) in make_state_key() 255 if (texUnit->TexGenEnabled) { in make_state_key() 259 translate_texgen( texUnit->TexGenEnabled & (1<<0), in make_state_key() 260 texUnit->GenS.Mode ); in make_state_key() 262 translate_texgen( texUnit->TexGenEnabled & (1<<1), in make_state_key() 263 texUnit->GenT.Mode ); in make_state_key() 265 translate_texgen( texUnit->TexGenEnabled & (1<<2), in make_state_key() 266 texUnit->GenR.Mode ); in make_state_key() 268 translate_texgen( texUnit->TexGenEnabled & (1<<3), in make_state_key() [all …]
|
D | context.c | 1268 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; in _mesa_initialize_context() local 1269 texUnit->GenS.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1270 texUnit->GenT.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1271 texUnit->GenR.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1272 texUnit->GenS._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context() 1273 texUnit->GenT._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context() 1274 texUnit->GenR._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_texstate.c | 220 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in r200UpdateTextureEnv() local 247 if ( !texUnit->_Current ) { in r200UpdateTextureEnv() 257 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in r200UpdateTextureEnv() 258 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in r200UpdateTextureEnv() 259 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in r200UpdateTextureEnv() 260 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in r200UpdateTextureEnv() 272 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in r200UpdateTextureEnv() 273 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in r200UpdateTextureEnv() 359 GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; in r200UpdateTextureEnv() 360 const GLint srcAi = texUnit->_CurrentCombine->SourceA[i]; in r200UpdateTextureEnv() [all …]
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vb_texgen.c | 340 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in texgen() local 350 if (texUnit->_GenFlags & TEXGEN_NEED_M) { in texgen() 352 } else if (texUnit->_GenFlags & TEXGEN_NEED_F) { in texgen() 358 out->flags |= (in->flags & VEC_SIZE_FLAGS) | texUnit->TexGenEnabled; in texgen() 361 copy = (all_bits[in->size] & ~texUnit->TexGenEnabled); in texgen() 365 if (texUnit->TexGenEnabled & S_BIT) { in texgen() 367 switch (texUnit->GenS.Mode) { in texgen() 371 texUnit->GenS.ObjectPlane ); in texgen() 376 texUnit->GenS.EyePlane ); in texgen() 398 if (texUnit->TexGenEnabled & T_BIT) { in texgen() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_texstate.c | 211 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in radeonUpdateTextureEnv() local 237 if ( !texUnit->_Current ) { in radeonUpdateTextureEnv() 244 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in radeonUpdateTextureEnv() 245 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in radeonUpdateTextureEnv() 246 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in radeonUpdateTextureEnv() 247 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in radeonUpdateTextureEnv() 254 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in radeonUpdateTextureEnv() 255 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in radeonUpdateTextureEnv() 260 if (texture_base_format(texUnit->_Current) == GL_ALPHA) in radeonUpdateTextureEnv() 299 const GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; in radeonUpdateTextureEnv() [all …]
|
D | radeon_tex.c | 260 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in radeonTexEnv() local 271 _mesa_unclamped_float_rgba_to_ubyte(c, texUnit->EnvColor); in radeonTexEnv()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_texture.c | 61 GLuint texUnit, bool glsl130_or_later, in st_update_single_texture() argument 69 samp = _mesa_get_samplerobj(ctx, texUnit); in st_update_single_texture() 71 texObj = ctx->Texture.Unit[texUnit]._Current; in st_update_single_texture() 128 const GLuint texUnit = prog->SamplerUnits[unit]; in update_textures() local 157 st_update_single_texture(st, &sampler_view, texUnit, glsl130, in update_textures()
|
D | st_texture.h | 230 const GLuint texUnit = prog->SamplerUnits[unit]; in st_get_texture_object() local 231 struct gl_texture_object *texObj = ctx->Texture.Unit[texUnit]._Current; in st_get_texture_object() 339 GLuint texUnit); 344 GLuint texUnit, bool glsl130_or_later,
|
D | st_atom_sampler.c | 226 GLuint texUnit) in st_convert_sampler_from_unit() argument 232 texobj = ctx->Texture.Unit[texUnit]._Current; in st_convert_sampler_from_unit() 236 msamp = _mesa_get_samplerobj(ctx, texUnit); in st_convert_sampler_from_unit() 238 st_convert_sampler(st, texobj, msamp, ctx->Texture.Unit[texUnit].LodBias, in st_convert_sampler_from_unit()
|
D | st_texture.c | 512 struct gl_program *prog, GLuint texUnit) in st_create_texture_handle_from_unit() argument 519 st_update_single_texture(st, &view, texUnit, prog->sh.data->Version >= 130, true); in st_create_texture_handle_from_unit() 524 st_convert_sampler_from_unit(st, &sampler, texUnit); in st_create_texture_handle_from_unit() 526 assert(st->ctx->Texture.Unit[texUnit]._Current); in st_create_texture_handle_from_unit()
|
/external/deqp/modules/glshared/ |
D | glsTextureTestUtil.hpp | 154 …void renderQuad (int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType tex… 155 …void renderQuad (int texUnit, const float* texCoord, const glu::TextureTestUtil::RenderPar…
|
D | glsTextureTestUtil.cpp | 297 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, TextureType texType) in renderQuad() argument 299 renderQuad(texUnit, texCoord, RenderParams(texType)); in renderQuad() 302 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, const RenderParams& params) in renderQuad() argument 444 gl.uniform1i(gl.getUniformLocation(prog, "u_sampler"), texUnit); in renderQuad() 446 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage; in renderQuad()
|
/external/deqp/framework/opengl/ |
D | gluStrUtil.hpp | 61 const deUint32 texUnit; member in glu::detail::TextureUnitStr 62 TextureUnitStr (deUint32 texUnit_) : texUnit(texUnit_) {} in TextureUnitStr()
|
D | gluStrUtil.cpp | 73 int unitNdx = unitStr.texUnit - GL_TEXTURE0; in operator <<() 77 return str << tcu::toHex(unitStr.texUnit); in operator <<()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_fragprog.c | 116 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in fetch_texel_deriv() local 117 const struct gl_texture_object *texObj = texUnit->_Current; in fetch_texel_deriv() 136 lambda += lodBias + texUnit->LodBias + samp->LodBias; in fetch_texel_deriv()
|
D | s_texcombine.c | 651 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in _swrast_texture_span() local 652 if (texUnit->_Current) { in _swrast_texture_span() 655 const struct gl_texture_object *curObj = texUnit->_Current; in _swrast_texture_span() 662 if (texUnit->LodBias + samp->LodBias != 0.0F) { in _swrast_texture_span() 664 const GLfloat bias = CLAMP(texUnit->LodBias + samp->LodBias, in _swrast_texture_span()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i830_texblend.c | 391 struct gl_texture_unit *texUnit = &i830->intel.ctx.Texture.Unit[unit]; in emit_texblend() local 400 tmp_sz = i830SetTexEnvCombine(i830, texUnit->_CurrentCombine, blendUnit, in emit_texblend() 401 GetTexelOp(unit), tmp, texUnit->EnvColor); in emit_texblend()
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureTestUtil.hpp | 180 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::Texture… 181 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::T… 184 const int texUnit,
|
D | vktTextureTestUtil.cpp | 963 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, Texture… in renderQuad() argument 965 renderQuad(result, texUnit, texCoord, ReferenceParams(texType)); in renderQuad() 968 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const R… in renderQuad() argument 978 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 983 int texUnit, in renderQuad() argument 1228 … samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit]->getTestTexture(… in renderQuad() 1238 const pipeline::TestTexture& testTexture = m_textureBindings[texUnit]->getTestTexture(); in renderQuad() 1277 m_textureBindings[texUnit]->getImageView(), // VkImageView imageView; in renderQuad() 1405 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage; in renderQuad()
|