• Home
  • Raw
  • Download

Lines Matching refs:Sampler

282       if (texObj->Sampler.Attrib.MinFilter == params[0])  in set_tex_parameteri()
288 texObj->Sampler.Attrib.MinFilter = params[0]; in set_tex_parameteri()
289 texObj->Sampler.Attrib.state.min_img_filter = filter_to_gallium(params[0]); in set_tex_parameteri()
290 texObj->Sampler.Attrib.state.min_mip_filter = mipfilter_to_gallium(params[0]); in set_tex_parameteri()
291 _mesa_lower_gl_clamp(ctx, &texObj->Sampler); in set_tex_parameteri()
300 texObj->Sampler.Attrib.MinFilter = params[0]; in set_tex_parameteri()
301 texObj->Sampler.Attrib.state.min_img_filter = filter_to_gallium(params[0]); in set_tex_parameteri()
302 texObj->Sampler.Attrib.state.min_mip_filter = mipfilter_to_gallium(params[0]); in set_tex_parameteri()
303 _mesa_lower_gl_clamp(ctx, &texObj->Sampler); in set_tex_parameteri()
316 if (texObj->Sampler.Attrib.MagFilter == params[0]) in set_tex_parameteri()
322 texObj->Sampler.Attrib.MagFilter = params[0]; in set_tex_parameteri()
323 texObj->Sampler.Attrib.state.mag_img_filter = filter_to_gallium(params[0]); in set_tex_parameteri()
324 _mesa_lower_gl_clamp(ctx, &texObj->Sampler); in set_tex_parameteri()
335 if (texObj->Sampler.Attrib.WrapS == params[0]) in set_tex_parameteri()
339 if (is_wrap_gl_clamp(texObj->Sampler.Attrib.WrapS) != is_wrap_gl_clamp(params[0])) in set_tex_parameteri()
341 texObj->Sampler.Attrib.WrapS = params[0]; in set_tex_parameteri()
342 texObj->Sampler.Attrib.state.wrap_s = wrap_to_gallium(params[0]); in set_tex_parameteri()
343 _mesa_lower_gl_clamp(ctx, &texObj->Sampler); in set_tex_parameteri()
352 if (texObj->Sampler.Attrib.WrapT == params[0]) in set_tex_parameteri()
356 if (is_wrap_gl_clamp(texObj->Sampler.Attrib.WrapT) != is_wrap_gl_clamp(params[0])) in set_tex_parameteri()
358 texObj->Sampler.Attrib.WrapT = params[0]; in set_tex_parameteri()
359 texObj->Sampler.Attrib.state.wrap_t = wrap_to_gallium(params[0]); in set_tex_parameteri()
360 _mesa_lower_gl_clamp(ctx, &texObj->Sampler); in set_tex_parameteri()
369 if (texObj->Sampler.Attrib.WrapR == params[0]) in set_tex_parameteri()
373 if (is_wrap_gl_clamp(texObj->Sampler.Attrib.WrapR) != is_wrap_gl_clamp(params[0])) in set_tex_parameteri()
375 texObj->Sampler.Attrib.WrapR = params[0]; in set_tex_parameteri()
376 texObj->Sampler.Attrib.state.wrap_r = wrap_to_gallium(params[0]); in set_tex_parameteri()
377 _mesa_lower_gl_clamp(ctx, &texObj->Sampler); in set_tex_parameteri()
473 if (texObj->Sampler.Attrib.CompareMode == params[0]) in set_tex_parameteri()
478 texObj->Sampler.Attrib.CompareMode = params[0]; in set_tex_parameteri()
492 if (texObj->Sampler.Attrib.CompareFunc == params[0]) in set_tex_parameteri()
504 texObj->Sampler.Attrib.CompareFunc = params[0]; in set_tex_parameteri()
505 texObj->Sampler.Attrib.state.compare_func = func_to_gallium(params[0]); in set_tex_parameteri()
610 if (texObj->Sampler.Attrib.sRGBDecode != decode) { in set_tex_parameteri()
612 texObj->Sampler.Attrib.sRGBDecode = decode; in set_tex_parameteri()
628 if (texObj->Sampler.Attrib.ReductionMode != mode) { in set_tex_parameteri()
630 texObj->Sampler.Attrib.ReductionMode = mode; in set_tex_parameteri()
631 texObj->Sampler.Attrib.state.reduction_mode = reduction_to_gallium(mode); in set_tex_parameteri()
649 if (param != texObj->Sampler.Attrib.CubeMapSeamless) { in set_tex_parameteri()
651 texObj->Sampler.Attrib.CubeMapSeamless = param; in set_tex_parameteri()
652 texObj->Sampler.Attrib.state.seamless_cube_map = param; in set_tex_parameteri()
728 if (texObj->Sampler.Attrib.MinLod == params[0]) in set_tex_parameterf()
731 texObj->Sampler.Attrib.MinLod = params[0]; in set_tex_parameterf()
732 texObj->Sampler.Attrib.state.min_lod = MAX2(params[0], 0.0f); /* only positive vals */ in set_tex_parameterf()
742 if (texObj->Sampler.Attrib.MaxLod == params[0]) in set_tex_parameterf()
745 texObj->Sampler.Attrib.MaxLod = params[0]; in set_tex_parameterf()
746 texObj->Sampler.Attrib.state.max_lod = params[0]; in set_tex_parameterf()
762 if (texObj->Sampler.Attrib.MaxAnisotropy == params[0]) in set_tex_parameterf()
771 texObj->Sampler.Attrib.MaxAnisotropy = MIN2(params[0], in set_tex_parameterf()
773 texObj->Sampler.Attrib.state.max_anisotropy = in set_tex_parameterf()
774 texObj->Sampler.Attrib.MaxAnisotropy == 1 ? in set_tex_parameterf()
775 0 : texObj->Sampler.Attrib.MaxAnisotropy; /* gallium sets 0 for 1 */ in set_tex_parameterf()
793 if (texObj->Sampler.Attrib.LodBias != params[0]) { in set_tex_parameterf()
795 texObj->Sampler.Attrib.LodBias = params[0]; in set_tex_parameterf()
796 texObj->Sampler.Attrib.state.lod_bias = util_quantize_lod_bias(params[0]); in set_tex_parameterf()
820 memcpy(texObj->Sampler.Attrib.state.border_color.f, params, 4 * sizeof(float)); in set_tex_parameterf()
822 texObj->Sampler.Attrib.state.border_color.f[RCOMP] = CLAMP(params[0], 0.0F, 1.0F); in set_tex_parameterf()
823 texObj->Sampler.Attrib.state.border_color.f[GCOMP] = CLAMP(params[1], 0.0F, 1.0F); in set_tex_parameterf()
824 texObj->Sampler.Attrib.state.border_color.f[BCOMP] = CLAMP(params[2], 0.0F, 1.0F); in set_tex_parameterf()
825 texObj->Sampler.Attrib.state.border_color.f[ACOMP] = CLAMP(params[3], 0.0F, 1.0F); in set_tex_parameterf()
827 _mesa_update_is_border_color_nonzero(&texObj->Sampler); in set_tex_parameterf()
1091 COPY_4V(texObj->Sampler.Attrib.state.border_color.i, params); in _mesa_texture_parameterIiv()
1092 _mesa_update_is_border_color_nonzero(&texObj->Sampler); in _mesa_texture_parameterIiv()
1120 COPY_4V(texObj->Sampler.Attrib.state.border_color.ui, params); in _mesa_texture_parameterIuiv()
1121 _mesa_update_is_border_color_nonzero(&texObj->Sampler); in _mesa_texture_parameterIuiv()
2211 *params = ENUM_TO_FLOAT(obj->Sampler.Attrib.MagFilter); in get_tex_parameterfv()
2214 *params = ENUM_TO_FLOAT(obj->Sampler.Attrib.MinFilter); in get_tex_parameterfv()
2217 *params = ENUM_TO_FLOAT(obj->Sampler.Attrib.WrapS); in get_tex_parameterfv()
2220 *params = ENUM_TO_FLOAT(obj->Sampler.Attrib.WrapT); in get_tex_parameterfv()
2223 *params = ENUM_TO_FLOAT(obj->Sampler.Attrib.WrapR); in get_tex_parameterfv()
2231 params[0] = CLAMP(obj->Sampler.Attrib.state.border_color.f[0], 0.0F, 1.0F); in get_tex_parameterfv()
2232 params[1] = CLAMP(obj->Sampler.Attrib.state.border_color.f[1], 0.0F, 1.0F); in get_tex_parameterfv()
2233 params[2] = CLAMP(obj->Sampler.Attrib.state.border_color.f[2], 0.0F, 1.0F); in get_tex_parameterfv()
2234 params[3] = CLAMP(obj->Sampler.Attrib.state.border_color.f[3], 0.0F, 1.0F); in get_tex_parameterfv()
2237 params[0] = obj->Sampler.Attrib.state.border_color.f[0]; in get_tex_parameterfv()
2238 params[1] = obj->Sampler.Attrib.state.border_color.f[1]; in get_tex_parameterfv()
2239 params[2] = obj->Sampler.Attrib.state.border_color.f[2]; in get_tex_parameterfv()
2240 params[3] = obj->Sampler.Attrib.state.border_color.f[3]; in get_tex_parameterfv()
2259 *params = obj->Sampler.Attrib.MinLod; in get_tex_parameterfv()
2265 *params = obj->Sampler.Attrib.MaxLod; in get_tex_parameterfv()
2279 *params = obj->Sampler.Attrib.MaxAnisotropy; in get_tex_parameterfv()
2291 *params = (GLfloat) obj->Sampler.Attrib.CompareMode; in get_tex_parameterfv()
2297 *params = (GLfloat) obj->Sampler.Attrib.CompareFunc; in get_tex_parameterfv()
2317 *params = obj->Sampler.Attrib.LodBias; in get_tex_parameterfv()
2358 *params = (GLfloat) obj->Sampler.Attrib.CubeMapSeamless; in get_tex_parameterfv()
2405 *params = (GLfloat) obj->Sampler.Attrib.sRGBDecode; in get_tex_parameterfv()
2412 *params = (GLfloat) obj->Sampler.Attrib.ReductionMode; in get_tex_parameterfv()
2456 *params = (GLint) obj->Sampler.Attrib.MagFilter; in get_tex_parameteriv()
2459 *params = (GLint) obj->Sampler.Attrib.MinFilter; in get_tex_parameteriv()
2462 *params = (GLint) obj->Sampler.Attrib.WrapS; in get_tex_parameteriv()
2465 *params = (GLint) obj->Sampler.Attrib.WrapT; in get_tex_parameteriv()
2468 *params = (GLint) obj->Sampler.Attrib.WrapR; in get_tex_parameteriv()
2477 b[0] = CLAMP(obj->Sampler.Attrib.state.border_color.f[0], 0.0F, 1.0F); in get_tex_parameteriv()
2478 b[1] = CLAMP(obj->Sampler.Attrib.state.border_color.f[1], 0.0F, 1.0F); in get_tex_parameteriv()
2479 b[2] = CLAMP(obj->Sampler.Attrib.state.border_color.f[2], 0.0F, 1.0F); in get_tex_parameteriv()
2480 b[3] = CLAMP(obj->Sampler.Attrib.state.border_color.f[3], 0.0F, 1.0F); in get_tex_parameteriv()
2512 *params = LCLAMPF(obj->Sampler.Attrib.MinLod, INT_MIN, INT_MAX); in get_tex_parameteriv()
2527 *params = LCLAMPF(obj->Sampler.Attrib.MaxLod, INT_MIN, INT_MAX); in get_tex_parameteriv()
2551 *params = LCLAMPF(obj->Sampler.Attrib.MaxAnisotropy, INT_MIN, INT_MAX); in get_tex_parameteriv()
2563 *params = (GLint) obj->Sampler.Attrib.CompareMode; in get_tex_parameteriv()
2569 *params = (GLint) obj->Sampler.Attrib.CompareFunc; in get_tex_parameteriv()
2596 *params = LCLAMPF(obj->Sampler.Attrib.LodBias, INT_MIN, INT_MAX); in get_tex_parameteriv()
2630 *params = (GLint) obj->Sampler.Attrib.CubeMapSeamless; in get_tex_parameteriv()
2678 *params = obj->Sampler.Attrib.sRGBDecode; in get_tex_parameteriv()
2685 *params = obj->Sampler.Attrib.ReductionMode; in get_tex_parameteriv()
2727 COPY_4V(params, obj->Sampler.Attrib.state.border_color.i); in get_tex_parameterIiv()