/third_party/mesa3d/src/mesa/main/ |
H A 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 in _mesa_print_texunit_state() 296 const GLuint texUnit = texture - GL_TEXTURE0; active_texture() local 359 GLuint texUnit = texture - GL_TEXTURE0; _mesa_ClientActiveTexture() local 492 pack_tex_combine(struct gl_fixedfunc_texture_unit *texUnit) pack_tex_combine() argument 524 update_tex_combine(struct gl_context *ctx, struct gl_texture_unit *texUnit, struct gl_fixedfunc_texture_unit *fftexUnit) update_tex_combine() argument 625 struct gl_fixedfunc_texture_unit *texUnit = update_texgen() local 662 struct gl_texture_unit *texUnit; update_single_program_texture() local 783 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; update_ff_texture_state() local 1053 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[u]; _mesa_init_texture() local 1066 struct gl_fixedfunc_texture_unit *texUnit = _mesa_init_texture() local 1159 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[u]; _mesa_update_default_objects_texture() local [all...] |
H A D | texenv.c | 51 struct gl_fixedfunc_texture_unit *texUnit, in set_env_mode() 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() 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 in set_env_color() 50 set_env_mode(struct gl_context *ctx, struct gl_fixedfunc_texture_unit *texUnit, GLenum mode) set_env_mode() argument 90 set_env_color(struct gl_context *ctx, struct gl_fixedfunc_texture_unit *texUnit, const GLfloat *color) set_env_color() argument 107 set_combiner_mode(struct gl_context *ctx, struct gl_fixedfunc_texture_unit *texUnit, GLenum pname, GLenum mode) set_combiner_mode() argument 173 set_combiner_source(struct gl_context *ctx, struct gl_fixedfunc_texture_unit *texUnit, GLenum pname, GLenum param) set_combiner_source() argument 264 set_combiner_operand(struct gl_context *ctx, struct gl_fixedfunc_texture_unit *texUnit, GLenum pname, GLenum param) set_combiner_operand() argument 334 set_combiner_scale(struct gl_context *ctx, struct gl_fixedfunc_texture_unit *texUnit, GLenum pname, GLfloat scale) set_combiner_scale() argument 392 struct gl_fixedfunc_texture_unit *texUnit = _mesa_texenvfv_indexed() local 449 struct gl_texture_unit *texUnit = _mesa_texenvfv_indexed() local 616 get_texenvi(struct gl_context *ctx, const struct gl_fixedfunc_texture_unit *texUnit, GLenum pname) get_texenvi() argument 711 struct gl_fixedfunc_texture_unit *texUnit = _mesa_gettexenvfv_indexed() local 737 const struct gl_texture_unit *texUnit = _mesa_get_tex_unit(ctx, texunit); _mesa_gettexenvfv_indexed() local 787 struct gl_fixedfunc_texture_unit *texUnit = _mesa_gettexenviv_indexed() local 813 const struct gl_texture_unit *texUnit = _mesa_get_tex_unit(ctx, texunit); _mesa_gettexenviv_indexed() local [all...] |
H A 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 in compute_texgen() [all...] |
H A 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 in _mesa_get_current_tex_object() 240 struct gl_texture_unit *texUnit; _mesa_get_texobj_by_target_and_texunit() local 1413 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; unbind_textures_from_unit() local 1591 struct gl_texture_unit *texUnit; bind_texture_object() local 1901 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[first + i]; bind_textures() local [all...] |
H A 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 in _mesa_set_enable() 936 struct gl_fixedfunc_texture_unit *texUnit = get_texcoord_unit(ctx); _mesa_set_enable() local 1515 const struct gl_fixedfunc_texture_unit *const texUnit = is_texture_enabled() local 1737 const struct gl_fixedfunc_texture_unit *texUnit = _mesa_IsEnabled() local 1751 const struct gl_fixedfunc_texture_unit *texUnit = _mesa_IsEnabled() local [all...] |
H A 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()
|
H A 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()
|
H A 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 in make_state_key() [all...] |
H A 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()
|
H A 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/ |
H A 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,
|
H A D | st_atom_sampler.c | 154 GLuint texUnit) in st_convert_sampler_from_unit() 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() 152 st_convert_sampler_from_unit(const struct st_context *st, struct pipe_sampler_state *sampler, GLuint texUnit) st_convert_sampler_from_unit() argument
|
H A D | st_atom_texture.c | 60 GLuint texUnit, bool glsl130_or_later, in st_update_single_texture() 66 texObj = ctx->Texture.Unit[texUnit]._Current; in st_update_single_texture() 82 _mesa_get_samplerobj(ctx, texUnit), in st_update_single_texture() 59 st_update_single_texture(struct st_context *st, GLuint texUnit, bool glsl130_or_later, bool ignore_srgb_decode, bool get_reference) st_update_single_texture() argument
|
H A D | st_texture.c | 513 struct gl_program *prog, GLuint texUnit) in st_create_texture_handle_from_unit() 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() 512 st_create_texture_handle_from_unit(struct st_context *st, struct gl_program *prog, GLuint texUnit) st_create_texture_handle_from_unit() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
H A D | vktTextureTestUtil.hpp | 215 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType); 216 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params); 219 const int texUnit, 224 void renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params); 227 const int texUnit,
|
H A D | vktTextureTestUtil.cpp | 1151 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, TextureType texType) in renderQuad() argument 1153 renderQuad(result, texUnit, texCoord, ReferenceParams(texType)); in renderQuad() 1156 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const ReferenceParams& params) in renderQuad() argument 1158 renderQuad(result.getAccess(), texUnit, texCoord, params); in renderQuad() 1161 void TextureRenderer::renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* texCoord, const ReferenceParams& params) in renderQuad() argument 1171 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1176 int texUnit, in renderQuad() 1181 renderQuad(result.getAccess(), positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1186 int texUnit, in renderQuad() 1430 VkSamplerCreateInfo samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit] in renderQuad() 1174 renderQuad(tcu::Surface& result, const float* positions, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params, const float maxAnisotropy) renderQuad() argument 1184 renderQuad(const tcu::PixelBufferAccess& result, const float* positions, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params, const float maxAnisotropy) renderQuad() argument [all...] |
/third_party/vk-gl-cts/modules/glshared/ |
H A 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()
|
H A D | glsTextureTestUtil.hpp | 155 void renderQuad (int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType); 156 void renderQuad (int texUnit, const float* texCoord, const glu::TextureTestUtil::RenderParams& params);
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktTextureTestUtil.hpp | 215 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, glu::TextureTestUtil::TextureType texType); 216 void renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params); 219 const int texUnit, 224 void renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params); 227 const int texUnit,
|
H A D | vktTextureTestUtil.cpp | 1184 void TextureRenderer::renderQuad (tcu::Surface& result, int texUnit, const float* texCoord, TextureType texType) 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 ReferenceParams& params) in renderQuad() argument 1191 renderQuad(result.getAccess(), texUnit, texCoord, params); in renderQuad() 1194 void TextureRenderer::renderQuad (const tcu::PixelBufferAccess& result, int texUnit, const float* texCoord, const ReferenceParams& params) in renderQuad() argument 1204 renderQuad(result, positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1209 int texUnit, in renderQuad() 1214 renderQuad(result.getAccess(), positions, texUnit, texCoord, params, maxAnisotropy); in renderQuad() 1219 int texUnit, in renderQuad() 1463 VkSamplerCreateInfo samplerCreateInfo = mapSampler(params.sampler, m_textureBindings[texUnit] in renderQuad() 1207 renderQuad(tcu::Surface& result, const float* positions, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params, const float maxAnisotropy) renderQuad() argument 1217 renderQuad(const tcu::PixelBufferAccess& result, const float* positions, int texUnit, const float* texCoord, const glu::TextureTestUtil::ReferenceParams& params, const float maxAnisotropy) renderQuad() argument [all...] |
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluStrUtil.cpp | 73 int unitNdx = unitStr.texUnit - GL_TEXTURE0; in operator <<() 77 return str << tcu::toHex(unitStr.texUnit); in operator <<()
|
H A D | gluStrUtil.hpp | 61 const deUint32 texUnit; member in glu::detail::TextureUnitStr 62 TextureUnitStr (deUint32 texUnit_) : texUnit(texUnit_) {} in TextureUnitStr()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A 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()
|