Lines Matching refs:texObj
241 incomplete(struct gl_context *ctx, struct gl_texture_object *texObj) in incomplete() argument
244 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); in incomplete()
254 struct gl_texture_object *texObj, in set_tex_parameteri() argument
259 if (texObj->Sampler.MinFilter == params[0]) in set_tex_parameteri()
265 texObj->Sampler.MinFilter = params[0]; in set_tex_parameteri()
271 if (texObj->Target != GL_TEXTURE_RECTANGLE_NV && in set_tex_parameteri()
272 texObj->Target != GL_TEXTURE_EXTERNAL_OES) { in set_tex_parameteri()
274 texObj->Sampler.MinFilter = params[0]; in set_tex_parameteri()
284 if (texObj->Sampler.MagFilter == params[0]) in set_tex_parameteri()
290 texObj->Sampler.MagFilter = params[0]; in set_tex_parameteri()
298 if (texObj->Sampler.WrapS == params[0]) in set_tex_parameteri()
300 if (validate_texture_wrap_mode(ctx, texObj->Target, params[0])) { in set_tex_parameteri()
302 texObj->Sampler.WrapS = params[0]; in set_tex_parameteri()
308 if (texObj->Sampler.WrapT == params[0]) in set_tex_parameteri()
310 if (validate_texture_wrap_mode(ctx, texObj->Target, params[0])) { in set_tex_parameteri()
312 texObj->Sampler.WrapT = params[0]; in set_tex_parameteri()
318 if (texObj->Sampler.WrapR == params[0]) in set_tex_parameteri()
320 if (validate_texture_wrap_mode(ctx, texObj->Target, params[0])) { in set_tex_parameteri()
322 texObj->Sampler.WrapR = params[0]; in set_tex_parameteri()
331 if (texObj->BaseLevel == params[0]) in set_tex_parameteri()
334 (texObj->Target == GL_TEXTURE_RECTANGLE_ARB && params[0] != 0)) { in set_tex_parameteri()
339 incomplete(ctx, texObj); in set_tex_parameteri()
340 texObj->BaseLevel = params[0]; in set_tex_parameteri()
344 if (texObj->MaxLevel == params[0]) in set_tex_parameteri()
346 if (params[0] < 0 || texObj->Target == GL_TEXTURE_RECTANGLE_ARB) { in set_tex_parameteri()
351 incomplete(ctx, texObj); in set_tex_parameteri()
352 texObj->MaxLevel = params[0]; in set_tex_parameteri()
359 if (params[0] && texObj->Target == GL_TEXTURE_EXTERNAL_OES) in set_tex_parameteri()
361 if (texObj->GenerateMipmap != params[0]) { in set_tex_parameteri()
363 texObj->GenerateMipmap = params[0] ? GL_TRUE : GL_FALSE; in set_tex_parameteri()
371 if (texObj->Sampler.CompareMode == params[0]) in set_tex_parameteri()
376 texObj->Sampler.CompareMode = params[0]; in set_tex_parameteri()
386 if (texObj->Sampler.CompareFunc == params[0]) in set_tex_parameteri()
392 texObj->Sampler.CompareFunc = params[0]; in set_tex_parameteri()
402 texObj->Sampler.CompareFunc = params[0]; in set_tex_parameteri()
417 if (texObj->DepthMode == params[0]) in set_tex_parameteri()
424 texObj->DepthMode = params[0]; in set_tex_parameteri()
436 texObj->CropRect[0] = params[0]; in set_tex_parameteri()
437 texObj->CropRect[1] = params[1]; in set_tex_parameteri()
438 texObj->CropRect[2] = params[2]; in set_tex_parameteri()
439 texObj->CropRect[3] = params[3]; in set_tex_parameteri()
459 texObj->Swizzle[comp] = params[0]; in set_tex_parameteri()
460 set_swizzle_component(&texObj->_Swizzle, comp, swz); in set_tex_parameteri()
473 texObj->Swizzle[comp] = params[comp]; in set_tex_parameteri()
474 set_swizzle_component(&texObj->_Swizzle, comp, swz); in set_tex_parameteri()
491 if (texObj->Sampler.sRGBDecode != decode) { in set_tex_parameteri()
493 texObj->Sampler.sRGBDecode = decode; in set_tex_parameteri()
507 if (param != texObj->Sampler.CubeMapSeamless) { in set_tex_parameteri()
509 texObj->Sampler.CubeMapSeamless = param; in set_tex_parameteri()
537 struct gl_texture_object *texObj, in set_tex_parameterf() argument
545 if (texObj->Sampler.MinLod == params[0]) in set_tex_parameterf()
548 texObj->Sampler.MinLod = params[0]; in set_tex_parameterf()
555 if (texObj->Sampler.MaxLod == params[0]) in set_tex_parameterf()
558 texObj->Sampler.MaxLod = params[0]; in set_tex_parameterf()
566 texObj->Priority = CLAMP(params[0], 0.0F, 1.0F); in set_tex_parameterf()
571 if (texObj->Sampler.MaxAnisotropy == params[0]) in set_tex_parameterf()
579 texObj->Sampler.MaxAnisotropy = MIN2(params[0], in set_tex_parameterf()
598 if (texObj->Sampler.LodBias != params[0]) { in set_tex_parameterf()
600 texObj->Sampler.LodBias = params[0]; in set_tex_parameterf()
612 texObj->Sampler.BorderColor.f[RCOMP] = params[0]; in set_tex_parameterf()
613 texObj->Sampler.BorderColor.f[GCOMP] = params[1]; in set_tex_parameterf()
614 texObj->Sampler.BorderColor.f[BCOMP] = params[2]; in set_tex_parameterf()
615 texObj->Sampler.BorderColor.f[ACOMP] = params[3]; in set_tex_parameterf()
617 texObj->Sampler.BorderColor.f[RCOMP] = CLAMP(params[0], 0.0F, 1.0F); in set_tex_parameterf()
618 texObj->Sampler.BorderColor.f[GCOMP] = CLAMP(params[1], 0.0F, 1.0F); in set_tex_parameterf()
619 texObj->Sampler.BorderColor.f[BCOMP] = CLAMP(params[2], 0.0F, 1.0F); in set_tex_parameterf()
620 texObj->Sampler.BorderColor.f[ACOMP] = CLAMP(params[3], 0.0F, 1.0F); in set_tex_parameterf()
640 struct gl_texture_object *texObj; in _mesa_TexParameterf() local
644 texObj = get_texobj(ctx, target, GL_FALSE); in _mesa_TexParameterf()
645 if (!texObj) in _mesa_TexParameterf()
667 need_update = set_tex_parameteri(ctx, texObj, pname, p); in _mesa_TexParameterf()
678 need_update = set_tex_parameteri(ctx, texObj, pname, p); in _mesa_TexParameterf()
687 need_update = set_tex_parameterf(ctx, texObj, pname, p); in _mesa_TexParameterf()
692 ctx->Driver.TexParameter(ctx, target, texObj, pname, ¶m); in _mesa_TexParameterf()
701 struct gl_texture_object *texObj; in _mesa_TexParameterfv() local
705 texObj = get_texobj(ctx, target, GL_FALSE); in _mesa_TexParameterfv()
706 if (!texObj) in _mesa_TexParameterfv()
728 need_update = set_tex_parameteri(ctx, texObj, pname, p); in _mesa_TexParameterfv()
741 need_update = set_tex_parameteri(ctx, texObj, pname, iparams); in _mesa_TexParameterfv()
759 need_update = set_tex_parameteri(ctx, texObj, pname, p); in _mesa_TexParameterfv()
764 need_update = set_tex_parameterf(ctx, texObj, pname, params); in _mesa_TexParameterfv()
768 ctx->Driver.TexParameter(ctx, target, texObj, pname, params); in _mesa_TexParameterfv()
777 struct gl_texture_object *texObj; in _mesa_TexParameteri() local
781 texObj = get_texobj(ctx, target, GL_FALSE); in _mesa_TexParameteri()
782 if (!texObj) in _mesa_TexParameteri()
797 need_update = set_tex_parameterf(ctx, texObj, pname, fparam); in _mesa_TexParameteri()
806 need_update = set_tex_parameteri(ctx, texObj, pname, iparam); in _mesa_TexParameteri()
812 ctx->Driver.TexParameter(ctx, target, texObj, pname, &fparam); in _mesa_TexParameteri()
821 struct gl_texture_object *texObj; in _mesa_TexParameteriv() local
825 texObj = get_texobj(ctx, target, GL_FALSE); in _mesa_TexParameteriv()
826 if (!texObj) in _mesa_TexParameteriv()
838 need_update = set_tex_parameterf(ctx, texObj, pname, fparams); in _mesa_TexParameteriv()
852 need_update = set_tex_parameterf(ctx, texObj, pname, fparams); in _mesa_TexParameteriv()
857 need_update = set_tex_parameteri(ctx, texObj, pname, params); in _mesa_TexParameteriv()
869 ctx->Driver.TexParameter(ctx, target, texObj, pname, fparams); in _mesa_TexParameteriv()
882 struct gl_texture_object *texObj; in _mesa_TexParameterIiv() local
886 texObj = get_texobj(ctx, target, GL_FALSE); in _mesa_TexParameterIiv()
887 if (!texObj) in _mesa_TexParameterIiv()
894 COPY_4V(texObj->Sampler.BorderColor.i, params); in _mesa_TexParameterIiv()
912 struct gl_texture_object *texObj; in _mesa_TexParameterIuiv() local
916 texObj = get_texobj(ctx, target, GL_FALSE); in _mesa_TexParameterIuiv()
917 if (!texObj) in _mesa_TexParameterIuiv()
924 COPY_4V(texObj->Sampler.BorderColor.ui, params); in _mesa_TexParameterIuiv()
989 const struct gl_texture_object *texObj, in get_tex_level_parameter_image() argument
996 img = _mesa_select_tex_image(ctx, texObj, target, level); in get_tex_level_parameter_image()
1136 const struct gl_texture_object *texObj, in get_tex_level_parameter_buffer() argument
1139 const struct gl_buffer_object *bo = texObj->BufferObject; in get_tex_level_parameter_buffer()
1140 gl_format texFormat = texObj->_BufferObjectFormat; in get_tex_level_parameter_buffer()
1141 GLenum internalFormat = texObj->BufferObjectFormat; in get_tex_level_parameter_buffer()
1248 struct gl_texture_object *texObj; in _mesa_GetTexLevelParameteriv() local
1275 texObj = _mesa_select_tex_object(ctx, texUnit, target); in _mesa_GetTexLevelParameteriv()
1278 get_tex_level_parameter_buffer(ctx, texObj, pname, params); in _mesa_GetTexLevelParameteriv()
1280 get_tex_level_parameter_image(ctx, texObj, target, level, pname, params); in _mesa_GetTexLevelParameteriv()
1655 struct gl_texture_object *texObj; in _mesa_GetTexParameterIiv() local
1659 texObj = get_texobj(ctx, target, GL_TRUE); in _mesa_GetTexParameterIiv()
1660 if (!texObj) in _mesa_GetTexParameterIiv()
1665 COPY_4V(params, texObj->Sampler.BorderColor.i); in _mesa_GetTexParameterIiv()
1677 struct gl_texture_object *texObj; in _mesa_GetTexParameterIuiv() local
1681 texObj = get_texobj(ctx, target, GL_TRUE); in _mesa_GetTexParameterIuiv()
1682 if (!texObj) in _mesa_GetTexParameterIuiv()
1687 COPY_4V(params, texObj->Sampler.BorderColor.i); in _mesa_GetTexParameterIuiv()