/external/chromium_org/third_party/mesa/src/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_lookup_enum_by_nr(texUnit->EnvMode)); in _mesa_print_texunit_state() 127 printf(" GL_COMBINE_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeRGB)); in _mesa_print_texunit_state() 128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeA)); in _mesa_print_texunit_state() 129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[0])); in _mesa_print_texunit_state() 130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[1])); in _mesa_print_texunit_state() 131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[2])); in _mesa_print_texunit_state() 132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[0])); in _mesa_print_texunit_state() 133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[1])); in _mesa_print_texunit_state() 134 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[2])); in _mesa_print_texunit_state() [all …]
|
D | texenv.c | 50 struct gl_texture_unit *texUnit, in set_env_mode() argument 55 if (texUnit->EnvMode == mode) in set_env_mode() 80 texUnit->EnvMode = mode; in set_env_mode() 90 struct gl_texture_unit *texUnit, in set_env_color() argument 93 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped)) in set_env_color() 96 COPY_4FV(texUnit->EnvColorUnclamped, color); in set_env_color() 97 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F); in set_env_color() 98 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F); in set_env_color() 99 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F); in set_env_color() 100 texUnit->EnvColor[3] = CLAMP(color[3], 0.0F, 1.0F); in set_env_color() [all …]
|
D | texgen.c | 51 get_texgen(struct gl_context *ctx, struct gl_texture_unit *texUnit, in get_texgen() argument 56 ? &texUnit->GenS : NULL; in get_texgen() 61 return &texUnit->GenS; in get_texgen() 63 return &texUnit->GenT; in get_texgen() 65 return &texUnit->GenR; in get_texgen() 67 return &texUnit->GenQ; in get_texgen() 77 struct gl_texture_unit *texUnit; in _mesa_TexGenfv() local 94 texUnit = _mesa_get_current_tex_unit(ctx); in _mesa_TexGenfv() 96 texgen = get_texgen(ctx, texUnit, coord); in _mesa_TexGenfv() 299 struct gl_texture_unit *texUnit; in _mesa_GetTexGendv() local [all …]
|
D | enable.c | 240 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in enable_texture() local 242 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); in enable_texture() 244 if (texUnit->Enabled == newenabled) in enable_texture() 248 texUnit->Enabled = newenabled; in enable_texture() 691 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local 696 if (texUnit) { in _mesa_set_enable() 698 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit; in _mesa_set_enable() 701 if (texUnit->TexGenEnabled == newenabled) in _mesa_set_enable() 704 texUnit->TexGenEnabled = newenabled; in _mesa_set_enable() 713 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local [all …]
|
/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_lookup_enum_by_nr(texUnit->EnvMode)); in _mesa_print_texunit_state() 127 printf(" GL_COMBINE_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeRGB)); in _mesa_print_texunit_state() 128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.ModeA)); in _mesa_print_texunit_state() 129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[0])); in _mesa_print_texunit_state() 130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[1])); in _mesa_print_texunit_state() 131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceRGB[2])); in _mesa_print_texunit_state() 132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[0])); in _mesa_print_texunit_state() 133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[1])); in _mesa_print_texunit_state() 134 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_lookup_enum_by_nr(texUnit->Combine.SourceA[2])); in _mesa_print_texunit_state() [all …]
|
D | texenv.c | 50 struct gl_texture_unit *texUnit, in set_env_mode() argument 55 if (texUnit->EnvMode == mode) in set_env_mode() 80 texUnit->EnvMode = mode; in set_env_mode() 90 struct gl_texture_unit *texUnit, in set_env_color() argument 93 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped)) in set_env_color() 96 COPY_4FV(texUnit->EnvColorUnclamped, color); in set_env_color() 97 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F); in set_env_color() 98 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F); in set_env_color() 99 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F); in set_env_color() 100 texUnit->EnvColor[3] = CLAMP(color[3], 0.0F, 1.0F); in set_env_color() [all …]
|
D | texgen.c | 51 get_texgen(struct gl_context *ctx, struct gl_texture_unit *texUnit, in get_texgen() argument 56 ? &texUnit->GenS : NULL; in get_texgen() 61 return &texUnit->GenS; in get_texgen() 63 return &texUnit->GenT; in get_texgen() 65 return &texUnit->GenR; in get_texgen() 67 return &texUnit->GenQ; in get_texgen() 77 struct gl_texture_unit *texUnit; in _mesa_TexGenfv() local 94 texUnit = _mesa_get_current_tex_unit(ctx); in _mesa_TexGenfv() 96 texgen = get_texgen(ctx, texUnit, coord); in _mesa_TexGenfv() 299 struct gl_texture_unit *texUnit; in _mesa_GetTexGendv() local [all …]
|
D | enable.c | 240 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in enable_texture() local 242 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); in enable_texture() 244 if (texUnit->Enabled == newenabled) in enable_texture() 248 texUnit->Enabled = newenabled; in enable_texture() 691 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local 696 if (texUnit) { in _mesa_set_enable() 698 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit; in _mesa_set_enable() 701 if (texUnit->TexGenEnabled == newenabled) in _mesa_set_enable() 704 texUnit->TexGenEnabled = newenabled; in _mesa_set_enable() 713 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/r200/ |
D | r200_texstate.c | 306 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in r200UpdateTextureEnv() local 318 assert( (texUnit->_ReallyEnabled == 0) in r200UpdateTextureEnv() 319 || (texUnit->_Current != NULL) ); in r200UpdateTextureEnv() 339 if ( !texUnit->_ReallyEnabled ) { in r200UpdateTextureEnv() 349 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in r200UpdateTextureEnv() 350 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in r200UpdateTextureEnv() 351 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in r200UpdateTextureEnv() 352 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in r200UpdateTextureEnv() 364 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in r200UpdateTextureEnv() 365 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in r200UpdateTextureEnv() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_texstate.c | 306 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in r200UpdateTextureEnv() local 318 assert( (texUnit->_ReallyEnabled == 0) in r200UpdateTextureEnv() 319 || (texUnit->_Current != NULL) ); in r200UpdateTextureEnv() 339 if ( !texUnit->_ReallyEnabled ) { in r200UpdateTextureEnv() 349 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in r200UpdateTextureEnv() 350 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in r200UpdateTextureEnv() 351 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in r200UpdateTextureEnv() 352 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in r200UpdateTextureEnv() 364 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in r200UpdateTextureEnv() 365 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in r200UpdateTextureEnv() [all …]
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vb_texgen.c | 342 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in texgen() local 352 if (texUnit->_GenFlags & TEXGEN_NEED_M) { in texgen() 354 } else if (texUnit->_GenFlags & TEXGEN_NEED_F) { in texgen() 360 out->flags |= (in->flags & VEC_SIZE_FLAGS) | texUnit->TexGenEnabled; in texgen() 363 copy = (all_bits[in->size] & ~texUnit->TexGenEnabled); in texgen() 367 if (texUnit->TexGenEnabled & S_BIT) { in texgen() 369 switch (texUnit->GenS.Mode) { in texgen() 373 texUnit->GenS.ObjectPlane ); in texgen() 378 texUnit->GenS.EyePlane ); in texgen() 400 if (texUnit->TexGenEnabled & T_BIT) { in texgen() [all …]
|
D | t_rasterpos.c | 262 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in compute_texgen() local 278 if (texUnit->TexGenEnabled & S_BIT) { in compute_texgen() 279 switch (texUnit->GenS.Mode) { in compute_texgen() 281 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane); in compute_texgen() 284 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane); in compute_texgen() 301 if (texUnit->TexGenEnabled & T_BIT) { in compute_texgen() 302 switch (texUnit->GenT.Mode) { in compute_texgen() 304 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane); in compute_texgen() 307 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane); in compute_texgen() 324 if (texUnit->TexGenEnabled & R_BIT) { in compute_texgen() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/tnl/ |
D | t_vb_texgen.c | 342 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in texgen() local 352 if (texUnit->_GenFlags & TEXGEN_NEED_M) { in texgen() 354 } else if (texUnit->_GenFlags & TEXGEN_NEED_F) { in texgen() 360 out->flags |= (in->flags & VEC_SIZE_FLAGS) | texUnit->TexGenEnabled; in texgen() 363 copy = (all_bits[in->size] & ~texUnit->TexGenEnabled); in texgen() 367 if (texUnit->TexGenEnabled & S_BIT) { in texgen() 369 switch (texUnit->GenS.Mode) { in texgen() 373 texUnit->GenS.ObjectPlane ); in texgen() 378 texUnit->GenS.EyePlane ); in texgen() 400 if (texUnit->TexGenEnabled & T_BIT) { in texgen() [all …]
|
D | t_rasterpos.c | 262 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in compute_texgen() local 278 if (texUnit->TexGenEnabled & S_BIT) { in compute_texgen() 279 switch (texUnit->GenS.Mode) { in compute_texgen() 281 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane); in compute_texgen() 284 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane); in compute_texgen() 301 if (texUnit->TexGenEnabled & T_BIT) { in compute_texgen() 302 switch (texUnit->GenT.Mode) { in compute_texgen() 304 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane); in compute_texgen() 307 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane); in compute_texgen() 324 if (texUnit->TexGenEnabled & R_BIT) { in compute_texgen() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/ |
D | radeon_texstate.c | 266 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in radeonUpdateTextureEnv() local 279 assert( (texUnit->_ReallyEnabled == 0) in radeonUpdateTextureEnv() 280 || (texUnit->_Current != NULL) ); in radeonUpdateTextureEnv() 298 if ( !texUnit->_ReallyEnabled ) { in radeonUpdateTextureEnv() 305 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in radeonUpdateTextureEnv() 306 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in radeonUpdateTextureEnv() 307 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in radeonUpdateTextureEnv() 308 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in radeonUpdateTextureEnv() 315 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in radeonUpdateTextureEnv() 316 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in radeonUpdateTextureEnv() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_texstate.c | 266 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in radeonUpdateTextureEnv() local 279 assert( (texUnit->_ReallyEnabled == 0) in radeonUpdateTextureEnv() 280 || (texUnit->_Current != NULL) ); in radeonUpdateTextureEnv() 298 if ( !texUnit->_ReallyEnabled ) { in radeonUpdateTextureEnv() 305 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in radeonUpdateTextureEnv() 306 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in radeonUpdateTextureEnv() 307 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in radeonUpdateTextureEnv() 308 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in radeonUpdateTextureEnv() 315 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in radeonUpdateTextureEnv() 316 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in radeonUpdateTextureEnv() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_sampler.c | 129 GLuint texUnit) in convert_sampler() argument 135 texobj = ctx->Texture.Unit[texUnit]._Current; in convert_sampler() 140 msamp = _mesa_get_samplerobj(ctx, texUnit); in convert_sampler() 154 sampler->lod_bias = ctx->Texture.Unit[texUnit].LodBias + msamp->LodBias; in convert_sampler() 232 const GLuint texUnit = prog->SamplerUnits[unit]; in update_shader_samplers() local 234 convert_sampler(st, sampler, texUnit); in update_shader_samplers()
|
D | st_atom_texture.c | 190 GLuint texUnit) in update_single_texture() argument 200 samp = _mesa_get_samplerobj(ctx, texUnit); in update_single_texture() 202 texObj = ctx->Texture.Unit[texUnit]._Current; in update_single_texture() 280 const GLuint texUnit = prog->SamplerUnits[unit]; in update_textures() local 283 retval = update_single_texture(st, &sampler_view, texUnit); in update_textures() 401 const GLuint texUnit = fprog->Base.SamplerUnits[su]; in finalize_textures() local 403 = ctx->Texture.Unit[texUnit]._Current; in finalize_textures()
|
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_atom_sampler.c | 129 GLuint texUnit) in convert_sampler() argument 135 texobj = ctx->Texture.Unit[texUnit]._Current; in convert_sampler() 140 msamp = _mesa_get_samplerobj(ctx, texUnit); in convert_sampler() 154 sampler->lod_bias = ctx->Texture.Unit[texUnit].LodBias + msamp->LodBias; in convert_sampler() 232 const GLuint texUnit = prog->SamplerUnits[unit]; in update_shader_samplers() local 234 convert_sampler(st, sampler, texUnit); in update_shader_samplers()
|
D | st_atom_texture.c | 190 GLuint texUnit) in update_single_texture() argument 200 samp = _mesa_get_samplerobj(ctx, texUnit); in update_single_texture() 202 texObj = ctx->Texture.Unit[texUnit]._Current; in update_single_texture() 280 const GLuint texUnit = prog->SamplerUnits[unit]; in update_textures() local 283 retval = update_single_texture(st, &sampler_view, texUnit); in update_textures() 401 const GLuint texUnit = fprog->Base.SamplerUnits[su]; in finalize_textures() local 403 = ctx->Texture.Unit[texUnit]._Current; in finalize_textures()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_tex.c | 53 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; in brw_validate_textures() local 55 if (texUnit->_ReallyEnabled) { in brw_validate_textures()
|
D | brw_wm_sampler_state.c | 87 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in upload_default_color() local 88 struct gl_texture_object *texObj = texUnit->_Current; in upload_default_color() 166 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in brw_update_sampler_state() local 167 struct gl_texture_object *texObj = texUnit->_Current; in brw_update_sampler_state() 279 sampler->ss0.lod_bias = S_FIXED(CLAMP(texUnit->LodBias + in brw_update_sampler_state()
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
D | brw_tex.c | 53 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; in brw_validate_textures() local 55 if (texUnit->_ReallyEnabled) { in brw_validate_textures()
|
D | brw_wm_sampler_state.c | 87 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in upload_default_color() local 88 struct gl_texture_object *texObj = texUnit->_Current; in upload_default_color() 166 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in brw_update_sampler_state() local 167 struct gl_texture_object *texObj = texUnit->_Current; in brw_update_sampler_state() 279 sampler->ss0.lod_bias = S_FIXED(CLAMP(texUnit->LodBias + in brw_update_sampler_state()
|
/external/deqp/framework/opengl/ |
D | gluStrUtil.hpp | 52 deUint32 texUnit; member in glu::detail::TextureUnitStr 53 TextureUnitStr (deUint32 texUnit_) : texUnit(texUnit_) {} in TextureUnitStr()
|