/third_party/mesa3d/src/mesa/main/ |
D | texstate.c | 134 const struct gl_fixedfunc_texture_unit *texUnit = ctx->Texture.FixedFuncUnit + unit; in _mesa_print_texunit_state() local 136 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_enum_to_string(texUnit->EnvMode)); in _mesa_print_texunit_state() 137 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB)); in _mesa_print_texunit_state() 138 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA)); in _mesa_print_texunit_state() 139 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0])); in _mesa_print_texunit_state() 140 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1])); in _mesa_print_texunit_state() 141 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2])); in _mesa_print_texunit_state() 142 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0])); in _mesa_print_texunit_state() 143 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1])); in _mesa_print_texunit_state() 144 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_fixedfunc_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_fixedfunc_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 | texobj.c | 157 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in _mesa_get_current_tex_object() local 162 return texUnit->CurrentTex[TEXTURE_1D_INDEX]; in _mesa_get_current_tex_object() 166 return texUnit->CurrentTex[TEXTURE_2D_INDEX]; in _mesa_get_current_tex_object() 170 return texUnit->CurrentTex[TEXTURE_3D_INDEX]; in _mesa_get_current_tex_object() 181 return texUnit->CurrentTex[TEXTURE_CUBE_INDEX]; in _mesa_get_current_tex_object() 186 ? texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 192 ? texUnit->CurrentTex[TEXTURE_RECT_INDEX] : NULL; in _mesa_get_current_tex_object() 197 return arrayTex ? texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 201 return arrayTex ? texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object() 207 texUnit->CurrentTex[TEXTURE_BUFFER_INDEX] : NULL; in _mesa_get_current_tex_object() [all …]
|
D | rastpos.c | 293 const struct gl_fixedfunc_texture_unit *texUnit = in compute_texgen() local 310 if (texUnit->TexGenEnabled & S_BIT) { in compute_texgen() 311 switch (texUnit->GenS.Mode) { in compute_texgen() 313 texcoord[0] = DOT4(vObj, texUnit->ObjectPlane[GEN_S]); in compute_texgen() 316 texcoord[0] = DOT4(vEye, texUnit->EyePlane[GEN_S]); in compute_texgen() 333 if (texUnit->TexGenEnabled & T_BIT) { in compute_texgen() 334 switch (texUnit->GenT.Mode) { in compute_texgen() 336 texcoord[1] = DOT4(vObj, texUnit->ObjectPlane[GEN_T]); in compute_texgen() 339 texcoord[1] = DOT4(vEye, texUnit->EyePlane[GEN_T]); in compute_texgen() 356 if (texUnit->TexGenEnabled & R_BIT) { in compute_texgen() [all …]
|
D | enable.c | 324 struct gl_fixedfunc_texture_unit *texUnit = in enable_texture() local 326 if (!texUnit) in enable_texture() 330 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); in enable_texture() 332 if (texUnit->Enabled == newenabled) in enable_texture() 336 texUnit->Enabled = newenabled; in enable_texture() 913 struct gl_fixedfunc_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local 918 if (texUnit) { in _mesa_set_enable() 920 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit; in _mesa_set_enable() 923 if (texUnit->TexGenEnabled == newenabled) in _mesa_set_enable() 928 texUnit->TexGenEnabled = newenabled; in _mesa_set_enable() [all …]
|
D | texgen.c | 50 struct gl_fixedfunc_texture_unit* texUnit; in get_texgen() local 56 texUnit = _mesa_get_fixedfunc_tex_unit(ctx, texunitIndex); in get_texgen() 60 ? &texUnit->GenS : NULL; in get_texgen() 65 return &texUnit->GenS; in get_texgen() 67 return &texUnit->GenT; in get_texgen() 69 return &texUnit->GenR; in get_texgen() 71 return &texUnit->GenQ; in get_texgen()
|
D | context.c | 1067 struct gl_fixedfunc_texture_unit *texUnit = in _mesa_initialize_context() local 1070 texUnit->GenS.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1071 texUnit->GenT.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1072 texUnit->GenR.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context() 1073 texUnit->GenS._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context() 1074 texUnit->GenT._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context() 1075 texUnit->GenR._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context()
|
D | ffvertex_prog.c | 251 struct gl_fixedfunc_texture_unit *texUnit = in make_state_key() local 261 if (texUnit->TexGenEnabled) { in make_state_key() 265 translate_texgen( texUnit->TexGenEnabled & (1<<0), in make_state_key() 266 texUnit->GenS.Mode ); in make_state_key() 268 translate_texgen( texUnit->TexGenEnabled & (1<<1), in make_state_key() 269 texUnit->GenT.Mode ); in make_state_key() 271 translate_texgen( texUnit->TexGenEnabled & (1<<2), in make_state_key() 272 texUnit->GenR.Mode ); in make_state_key() 274 translate_texgen( texUnit->TexGenEnabled & (1<<3), in make_state_key() 275 texUnit->GenQ.Mode ); in make_state_key()
|
D | ff_fragment_shader.cpp | 272 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; in make_state_key() local 273 const struct gl_texture_object *texObj = texUnit->_Current; in make_state_key()
|
D | uniform_query.cpp | 1224 const unsigned texUnit = ((unsigned *) values)[i]; in validate_uniform() local 1227 if (texUnit >= ctx->Const.MaxCombinedTextureImageUnits) { in validate_uniform()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_texture.h | 137 const GLuint texUnit = prog->SamplerUnits[unit]; in st_get_texture_object() local 138 return ctx->Texture.Unit[texUnit]._Current; in st_get_texture_object() 247 GLuint texUnit); 251 GLuint texUnit, bool glsl130_or_later,
|
D | st_atom_sampler.c | 154 GLuint texUnit) in st_convert_sampler_from_unit() argument 160 texobj = ctx->Texture.Unit[texUnit]._Current; in st_convert_sampler_from_unit() 163 msamp = _mesa_get_samplerobj(ctx, texUnit); in st_convert_sampler_from_unit() 165 st_convert_sampler(st, texobj, msamp, ctx->Texture.Unit[texUnit].LodBiasQuantized, in st_convert_sampler_from_unit()
|
D | st_atom_texture.c | 60 GLuint texUnit, bool glsl130_or_later, in st_update_single_texture() argument 66 texObj = ctx->Texture.Unit[texUnit]._Current; in st_update_single_texture() 82 _mesa_get_samplerobj(ctx, texUnit), in st_update_single_texture()
|
D | st_texture.c | 513 struct gl_program *prog, GLuint texUnit) in st_create_texture_handle_from_unit() argument 520 view = st_update_single_texture(st, texUnit, prog->sh.data->Version >= 130, in st_create_texture_handle_from_unit() 526 st_convert_sampler_from_unit(st, &sampler, texUnit); in st_create_texture_handle_from_unit() 528 assert(st->ctx->Texture.Unit[texUnit]._Current); in st_create_texture_handle_from_unit()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureTestUtil.hpp | 215 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::Textur… 216 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::… 219 const int texUnit, 224 …void renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* texCo… 227 const int texUnit,
|
D | vktTextureTestUtil.cpp | 1184 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, Texture… in renderQuad() argument 1186 renderQuad(result, texUnit, texCoord, ReferenceParams(texType)); in renderQuad() 1189 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const R… in renderQuad() argument 1191 renderQuad(result.getAccess(), texUnit, texCoord, params); in renderQuad() 1194 void TextureRenderer::renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* t… in renderQuad() argument 1204 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1209 int texUnit, in renderQuad() argument 1214 renderQuad(result.getAccess(), positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1219 int texUnit, in renderQuad() argument 1463 … samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit]->getTestTexture(… in renderQuad() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
D | vktTextureTestUtil.hpp | 215 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::Textur… 216 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::… 219 const int texUnit, 224 …void renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* texCo… 227 const int texUnit,
|
D | vktTextureTestUtil.cpp | 1184 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, Texture… in renderQuad() argument 1186 renderQuad(result, texUnit, texCoord, ReferenceParams(texType)); in renderQuad() 1189 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const R… in renderQuad() argument 1191 renderQuad(result.getAccess(), texUnit, texCoord, params); in renderQuad() 1194 void TextureRenderer::renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* t… in renderQuad() argument 1204 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1209 int texUnit, in renderQuad() argument 1214 renderQuad(result.getAccess(), positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1219 int texUnit, in renderQuad() argument 1463 … samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit]->getTestTexture(… in renderQuad() [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsTextureTestUtil.cpp | 302 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, TextureType texType) in renderQuad() argument 304 renderQuad(texUnit, texCoord, RenderParams(texType)); in renderQuad() 307 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, const RenderParams& params) in renderQuad() argument 449 gl.uniform1i(gl.getUniformLocation(prog, "u_sampler"), texUnit); in renderQuad() 451 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage; in renderQuad()
|
D | glsTextureTestUtil.hpp | 155 …void renderQuad (int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType tex… 156 …void renderQuad (int texUnit, const float* texCoord, const glu::TextureTestUtil::RenderPar…
|
/third_party/vk-gl-cts/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 <<()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderDerivateTests.cpp | 1415 const int texUnit = 1; in setupRenderState() local 1417 gl.activeTexture (GL_TEXTURE0+texUnit); in setupRenderState() 1424 gl.uniform1i (gl.getUniformLocation(program, "u_sampler"), texUnit); in setupRenderState()
|
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/ |
D | EXT_direct_state_access.txt | 3024 glMultiTexGeniEXT(texUnit, coord, pname, value); 3029 glMultiTexGenivEXT(texUnit, coord, pname, &pvalue);
|
/third_party/openGLES/extensions/EXT/ |
D | EXT_direct_state_access.txt | 3024 glMultiTexGeniEXT(texUnit, coord, pname, value); 3029 glMultiTexGenivEXT(texUnit, coord, pname, &pvalue);
|