Lines Matching refs:texObj
157 struct gl_texture_object *texObj;
159 texObj = _mesa_lookup_texture_err(ctx, texture, name);
160 if (!texObj)
163 if (!is_texparameteri_target_valid(texObj->Target)) {
168 return texObj;
230 incomplete(struct gl_context *ctx, struct gl_texture_object *texObj)
233 _mesa_dirty_texobj(ctx, texObj);
257 struct gl_texture_object *texObj,
262 if (texObj->HandleAllocated) {
277 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
280 if (texObj->Sampler.Attrib.MinFilter == params[0])
286 texObj->Sampler.Attrib.MinFilter = params[0];
287 texObj->Sampler.Attrib.state.min_img_filter = filter_to_gallium(params[0]);
288 texObj->Sampler.Attrib.state.min_mip_filter = mipfilter_to_gallium(params[0]);
289 _mesa_lower_gl_clamp(ctx, &texObj->Sampler);
295 if (texObj->Target != GL_TEXTURE_RECTANGLE_NV &&
296 texObj->Target != GL_TEXTURE_EXTERNAL_OES) {
298 texObj->Sampler.Attrib.MinFilter = params[0];
299 texObj->Sampler.Attrib.state.min_img_filter = filter_to_gallium(params[0]);
300 texObj->Sampler.Attrib.state.min_mip_filter = mipfilter_to_gallium(params[0]);
301 _mesa_lower_gl_clamp(ctx, &texObj->Sampler);
311 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
314 if (texObj->Sampler.Attrib.MagFilter == params[0])
320 texObj->Sampler.Attrib.MagFilter = params[0];
321 texObj->Sampler.Attrib.state.mag_img_filter = filter_to_gallium(params[0]);
322 _mesa_lower_gl_clamp(ctx, &texObj->Sampler);
330 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
333 if (texObj->Sampler.Attrib.WrapS == params[0])
335 if (validate_texture_wrap_mode(ctx, texObj->Target, params[0])) {
337 update_sampler_gl_clamp(ctx, &texObj->Sampler, is_wrap_gl_clamp(texObj->Sampler.Attrib.WrapS), is_wrap_gl_clamp(params[0]), WRAP_S);
338 texObj->Sampler.Attrib.WrapS = params[0];
339 texObj->Sampler.Attrib.state.wrap_s = wrap_to_gallium(params[0]);
340 _mesa_lower_gl_clamp(ctx, &texObj->Sampler);
346 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
349 if (texObj->Sampler.Attrib.WrapT == params[0])
351 if (validate_texture_wrap_mode(ctx, texObj->Target, params[0])) {
353 update_sampler_gl_clamp(ctx, &texObj->Sampler, is_wrap_gl_clamp(texObj->Sampler.Attrib.WrapT), is_wrap_gl_clamp(params[0]), WRAP_T);
354 texObj->Sampler.Attrib.WrapT = params[0];
355 texObj->Sampler.Attrib.state.wrap_t = wrap_to_gallium(params[0]);
356 _mesa_lower_gl_clamp(ctx, &texObj->Sampler);
362 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
365 if (texObj->Sampler.Attrib.WrapR == params[0])
367 if (validate_texture_wrap_mode(ctx, texObj->Target, params[0])) {
369 update_sampler_gl_clamp(ctx, &texObj->Sampler, is_wrap_gl_clamp(texObj->Sampler.Attrib.WrapR), is_wrap_gl_clamp(params[0]), WRAP_R);
370 texObj->Sampler.Attrib.WrapR = params[0];
371 texObj->Sampler.Attrib.state.wrap_r = wrap_to_gallium(params[0]);
372 _mesa_lower_gl_clamp(ctx, &texObj->Sampler);
381 if (texObj->Attrib.BaseLevel == params[0])
401 if ((texObj->Target == GL_TEXTURE_2D_MULTISAMPLE ||
402 texObj->Target == GL_TEXTURE_2D_MULTISAMPLE_ARRAY ||
403 texObj->Target == GL_TEXTURE_RECTANGLE) && params[0] != 0)
411 incomplete(ctx, texObj);
414 if (texObj->Immutable)
415 texObj->Attrib.BaseLevel = MIN2(texObj->Attrib.ImmutableLevels - 1, params[0]);
417 texObj->Attrib.BaseLevel = params[0];
422 if (texObj->Attrib.MaxLevel == params[0])
426 (texObj->Target == GL_TEXTURE_RECTANGLE_ARB && params[0] > 0)) {
432 incomplete(ctx, texObj);
440 if (texObj->Immutable)
441 texObj->Attrib.MaxLevel = CLAMP(params[0], texObj->Attrib.BaseLevel,
442 texObj->Attrib.ImmutableLevels - 1);
444 texObj->Attrib.MaxLevel = params[0];
452 if (params[0] && texObj->Target == GL_TEXTURE_EXTERNAL_OES)
454 if (texObj->Attrib.GenerateMipmap != params[0]) {
456 texObj->Attrib.GenerateMipmap = params[0] ? GL_TRUE : GL_FALSE;
465 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
468 if (texObj->Sampler.Attrib.CompareMode == params[0])
473 texObj->Sampler.Attrib.CompareMode = params[0];
484 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
487 if (texObj->Sampler.Attrib.CompareFunc == params[0])
499 texObj->Sampler.Attrib.CompareFunc = params[0];
500 texObj->Sampler.Attrib.state.compare_func = func_to_gallium(params[0]);
513 if (texObj->Attrib.DepthMode == params[0])
520 texObj->Attrib.DepthMode = params[0];
533 if (texObj->StencilSampling == stencil)
538 texObj->StencilSampling = stencil;
547 texObj->CropRect[0] = params[0];
548 texObj->CropRect[1] = params[1];
549 texObj->CropRect[2] = params[2];
550 texObj->CropRect[3] = params[3];
569 texObj->Attrib.Swizzle[comp] = params[0];
570 set_swizzle_component(&texObj->Attrib._Swizzle, comp, swz);
583 texObj->Attrib.Swizzle[comp] = params[comp];
584 set_swizzle_component(&texObj->Attrib._Swizzle, comp, swz);
601 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
605 if (texObj->Sampler.Attrib.sRGBDecode != decode) {
607 texObj->Sampler.Attrib.sRGBDecode = decode;
619 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
623 if (texObj->Sampler.Attrib.ReductionMode != mode) {
625 texObj->Sampler.Attrib.ReductionMode = mode;
626 texObj->Sampler.Attrib.state.reduction_mode = reduction_to_gallium(mode);
638 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
644 if (param != texObj->Sampler.Attrib.CubeMapSeamless) {
646 texObj->Sampler.Attrib.CubeMapSeamless = param;
647 texObj->Sampler.Attrib.state.seamless_cube_map = param;
654 if (ctx->Extensions.EXT_memory_object && !texObj->Immutable) {
655 texObj->TextureTiling = params[0];
666 if (texObj->Immutable)
681 texObj->Target != GL_TEXTURE_2D &&
682 texObj->Target != GL_TEXTURE_2D_ARRAY &&
683 texObj->Target != GL_TEXTURE_CUBE_MAP &&
684 texObj->Target != GL_TEXTURE_CUBE_MAP_ARRAY &&
685 texObj->Target != GL_TEXTURE_3D &&
686 texObj->Target != GL_TEXTURE_RECTANGLE &&
688 (texObj->Target != GL_TEXTURE_2D_MULTISAMPLE &&
689 texObj->Target != GL_TEXTURE_2D_MULTISAMPLE_ARRAY))) {
691 "glTex%sParameter(target=%d)", suffix, texObj->Target);
695 texObj->IsSparse = !!params[0];
697 texObj->VirtualPageSizeIndex = params[0];
737 struct gl_texture_object *texObj,
742 if (texObj->HandleAllocated) {
760 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
763 if (texObj->Sampler.Attrib.MinLod == params[0])
766 texObj->Sampler.Attrib.MinLod = params[0];
767 texObj->Sampler.Attrib.state.min_lod = MAX2(params[0], 0.0f); /* only positive vals */
774 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
777 if (texObj->Sampler.Attrib.MaxLod == params[0])
780 texObj->Sampler.Attrib.MaxLod = params[0];
781 texObj->Sampler.Attrib.state.max_lod = params[0];
789 texObj->Attrib.Priority = CLAMP(params[0], 0.0F, 1.0F);
794 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
797 if (texObj->Sampler.Attrib.MaxAnisotropy == params[0])
806 texObj->Sampler.Attrib.MaxAnisotropy = MIN2(params[0],
808 texObj->Sampler.Attrib.state.max_anisotropy =
809 texObj->Sampler.Attrib.MaxAnisotropy == 1 ?
810 0 : texObj->Sampler.Attrib.MaxAnisotropy; /* gallium sets 0 for 1 */
825 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
828 if (texObj->Sampler.Attrib.LodBias != params[0]) {
830 texObj->Sampler.Attrib.LodBias = params[0];
831 texObj->Sampler.Attrib.state.lod_bias = util_quantize_lod_bias(params[0]);
844 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target))
850 memcpy(texObj->Sampler.Attrib.state.border_color.f, params, 4 * sizeof(float));
852 texObj->Sampler.Attrib.state.border_color.f[RCOMP] = CLAMP(params[0], 0.0F, 1.0F);
853 texObj->Sampler.Attrib.state.border_color.f[GCOMP] = CLAMP(params[1], 0.0F, 1.0F);
854 texObj->Sampler.Attrib.state.border_color.f[BCOMP] = CLAMP(params[2], 0.0F, 1.0F);
855 texObj->Sampler.Attrib.state.border_color.f[ACOMP] = CLAMP(params[3], 0.0F, 1.0F);
857 _mesa_update_is_border_color_nonzero(&texObj->Sampler);
862 texObj->TextureTiling = params[0];
918 struct gl_texture_object *texObj,
922 st_texture_release_all_sampler_views(st_context(ctx), texObj);
927 struct gl_texture_object *texObj,
961 need_update = set_tex_parameteri(ctx, texObj, pname, p, dsa);
975 need_update = set_tex_parameterf(ctx, texObj, pname, p, dsa);
980 _mesa_texture_parameter_invalidate(ctx, texObj, pname);
987 struct gl_texture_object *texObj,
1014 need_update = set_tex_parameteri(ctx, texObj, pname, p, dsa);
1025 need_update = set_tex_parameteri(ctx, texObj, pname, iparams, dsa);
1041 need_update = set_tex_parameteri(ctx, texObj, pname, p, dsa);
1046 need_update = set_tex_parameterf(ctx, texObj, pname, params, dsa);
1050 _mesa_texture_parameter_invalidate(ctx, texObj, pname);
1057 struct gl_texture_object *texObj,
1072 need_update = set_tex_parameterf(ctx, texObj, pname, fparam, dsa);
1089 need_update = set_tex_parameteri(ctx, texObj, pname, iparam, dsa);
1094 _mesa_texture_parameter_invalidate(ctx, texObj, pname);
1101 struct gl_texture_object *texObj,
1115 need_update = set_tex_parameterf(ctx, texObj, pname, fparams, dsa);
1128 need_update = set_tex_parameterf(ctx, texObj, pname, fparams, dsa);
1133 need_update = set_tex_parameteri(ctx, texObj, pname, params, dsa);
1137 _mesa_texture_parameter_invalidate(ctx, texObj, pname);
1143 struct gl_texture_object *texObj,
1148 if (texObj->HandleAllocated) {
1154 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target)) {
1160 COPY_4V(texObj->Sampler.Attrib.state.border_color.i, params);
1161 _mesa_update_is_border_color_nonzero(&texObj->Sampler);
1164 _mesa_texture_parameteriv(ctx, texObj, pname, params, dsa);
1172 struct gl_texture_object *texObj,
1177 if (texObj->HandleAllocated) {
1183 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target)) {
1189 COPY_4V(texObj->Sampler.Attrib.state.border_color.ui, params);
1190 _mesa_update_is_border_color_nonzero(&texObj->Sampler);
1193 _mesa_texture_parameteriv(ctx, texObj, pname, (const GLint *) params,
1203 struct gl_texture_object *texObj;
1206 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1210 if (!texObj)
1213 _mesa_texture_parameterf(ctx, texObj, pname, param, false);
1219 struct gl_texture_object *texObj;
1222 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1226 if (!texObj)
1229 _mesa_texture_parameterfv(ctx, texObj, pname, params, false);
1235 struct gl_texture_object *texObj;
1238 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1242 if (!texObj)
1245 _mesa_texture_parameteri(ctx, texObj, pname, param, false);
1251 struct gl_texture_object *texObj;
1254 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1258 if (!texObj)
1261 _mesa_texture_parameteriv(ctx, texObj, pname, params, false);
1272 struct gl_texture_object *texObj;
1275 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1279 if (!texObj)
1282 _mesa_texture_parameterIiv(ctx, texObj, pname, params, false);
1293 struct gl_texture_object *texObj;
1296 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1300 if (!texObj)
1303 _mesa_texture_parameterIuiv(ctx, texObj, pname, params, false);
1309 struct gl_texture_object *texObj;
1312 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
1314 if (!texObj)
1317 if (!is_texparameteri_target_valid(texObj->Target)) {
1322 _mesa_texture_parameterfv(ctx, texObj, pname, params, true);
1328 struct gl_texture_object *texObj;
1331 texObj = get_texobj_by_name(ctx, texture, "glTextureParameterfv");
1332 if (!texObj)
1335 _mesa_texture_parameterfv(ctx, texObj, pname, params, true);
1341 struct gl_texture_object *texObj;
1344 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1348 if (!texObj)
1351 if (!is_texparameteri_target_valid(texObj->Target)) {
1356 _mesa_texture_parameterfv(ctx, texObj, pname, params, true);
1362 struct gl_texture_object *texObj;
1365 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
1367 if (!texObj)
1370 if (!is_texparameteri_target_valid(texObj->Target)) {
1375 _mesa_texture_parameterf(ctx, texObj, pname, param, true);
1382 struct gl_texture_object *texObj;
1385 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1389 if (!texObj)
1392 if (!is_texparameteri_target_valid(texObj->Target)) {
1397 _mesa_texture_parameterf(ctx, texObj, pname, param, true);
1403 struct gl_texture_object *texObj;
1406 texObj = get_texobj_by_name(ctx, texture, "glTextureParameterf");
1407 if (!texObj)
1410 _mesa_texture_parameterf(ctx, texObj, pname, param, true);
1416 struct gl_texture_object *texObj;
1419 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
1421 if (!texObj)
1424 if (!is_texparameteri_target_valid(texObj->Target)) {
1429 _mesa_texture_parameteri(ctx, texObj, pname, param, true);
1436 struct gl_texture_object *texObj;
1439 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1443 if (!texObj)
1446 if (!is_texparameteri_target_valid(texObj->Target)) {
1451 _mesa_texture_parameteri(ctx, texObj, pname, param, true);
1457 struct gl_texture_object *texObj;
1460 texObj = get_texobj_by_name(ctx, texture, "glTextureParameteri");
1461 if (!texObj)
1464 _mesa_texture_parameteri(ctx, texObj, pname, param, true);
1471 struct gl_texture_object *texObj;
1474 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
1476 if (!texObj)
1479 if (!is_texparameteri_target_valid(texObj->Target)) {
1484 _mesa_texture_parameteriv(ctx, texObj, pname, params, true);
1491 struct gl_texture_object *texObj;
1494 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1498 if (!texObj)
1501 if (!is_texparameteri_target_valid(texObj->Target)) {
1506 _mesa_texture_parameteriv(ctx, texObj, pname, params, true);
1513 struct gl_texture_object *texObj;
1516 texObj = get_texobj_by_name(ctx, texture, "glTextureParameteriv");
1517 if (!texObj)
1520 _mesa_texture_parameteriv(ctx, texObj, pname, params, true);
1527 struct gl_texture_object *texObj;
1530 texObj = get_texobj_by_name(ctx, texture, "glTextureParameterIiv");
1531 if (!texObj)
1534 _mesa_texture_parameterIiv(ctx, texObj, pname, params, true);
1541 struct gl_texture_object *texObj;
1544 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
1546 if (!texObj)
1549 _mesa_texture_parameterIiv(ctx, texObj, pname, params, true);
1556 struct gl_texture_object *texObj;
1559 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1563 if (!texObj)
1566 _mesa_texture_parameterIiv(ctx, texObj, pname, params, true);
1572 struct gl_texture_object *texObj;
1575 texObj = get_texobj_by_name(ctx, texture, "glTextureParameterIuiv");
1576 if (!texObj)
1579 _mesa_texture_parameterIuiv(ctx, texObj, pname, params, true);
1586 struct gl_texture_object *texObj;
1589 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
1591 if (!texObj)
1594 _mesa_texture_parameterIuiv(ctx, texObj, pname, params, true);
1601 struct gl_texture_object *texObj;
1604 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
1608 if (!texObj)
1611 _mesa_texture_parameterIuiv(ctx, texObj, pname, params, true);
1704 const struct gl_texture_object *texObj,
1714 img = _mesa_select_tex_image(texObj, target, level);
1908 const struct gl_texture_object *texObj,
1911 const struct gl_buffer_object *bo = texObj->BufferObject;
1912 mesa_format texFormat = texObj->_BufferObjectFormat;
1914 GLenum internalFormat = texObj->BufferObjectFormat;
1918 assert(texObj->Target == GL_TEXTURE_BUFFER);
1941 *params = ((texObj->BufferSize == -1) ? bo->Size : texObj->BufferSize)
1989 *params = texObj->BufferOffset;
1994 *params = (texObj->BufferSize == -1) ? bo->Size : texObj->BufferSize;
2067 struct gl_texture_object *texObj,
2094 get_tex_level_parameter_buffer(ctx, texObj, pname, params, dsa);
2097 get_tex_level_parameter_image(ctx, texObj, target,
2106 struct gl_texture_object *texObj;
2113 texObj = _mesa_get_current_tex_object(ctx, target);
2114 if (!texObj)
2117 get_tex_level_parameteriv(ctx, texObj, target, level,
2127 struct gl_texture_object *texObj;
2133 texObj = _mesa_get_current_tex_object(ctx, target);
2134 if (!texObj)
2137 get_tex_level_parameteriv(ctx, texObj, target, level,
2145 struct gl_texture_object *texObj;
2149 texObj = _mesa_lookup_texture_err(ctx, texture,
2151 if (!texObj)
2154 if (!valid_tex_level_parameteriv_target(ctx, texObj->Target, true))
2157 get_tex_level_parameteriv(ctx, texObj, texObj->Target, level,
2167 struct gl_texture_object *texObj;
2171 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
2173 if (!texObj)
2176 if (!valid_tex_level_parameteriv_target(ctx, texObj->Target, true))
2179 get_tex_level_parameteriv(ctx, texObj, texObj->Target, level,
2189 struct gl_texture_object *texObj;
2193 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
2197 if (!texObj)
2200 if (!valid_tex_level_parameteriv_target(ctx, texObj->Target, true))
2203 get_tex_level_parameteriv(ctx, texObj, texObj->Target, level,
2213 struct gl_texture_object *texObj;
2216 texObj = _mesa_lookup_texture_err(ctx, texture,
2218 if (!texObj)
2221 if (!valid_tex_level_parameteriv_target(ctx, texObj->Target, true))
2224 get_tex_level_parameteriv(ctx, texObj, texObj->Target, level,
2232 struct gl_texture_object *texObj;
2235 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
2237 if (!texObj)
2240 if (!valid_tex_level_parameteriv_target(ctx, texObj->Target, true))
2243 get_tex_level_parameteriv(ctx, texObj, texObj->Target, level,
2251 struct gl_texture_object *texObj;
2254 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
2258 if (!texObj)
2261 if (!valid_tex_level_parameteriv_target(ctx, texObj->Target, true))
2264 get_tex_level_parameteriv(ctx, texObj, texObj->Target, level,
2876 struct gl_texture_object *texObj;
2879 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
2883 if (!texObj)
2886 get_tex_parameterIiv(ctx, texObj, pname, params, false);
2894 struct gl_texture_object *texObj;
2897 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
2901 if (!texObj)
2904 get_tex_parameterIiv(ctx, texObj, pname, (GLint *) params, false);
2910 struct gl_texture_object *texObj;
2913 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
2915 if (!texObj)
2918 if (!is_texparameteri_target_valid(texObj->Target)) {
2923 get_tex_parameterfv(ctx, texObj, pname, params, true);
2929 struct gl_texture_object *texObj;
2932 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
2936 if (!texObj)
2939 if (!is_texparameteri_target_valid(texObj->Target)) {
2943 get_tex_parameterfv(ctx, texObj, pname, params, true);
2962 struct gl_texture_object *texObj;
2965 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
2967 if (!texObj)
2970 if (!is_texparameteri_target_valid(texObj->Target)) {
2974 get_tex_parameteriv(ctx, texObj, pname, params, true);
2980 struct gl_texture_object *texObj;
2983 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
2987 if (!texObj)
2990 if (!is_texparameteri_target_valid(texObj->Target)) {
2994 get_tex_parameteriv(ctx, texObj, pname, params, true);
3013 struct gl_texture_object *texObj;
3016 texObj = get_texobj_by_name(ctx, texture, "glGetTextureParameterIiv");
3017 if (!texObj)
3020 get_tex_parameterIiv(ctx, texObj, pname, params, true);
3026 struct gl_texture_object *texObj;
3029 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
3031 if (!texObj)
3035 get_tex_parameterIiv(ctx, texObj, pname, params, true);
3042 struct gl_texture_object *texObj;
3045 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
3049 if (!texObj)
3052 get_tex_parameterIiv(ctx, texObj, pname, params, true);
3058 struct gl_texture_object *texObj;
3061 texObj = get_texobj_by_name(ctx, texture, "glGetTextureParameterIuiv");
3062 if (!texObj)
3065 get_tex_parameterIiv(ctx, texObj, pname, (GLint *) params, true);
3072 struct gl_texture_object *texObj;
3075 texObj = _mesa_lookup_or_create_texture(ctx, target, texture, false, true,
3077 if (!texObj)
3080 get_tex_parameterIiv(ctx, texObj, pname, (GLint *) params, true);
3087 struct gl_texture_object *texObj;
3090 texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target,
3094 if (!texObj)
3097 get_tex_parameterIiv(ctx, texObj, pname, (GLint *) params, true);