/external/mesa3d/src/mesa/main/ |
D | texstate.c | 124 const struct gl_texture_unit *texUnit = ctx->Texture.Unit + unit; in _mesa_print_texunit_state() local 126 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_enum_to_string(texUnit->EnvMode)); in _mesa_print_texunit_state() 127 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB)); in _mesa_print_texunit_state() 128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA)); in _mesa_print_texunit_state() 129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0])); in _mesa_print_texunit_state() 130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1])); in _mesa_print_texunit_state() 131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2])); in _mesa_print_texunit_state() 132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0])); in _mesa_print_texunit_state() 133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1])); in _mesa_print_texunit_state() 134 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 | 159 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in _mesa_get_current_tex_object() local 164 return texUnit->CurrentTex[TEXTURE_1D_INDEX]; in _mesa_get_current_tex_object() 168 return texUnit->CurrentTex[TEXTURE_2D_INDEX]; in _mesa_get_current_tex_object() 172 return texUnit->CurrentTex[TEXTURE_3D_INDEX]; in _mesa_get_current_tex_object() 183 ? texUnit->CurrentTex[TEXTURE_CUBE_INDEX] : NULL; in _mesa_get_current_tex_object() 189 ? texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 195 ? texUnit->CurrentTex[TEXTURE_RECT_INDEX] : NULL; in _mesa_get_current_tex_object() 200 return arrayTex ? texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 204 return arrayTex ? texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 210 texUnit->CurrentTex[TEXTURE_BUFFER_INDEX] : NULL; in _mesa_get_current_tex_object() [all …]
|
D | enable.c | 222 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in enable_texture() local 224 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); in enable_texture() 226 if (texUnit->Enabled == newenabled) in enable_texture() 230 texUnit->Enabled = newenabled; in enable_texture() 709 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local 714 if (texUnit) { in _mesa_set_enable() 716 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit; in _mesa_set_enable() 719 if (texUnit->TexGenEnabled == newenabled) in _mesa_set_enable() 722 texUnit->TexGenEnabled = newenabled; in _mesa_set_enable() 730 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 | 1248 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; in _mesa_initialize_context() local 1249 texUnit->GenS.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1250 texUnit->GenT.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1251 texUnit->GenR.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1252 texUnit->GenS._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context() 1253 texUnit->GenT._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context() 1254 texUnit->GenR._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_texstate.c | 219 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in r200UpdateTextureEnv() local 246 if ( !texUnit->_Current ) { in r200UpdateTextureEnv() 256 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in r200UpdateTextureEnv() 257 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in r200UpdateTextureEnv() 258 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in r200UpdateTextureEnv() 259 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in r200UpdateTextureEnv() 271 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in r200UpdateTextureEnv() 272 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in r200UpdateTextureEnv() 358 GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; in r200UpdateTextureEnv() 359 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 | 205 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in radeonUpdateTextureEnv() local 231 if ( !texUnit->_Current ) { in radeonUpdateTextureEnv() 238 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in radeonUpdateTextureEnv() 239 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in radeonUpdateTextureEnv() 240 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in radeonUpdateTextureEnv() 241 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in radeonUpdateTextureEnv() 248 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in radeonUpdateTextureEnv() 249 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in radeonUpdateTextureEnv() 254 if (texUnit->_Current->Image[0][0]->_BaseFormat == GL_ALPHA) in radeonUpdateTextureEnv() 293 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_sampler.c | 132 GLuint texUnit) in convert_sampler() argument 139 texobj = ctx->Texture.Unit[texUnit]._Current; in convert_sampler() 144 msamp = _mesa_get_samplerobj(ctx, texUnit); in convert_sampler() 161 sampler->lod_bias = ctx->Texture.Unit[texUnit].LodBias + msamp->LodBias; in convert_sampler() 269 const GLuint texUnit = prog->SamplerUnits[unit]; in update_shader_samplers() local 271 convert_sampler(st, sampler, texUnit); in update_shader_samplers()
|
D | st_atom_texture.c | 58 GLuint texUnit, unsigned glsl_version) in update_single_texture() argument 66 samp = _mesa_get_samplerobj(ctx, texUnit); in update_single_texture() 68 texObj = ctx->Texture.Unit[texUnit]._Current; in update_single_texture() 128 const GLuint texUnit = prog->SamplerUnits[unit]; in update_textures() local 131 retval = update_single_texture(st, &sampler_view, texUnit, in update_textures()
|
D | st_texture.h | 172 const GLuint texUnit = prog->SamplerUnits[unit]; in st_get_texture_object() local 173 struct gl_texture_object *texObj = ctx->Texture.Unit[texUnit]._Current; in st_get_texture_object()
|
/external/deqp/modules/glshared/ |
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()
|
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…
|
/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 | 392 struct gl_texture_unit *texUnit = &i830->intel.ctx.Texture.Unit[unit]; in emit_texblend() local 401 tmp_sz = i830SetTexEnvCombine(i830, texUnit->_CurrentCombine, blendUnit, in emit_texblend() 402 GetTexelOp(unit), tmp, texUnit->EnvColor); in emit_texblend()
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureTestUtil.hpp | 166 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::Texture… 167 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::T… 170 const int texUnit,
|
D | vktTextureTestUtil.cpp | 939 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, Texture… in renderQuad() argument 941 renderQuad(result, texUnit, texCoord, ReferenceParams(texType)); in renderQuad() 944 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const R… in renderQuad() argument 954 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 959 int texUnit, in renderQuad() argument 1294 …o samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit]->getTestTexture(… in renderQuad() 1304 const pipeline::TestTexture& testTexture = m_textureBindings[texUnit]->getTestTexture(); in renderQuad() 1344 m_textureBindings[texUnit]->getImageView(), // VkImageView imageView; in renderQuad() 1547 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage; in renderQuad()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_sampler_state.c | 566 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in update_sampler_state() local 567 const struct gl_texture_object *texObj = texUnit->_Current; in update_sampler_state() 576 texUnit->LodBias, in update_sampler_state()
|