Home
last modified time | relevance | path

Searched refs:texUnit (Results 1 – 25 of 34) sorted by relevance

12

/external/mesa3d/src/mesa/main/
Dtexstate.c128 const struct gl_fixedfunc_texture_unit *texUnit = ctx->Texture.FixedFuncUnit + unit; in _mesa_print_texunit_state() local
130 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_enum_to_string(texUnit->EnvMode)); in _mesa_print_texunit_state()
131 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB)); in _mesa_print_texunit_state()
132 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA)); in _mesa_print_texunit_state()
133 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0])); in _mesa_print_texunit_state()
134 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1])); in _mesa_print_texunit_state()
135 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2])); in _mesa_print_texunit_state()
136 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0])); in _mesa_print_texunit_state()
137 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1])); in _mesa_print_texunit_state()
138 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[2])); in _mesa_print_texunit_state()
[all …]
Dtexenv.c51 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 …]
Drastpos.c287 const struct gl_fixedfunc_texture_unit *texUnit = in compute_texgen() local
304 if (texUnit->TexGenEnabled & S_BIT) { in compute_texgen()
305 switch (texUnit->GenS.Mode) { in compute_texgen()
307 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane); in compute_texgen()
310 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane); in compute_texgen()
327 if (texUnit->TexGenEnabled & T_BIT) { in compute_texgen()
328 switch (texUnit->GenT.Mode) { in compute_texgen()
330 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane); in compute_texgen()
333 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane); in compute_texgen()
350 if (texUnit->TexGenEnabled & R_BIT) { in compute_texgen()
[all …]
Dtexobj.c148 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); in _mesa_get_current_tex_object() local
153 return texUnit->CurrentTex[TEXTURE_1D_INDEX]; in _mesa_get_current_tex_object()
157 return texUnit->CurrentTex[TEXTURE_2D_INDEX]; in _mesa_get_current_tex_object()
161 return texUnit->CurrentTex[TEXTURE_3D_INDEX]; in _mesa_get_current_tex_object()
172 ? texUnit->CurrentTex[TEXTURE_CUBE_INDEX] : NULL; in _mesa_get_current_tex_object()
178 ? texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object()
184 ? texUnit->CurrentTex[TEXTURE_RECT_INDEX] : NULL; in _mesa_get_current_tex_object()
189 return arrayTex ? texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object()
193 return arrayTex ? texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX] : NULL; in _mesa_get_current_tex_object()
199 texUnit->CurrentTex[TEXTURE_BUFFER_INDEX] : NULL; in _mesa_get_current_tex_object()
[all …]
Denable.c306 struct gl_fixedfunc_texture_unit *texUnit = in enable_texture() local
308 if (!texUnit) in enable_texture()
312 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit); in enable_texture()
314 if (texUnit->Enabled == newenabled) in enable_texture()
318 texUnit->Enabled = newenabled; in enable_texture()
884 struct gl_fixedfunc_texture_unit *texUnit = get_texcoord_unit(ctx); in _mesa_set_enable() local
889 if (texUnit) { in _mesa_set_enable()
891 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit; in _mesa_set_enable()
894 if (texUnit->TexGenEnabled == newenabled) in _mesa_set_enable()
897 texUnit->TexGenEnabled = newenabled; in _mesa_set_enable()
[all …]
Dtexgen.c48 struct gl_fixedfunc_texture_unit* texUnit; in get_texgen() local
54 texUnit = _mesa_get_fixedfunc_tex_unit(ctx, texunitIndex); in get_texgen()
58 ? &texUnit->GenS : NULL; in get_texgen()
63 return &texUnit->GenS; in get_texgen()
65 return &texUnit->GenT; in get_texgen()
67 return &texUnit->GenR; in get_texgen()
69 return &texUnit->GenQ; in get_texgen()
Dcontext.c1279 struct gl_fixedfunc_texture_unit *texUnit = in _mesa_initialize_context() local
1282 texUnit->GenS.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context()
1283 texUnit->GenT.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context()
1284 texUnit->GenR.Mode = GL_REFLECTION_MAP_NV; in _mesa_initialize_context()
1285 texUnit->GenS._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context()
1286 texUnit->GenT._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context()
1287 texUnit->GenR._ModeBit = TEXGEN_REFLECTION_MAP_NV; in _mesa_initialize_context()
Dffvertex_prog.c239 struct gl_fixedfunc_texture_unit *texUnit = in make_state_key() local
249 if (texUnit->TexGenEnabled) { in make_state_key()
253 translate_texgen( texUnit->TexGenEnabled & (1<<0), in make_state_key()
254 texUnit->GenS.Mode ); in make_state_key()
256 translate_texgen( texUnit->TexGenEnabled & (1<<1), in make_state_key()
257 texUnit->GenT.Mode ); in make_state_key()
259 translate_texgen( texUnit->TexGenEnabled & (1<<2), in make_state_key()
260 texUnit->GenR.Mode ); in make_state_key()
262 translate_texgen( texUnit->TexGenEnabled & (1<<3), in make_state_key()
263 texUnit->GenQ.Mode ); in make_state_key()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dr200_texstate.c221 const struct gl_fixedfunc_texture_unit *texUnit = in r200UpdateTextureEnv() local
259 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in r200UpdateTextureEnv()
260 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in r200UpdateTextureEnv()
261 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in r200UpdateTextureEnv()
262 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in r200UpdateTextureEnv()
274 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in r200UpdateTextureEnv()
275 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in r200UpdateTextureEnv()
361 GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; in r200UpdateTextureEnv()
362 const GLint srcAi = texUnit->_CurrentCombine->SourceA[i]; in r200UpdateTextureEnv()
445 switch ( texUnit->_CurrentCombine->ModeRGB ) { in r200UpdateTextureEnv()
[all …]
/external/mesa3d/src/mesa/tnl/
Dt_vb_texgen.c341 const struct gl_fixedfunc_texture_unit *texUnit = 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 …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_texstate.c211 const struct gl_fixedfunc_texture_unit *texUnit = in radeonUpdateTextureEnv() local
245 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB; in radeonUpdateTextureEnv()
246 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA; in radeonUpdateTextureEnv()
247 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB; in radeonUpdateTextureEnv()
248 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA; in radeonUpdateTextureEnv()
255 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; in radeonUpdateTextureEnv()
256 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i]; in radeonUpdateTextureEnv()
300 const GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; in radeonUpdateTextureEnv()
301 const GLuint srcAi = texUnit->_CurrentCombine->SourceA[i]; in radeonUpdateTextureEnv()
344 switch ( texUnit->_CurrentCombine->ModeRGB ) { in radeonUpdateTextureEnv()
[all …]
Dradeon_tex.c260 struct gl_fixedfunc_texture_unit *texUnit = in radeonTexEnv() local
272 _mesa_unclamped_float_rgba_to_ubyte(c, texUnit->EnvColor); in radeonTexEnv()
/external/mesa3d/src/mesa/state_tracker/
Dst_texture.h244 const GLuint texUnit = prog->SamplerUnits[unit]; in st_get_texture_object() local
245 struct gl_texture_object *texObj = ctx->Texture.Unit[texUnit]._Current; in st_get_texture_object()
357 GLuint texUnit);
362 GLuint texUnit, bool glsl130_or_later,
Dst_atom_texture.c61 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()
127 const GLuint texUnit = prog->SamplerUnits[unit]; in update_textures() local
156 st_update_single_texture(st, &sampler_view, texUnit, glsl130, in update_textures()
Dst_atom_sampler.c234 GLuint texUnit) in st_convert_sampler_from_unit() argument
240 texobj = ctx->Texture.Unit[texUnit]._Current; in st_convert_sampler_from_unit()
244 msamp = _mesa_get_samplerobj(ctx, texUnit); in st_convert_sampler_from_unit()
246 st_convert_sampler(st, texobj, msamp, ctx->Texture.Unit[texUnit].LodBias, in st_convert_sampler_from_unit()
Dst_texture.c513 struct gl_program *prog, GLuint texUnit) in st_create_texture_handle_from_unit() argument
520 st_update_single_texture(st, &view, texUnit, prog->sh.data->Version >= 130, true); in st_create_texture_handle_from_unit()
525 st_convert_sampler_from_unit(st, &sampler, texUnit); in st_create_texture_handle_from_unit()
527 assert(st->ctx->Texture.Unit[texUnit]._Current); in st_create_texture_handle_from_unit()
/external/deqp/modules/glshared/
DglsTextureTestUtil.hpp154 …void renderQuad (int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType tex…
155 …void renderQuad (int texUnit, const float* texCoord, const glu::TextureTestUtil::RenderPar…
DglsTextureTestUtil.cpp297 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/
DgluStrUtil.hpp61 const deUint32 texUnit; member in glu::detail::TextureUnitStr
62 TextureUnitStr (deUint32 texUnit_) : texUnit(texUnit_) {} in TextureUnitStr()
DgluStrUtil.cpp73 int unitNdx = unitStr.texUnit - GL_TEXTURE0; in operator <<()
77 return str << tcu::toHex(unitStr.texUnit); in operator <<()
/external/mesa3d/src/mesa/swrast/
Ds_fragprog.c116 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()
Ds_texcombine.c652 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; in _swrast_texture_span() local
653 if (texUnit->_Current) { in _swrast_texture_span()
656 const struct gl_texture_object *curObj = texUnit->_Current; in _swrast_texture_span()
663 if (texUnit->LodBias + samp->LodBias != 0.0F) { in _swrast_texture_span()
665 const GLfloat bias = CLAMP(texUnit->LodBias + samp->LodBias, in _swrast_texture_span()
/external/mesa3d/src/mesa/drivers/dri/i915/
Di830_texblend.c391 struct gl_fixedfunc_texture_unit *texUnit = 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/
DvktTextureTestUtil.hpp199 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::Texture…
200 …void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::T…
203 const int texUnit,
DvktTextureTestUtil.cpp981 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, Texture… in renderQuad() argument
983 renderQuad(result, texUnit, texCoord, ReferenceParams(texType)); in renderQuad()
986 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const R… in renderQuad() argument
996 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad()
1001 int texUnit, in renderQuad() argument
1246 … samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit]->getTestTexture(… in renderQuad()
1257 const pipeline::TestTexture& testTexture = m_textureBindings[texUnit]->getTestTexture(); in renderQuad()
1296 m_textureBindings[texUnit]->getImageView(), // VkImageView imageView; in renderQuad()
1424 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage; in renderQuad()

12