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

12

/external/mesa3d/src/mesa/main/
H A Dtexstate.c124 const struct gl_texture_unit *texUnit = ctx->Texture.Unit + unit; local
126 printf(" GL_TEXTURE_ENV_MODE = %s\n", _mesa_enum_to_string(texUnit->EnvMode));
127 printf(" GL_COMBINE_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeRGB));
128 printf(" GL_COMBINE_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.ModeA));
129 printf(" GL_SOURCE0_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[0]));
130 printf(" GL_SOURCE1_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[1]));
131 printf(" GL_SOURCE2_RGB = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceRGB[2]));
132 printf(" GL_SOURCE0_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[0]));
133 printf(" GL_SOURCE1_ALPHA = %s\n", _mesa_enum_to_string(texUnit->Combine.SourceA[1]));
134 printf(" GL_SOURCE2_ALPHA = %s\n", _mesa_enum_to_string(texUnit
288 const GLuint texUnit = texture - GL_TEXTURE0; local
324 GLuint texUnit = texture - GL_TEXTURE0; local
382 update_tex_combine(struct gl_context *ctx, struct gl_texture_unit *texUnit) argument
479 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
515 struct gl_texture_unit *texUnit; local
614 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
830 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
964 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[u]; local
[all...]
H A Dtexenv.c51 struct gl_texture_unit *texUnit,
56 if (texUnit->EnvMode == mode)
81 texUnit->EnvMode = mode;
91 struct gl_texture_unit *texUnit,
94 if (TEST_EQ_4V(color, texUnit->EnvColorUnclamped))
97 COPY_4FV(texUnit->EnvColorUnclamped, color);
98 texUnit->EnvColor[0] = CLAMP(color[0], 0.0F, 1.0F);
99 texUnit->EnvColor[1] = CLAMP(color[1], 0.0F, 1.0F);
100 texUnit->EnvColor[2] = CLAMP(color[2], 0.0F, 1.0F);
101 texUnit
50 set_env_mode(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum mode) argument
90 set_env_color(struct gl_context *ctx, struct gl_texture_unit *texUnit, const GLfloat *color) argument
107 set_combiner_mode(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLenum mode) argument
173 set_combiner_source(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLenum param) argument
263 set_combiner_operand(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLenum param) argument
344 set_combiner_scale(struct gl_context *ctx, struct gl_texture_unit *texUnit, GLenum pname, GLfloat scale) argument
389 struct gl_texture_unit *texUnit; local
550 get_texenvi(struct gl_context *ctx, const struct gl_texture_unit *texUnit, GLenum pname) argument
635 const struct gl_texture_unit *texUnit; local
701 const struct gl_texture_unit *texUnit; local
[all...]
H A Dtexgen.c47 get_texgen(struct gl_context *ctx, struct gl_texture_unit *texUnit, argument
52 ? &texUnit->GenS : NULL;
57 return &texUnit->GenS;
59 return &texUnit->GenT;
61 return &texUnit->GenR;
63 return &texUnit->GenQ;
73 struct gl_texture_unit *texUnit; local
89 texUnit = _mesa_get_current_tex_unit(ctx);
91 texgen = get_texgen(ctx, texUnit, coord);
292 struct gl_texture_unit *texUnit; local
329 struct gl_texture_unit *texUnit; local
374 struct gl_texture_unit *texUnit; local
[all...]
H A Drastpos.c269 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
285 if (texUnit->TexGenEnabled & S_BIT) {
286 switch (texUnit->GenS.Mode) {
288 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane);
291 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane);
308 if (texUnit->TexGenEnabled & T_BIT) {
309 switch (texUnit->GenT.Mode) {
311 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane);
314 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane);
331 if (texUnit
[all...]
H A Dtexobj.c159 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); local
164 return texUnit->CurrentTex[TEXTURE_1D_INDEX];
168 return texUnit->CurrentTex[TEXTURE_2D_INDEX];
172 return texUnit->CurrentTex[TEXTURE_3D_INDEX];
183 ? texUnit->CurrentTex[TEXTURE_CUBE_INDEX] : NULL;
189 ? texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX] : NULL;
195 ? texUnit->CurrentTex[TEXTURE_RECT_INDEX] : NULL;
200 return arrayTex ? texUnit->CurrentTex[TEXTURE_1D_ARRAY_INDEX] : NULL;
204 return arrayTex ? texUnit->CurrentTex[TEXTURE_2D_ARRAY_INDEX] : NULL;
210 texUnit
1402 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
1608 struct gl_texture_unit *texUnit; local
1839 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[first + i]; local
[all...]
H A Denable.c222 struct gl_texture_unit *texUnit = _mesa_get_current_tex_unit(ctx); local
224 ? (texUnit->Enabled | texBit) : (texUnit->Enabled & ~texBit);
226 if (texUnit->Enabled == newenabled)
230 texUnit->Enabled = newenabled;
709 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local
714 if (texUnit) {
716 GLbitfield newenabled = texUnit->TexGenEnabled & ~coordBit;
719 if (texUnit->TexGenEnabled == newenabled)
722 texUnit
730 struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local
1198 const struct gl_texture_unit *const texUnit = local
1416 const struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local
1429 const struct gl_texture_unit *texUnit = get_texcoord_unit(ctx); local
[all...]
H A Dffvertex_prog.c243 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local
245 if (texUnit->_Current)
255 if (texUnit->TexGenEnabled) {
259 translate_texgen( texUnit->TexGenEnabled & (1<<0),
260 texUnit->GenS.Mode );
262 translate_texgen( texUnit->TexGenEnabled & (1<<1),
263 texUnit->GenT.Mode );
265 translate_texgen( texUnit->TexGenEnabled & (1<<2),
266 texUnit->GenR.Mode );
268 translate_texgen( texUnit
[all...]
H A Dcontext.c1248 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local
1249 texUnit->GenS.Mode = GL_REFLECTION_MAP_NV;
1250 texUnit->GenT.Mode = GL_REFLECTION_MAP_NV;
1251 texUnit->GenR.Mode = GL_REFLECTION_MAP_NV;
1252 texUnit->GenS._ModeBit = TEXGEN_REFLECTION_MAP_NV;
1253 texUnit->GenT._ModeBit = TEXGEN_REFLECTION_MAP_NV;
1254 texUnit->GenR._ModeBit = TEXGEN_REFLECTION_MAP_NV;
/external/mesa3d/src/mesa/tnl/
H A Dt_vb_texgen.c340 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
350 if (texUnit->_GenFlags & TEXGEN_NEED_M) {
352 } else if (texUnit->_GenFlags & TEXGEN_NEED_F) {
358 out->flags |= (in->flags & VEC_SIZE_FLAGS) | texUnit->TexGenEnabled;
361 copy = (all_bits[in->size] & ~texUnit->TexGenEnabled);
365 if (texUnit->TexGenEnabled & S_BIT) {
367 switch (texUnit->GenS.Mode) {
371 texUnit->GenS.ObjectPlane );
376 texUnit->GenS.EyePlane );
398 if (texUnit
492 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local
516 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; local
[all...]
/external/mesa3d/src/mesa/drivers/dri/radeon/
H A Dradeon_texstate.c205 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
231 if ( !texUnit->_Current ) {
238 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB;
239 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA;
240 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB;
241 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA;
248 const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR;
249 const GLuint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i];
254 if (texUnit->_Current->Image[0][0]->_BaseFormat == GL_ALPHA)
293 const GLint op = texUnit
795 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
[all...]
H A Dradeon_tex.c260 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
271 _mesa_unclamped_float_rgba_to_ubyte(c, texUnit->EnvColor);
/external/mesa3d/src/mesa/drivers/dri/r200/
H A Dr200_texstate.c219 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
246 if ( !texUnit->_Current ) {
256 const GLuint numColorArgs = texUnit->_CurrentCombine->_NumArgsRGB;
257 const GLuint numAlphaArgs = texUnit->_CurrentCombine->_NumArgsA;
258 GLuint RGBshift = texUnit->_CurrentCombine->ScaleShiftRGB;
259 GLuint Ashift = texUnit->_CurrentCombine->ScaleShiftA;
271 GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR;
272 const GLint srcRGBi = texUnit->_CurrentCombine->SourceRGB[i];
358 GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA;
359 const GLint srcAi = texUnit
773 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[j]; local
1088 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
[all...]
/external/deqp/framework/opengl/
H A DgluStrUtil.hpp61 const deUint32 texUnit; member in class:glu::detail::TextureUnitStr
62 TextureUnitStr (deUint32 texUnit_) : texUnit(texUnit_) {}
H A DgluStrUtil.cpp73 int unitNdx = unitStr.texUnit - GL_TEXTURE0;
77 return str << tcu::toHex(unitStr.texUnit);
/external/deqp/modules/glshared/
H A DglsTextureTestUtil.hpp154 void renderQuad (int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType);
155 void renderQuad (int texUnit, const float* texCoord, const glu::TextureTestUtil::RenderParams& params);
H A DglsTextureTestUtil.cpp297 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, TextureType texType) argument
299 renderQuad(texUnit, texCoord, RenderParams(texType));
302 void TextureRenderer::renderQuad (int texUnit, const float* texCoord, const RenderParams& params) argument
444 gl.uniform1i(gl.getUniformLocation(prog, "u_sampler"), texUnit);
446 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage;
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_texture.c58 GLuint texUnit, unsigned glsl_version)
66 samp = _mesa_get_samplerobj(ctx, texUnit);
68 texObj = ctx->Texture.Unit[texUnit]._Current;
128 const GLuint texUnit = prog->SamplerUnits[unit]; local
131 retval = update_single_texture(st, &sampler_view, texUnit,
56 update_single_texture(struct st_context *st, struct pipe_sampler_view **sampler_view, GLuint texUnit, unsigned glsl_version) argument
H A Dst_atom_sampler.c132 GLuint texUnit)
139 texobj = ctx->Texture.Unit[texUnit]._Current;
144 msamp = _mesa_get_samplerobj(ctx, texUnit);
161 sampler->lod_bias = ctx->Texture.Unit[texUnit].LodBias + msamp->LodBias;
269 const GLuint texUnit = prog->SamplerUnits[unit]; local
271 convert_sampler(st, sampler, texUnit);
130 convert_sampler(struct st_context *st, struct pipe_sampler_state *sampler, GLuint texUnit) argument
H A Dst_texture.h172 const GLuint texUnit = prog->SamplerUnits[unit]; local
173 struct gl_texture_object *texObj = ctx->Texture.Unit[texUnit]._Current;
/external/mesa3d/src/mesa/swrast/
H A Ds_fragprog.c116 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
117 const struct gl_texture_object *texObj = texUnit->_Current;
136 lambda += lodBias + texUnit->LodBias + samp->LodBias;
H A Ds_texcombine.c651 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
652 if (texUnit->_Current) {
655 const struct gl_texture_object *curObj = texUnit->_Current;
662 if (texUnit->LodBias + samp->LodBias != 0.0F) {
664 const GLfloat bias = CLAMP(texUnit->LodBias + samp->LodBias,
/external/deqp/external/vulkancts/modules/vulkan/texture/
H A DvktTextureTestUtil.hpp166 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType);
167 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params);
170 const int texUnit,
H A DvktTextureTestUtil.cpp939 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, TextureType texType) argument
941 renderQuad(result, texUnit, texCoord, ReferenceParams(texType));
944 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const ReferenceParams& params) argument
954 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy);
959 int texUnit,
1293 VkSamplerCreateInfo samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit]->getTestTexture().getTextureFormat(), params.minLod, params.maxLod);
1303 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(m_context.getInstanceInterface(), m_context.getPhysicalDevice(), mapTextureFormat(m_textureBindings[texUnit]->getTestTexture().getTextureFormat()));
1339 m_textureBindings[texUnit]->getImageView(), // VkImageView imageView;
1539 m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage;
957 renderQuad(tcu::Surface& result, const float* positions, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params, const float maxAnisotropy) argument
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Di830_texblend.c392 struct gl_texture_unit *texUnit = &i830->intel.ctx.Texture.Unit[unit]; local
401 tmp_sz = i830SetTexEnvCombine(i830, texUnit->_CurrentCombine, blendUnit,
402 GetTexelOp(unit), tmp, texUnit->EnvColor);
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_sampler_state.c566 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; local
567 const struct gl_texture_object *texObj = texUnit->_Current;
576 texUnit->LodBias,

Completed in 4376 milliseconds

12