• Home
  • Raw
  • Download

Lines Matching refs:Attrib

120    sampObj->Attrib.WrapS = GL_REPEAT;  in _mesa_init_sampler_object()
121 sampObj->Attrib.WrapT = GL_REPEAT; in _mesa_init_sampler_object()
122 sampObj->Attrib.WrapR = GL_REPEAT; in _mesa_init_sampler_object()
123 sampObj->Attrib.state.wrap_s = PIPE_TEX_WRAP_REPEAT; in _mesa_init_sampler_object()
124 sampObj->Attrib.state.wrap_t = PIPE_TEX_WRAP_REPEAT; in _mesa_init_sampler_object()
125 sampObj->Attrib.state.wrap_r = PIPE_TEX_WRAP_REPEAT; in _mesa_init_sampler_object()
126 sampObj->Attrib.MinFilter = GL_NEAREST_MIPMAP_LINEAR; in _mesa_init_sampler_object()
127 sampObj->Attrib.MagFilter = GL_LINEAR; in _mesa_init_sampler_object()
128 sampObj->Attrib.state.min_img_filter = PIPE_TEX_FILTER_NEAREST; in _mesa_init_sampler_object()
129 sampObj->Attrib.state.min_mip_filter = PIPE_TEX_MIPFILTER_LINEAR; in _mesa_init_sampler_object()
130 sampObj->Attrib.state.mag_img_filter = PIPE_TEX_FILTER_LINEAR; in _mesa_init_sampler_object()
131 sampObj->Attrib.state.border_color.f[0] = 0; in _mesa_init_sampler_object()
132 sampObj->Attrib.state.border_color.f[1] = 0; in _mesa_init_sampler_object()
133 sampObj->Attrib.state.border_color.f[2] = 0; in _mesa_init_sampler_object()
134 sampObj->Attrib.state.border_color.f[3] = 0; in _mesa_init_sampler_object()
136 sampObj->Attrib.MinLod = -1000.0F; in _mesa_init_sampler_object()
137 sampObj->Attrib.MaxLod = 1000.0F; in _mesa_init_sampler_object()
138 sampObj->Attrib.state.min_lod = 0; /* Gallium doesn't allow negative numbers */ in _mesa_init_sampler_object()
139 sampObj->Attrib.state.max_lod = 1000; in _mesa_init_sampler_object()
140 sampObj->Attrib.LodBias = 0.0F; in _mesa_init_sampler_object()
141 sampObj->Attrib.state.lod_bias = 0; in _mesa_init_sampler_object()
142 sampObj->Attrib.MaxAnisotropy = 1.0F; in _mesa_init_sampler_object()
143 sampObj->Attrib.state.max_anisotropy = 0; /* Gallium uses 0 instead of 1. */ in _mesa_init_sampler_object()
144 sampObj->Attrib.CompareMode = GL_NONE; in _mesa_init_sampler_object()
145 sampObj->Attrib.CompareFunc = GL_LEQUAL; in _mesa_init_sampler_object()
146 sampObj->Attrib.state.compare_mode = PIPE_TEX_COMPARE_NONE; in _mesa_init_sampler_object()
147 sampObj->Attrib.state.compare_func = PIPE_FUNC_LEQUAL; in _mesa_init_sampler_object()
148 sampObj->Attrib.sRGBDecode = GL_DECODE_EXT; in _mesa_init_sampler_object()
149 sampObj->Attrib.CubeMapSeamless = GL_FALSE; in _mesa_init_sampler_object()
150 sampObj->Attrib.state.seamless_cube_map = false; in _mesa_init_sampler_object()
151 sampObj->Attrib.ReductionMode = GL_WEIGHTED_AVERAGE_EXT; in _mesa_init_sampler_object()
152 sampObj->Attrib.state.reduction_mode = PIPE_TEX_REDUCTION_WEIGHTED_AVERAGE; in _mesa_init_sampler_object()
542 if (samp->Attrib.WrapS == s && samp->Attrib.WrapT == t && samp->Attrib.WrapR == r) in _mesa_set_sampler_wrap()
546 samp->Attrib.WrapS = s; in _mesa_set_sampler_wrap()
547 samp->Attrib.WrapT = t; in _mesa_set_sampler_wrap()
548 samp->Attrib.WrapR = r; in _mesa_set_sampler_wrap()
549 samp->Attrib.state.wrap_s = wrap_to_gallium(s); in _mesa_set_sampler_wrap()
550 samp->Attrib.state.wrap_t = wrap_to_gallium(t); in _mesa_set_sampler_wrap()
551 samp->Attrib.state.wrap_r = wrap_to_gallium(r); in _mesa_set_sampler_wrap()
569 if (samp->Attrib.WrapS == param) in set_sampler_wrap_s()
573 if (is_wrap_gl_clamp(samp->Attrib.WrapS) != is_wrap_gl_clamp(param)) in set_sampler_wrap_s()
575 samp->Attrib.WrapS = param; in set_sampler_wrap_s()
576 samp->Attrib.state.wrap_s = wrap_to_gallium(param); in set_sampler_wrap_s()
588 if (samp->Attrib.WrapT == param) in set_sampler_wrap_t()
592 if (is_wrap_gl_clamp(samp->Attrib.WrapT) != is_wrap_gl_clamp(param)) in set_sampler_wrap_t()
594 samp->Attrib.WrapT = param; in set_sampler_wrap_t()
595 samp->Attrib.state.wrap_t = wrap_to_gallium(param); in set_sampler_wrap_t()
607 if (samp->Attrib.WrapR == param) in set_sampler_wrap_r()
611 if (is_wrap_gl_clamp(samp->Attrib.WrapR) != is_wrap_gl_clamp(param)) in set_sampler_wrap_r()
613 samp->Attrib.WrapR = param; in set_sampler_wrap_r()
614 samp->Attrib.state.wrap_r = wrap_to_gallium(param); in set_sampler_wrap_r()
635 if (samp->Attrib.MinFilter == min_filter && samp->Attrib.MagFilter == mag_filter) in _mesa_set_sampler_filters()
639 samp->Attrib.MinFilter = min_filter; in _mesa_set_sampler_filters()
640 samp->Attrib.MagFilter = mag_filter; in _mesa_set_sampler_filters()
641 samp->Attrib.state.min_img_filter = filter_to_gallium(min_filter); in _mesa_set_sampler_filters()
642 samp->Attrib.state.min_mip_filter = mipfilter_to_gallium(min_filter); in _mesa_set_sampler_filters()
643 samp->Attrib.state.mag_img_filter = filter_to_gallium(mag_filter); in _mesa_set_sampler_filters()
651 if (samp->Attrib.MinFilter == param) in set_sampler_min_filter()
662 samp->Attrib.MinFilter = param; in set_sampler_min_filter()
663 samp->Attrib.state.min_img_filter = filter_to_gallium(param); in set_sampler_min_filter()
664 samp->Attrib.state.min_mip_filter = mipfilter_to_gallium(param); in set_sampler_min_filter()
677 if (samp->Attrib.MagFilter == param) in set_sampler_mag_filter()
684 samp->Attrib.MagFilter = param; in set_sampler_mag_filter()
685 samp->Attrib.state.mag_img_filter = filter_to_gallium(param); in set_sampler_mag_filter()
698 if (samp->Attrib.LodBias == param) in set_sampler_lod_bias()
702 samp->Attrib.LodBias = param; in set_sampler_lod_bias()
703 samp->Attrib.state.lod_bias = util_quantize_lod_bias(param); in set_sampler_lod_bias()
714 memcpy(samp->Attrib.state.border_color.f, params, 4 * sizeof(float)); in set_sampler_border_colorf()
726 memcpy(samp->Attrib.state.border_color.i, params, 4 * sizeof(float)); in set_sampler_border_colori()
738 memcpy(samp->Attrib.state.border_color.ui, params, 4 * sizeof(float)); in set_sampler_border_colorui()
748 if (samp->Attrib.MinLod == param) in set_sampler_min_lod()
752 samp->Attrib.MinLod = param; in set_sampler_min_lod()
753 samp->Attrib.state.min_lod = MAX2(param, 0.0f); /* only positive */ in set_sampler_min_lod()
763 if (samp->Attrib.MaxLod == param) in set_sampler_max_lod()
767 samp->Attrib.MaxLod = param; in set_sampler_max_lod()
768 samp->Attrib.state.max_lod = param; in set_sampler_max_lod()
784 if (samp->Attrib.CompareMode == param) in set_sampler_compare_mode()
790 samp->Attrib.CompareMode = param; in set_sampler_compare_mode()
809 if (samp->Attrib.CompareFunc == param) in set_sampler_compare_func()
822 samp->Attrib.CompareFunc = param; in set_sampler_compare_func()
823 samp->Attrib.state.compare_func = func_to_gallium(param); in set_sampler_compare_func()
838 if (samp->Attrib.MaxAnisotropy == param) in set_sampler_max_anisotropy()
846 samp->Attrib.MaxAnisotropy = MIN2(param, ctx->Const.MaxTextureMaxAnisotropy); in set_sampler_max_anisotropy()
848 samp->Attrib.state.max_anisotropy = samp->Attrib.MaxAnisotropy == 1 ? in set_sampler_max_anisotropy()
849 0 : samp->Attrib.MaxAnisotropy; in set_sampler_max_anisotropy()
862 if (samp->Attrib.CubeMapSeamless == param) in set_sampler_cube_map_seamless()
869 samp->Attrib.CubeMapSeamless = param; in set_sampler_cube_map_seamless()
870 samp->Attrib.state.seamless_cube_map = param; in set_sampler_cube_map_seamless()
881 samp->Attrib.sRGBDecode = param; in _mesa_set_sampler_srgb_decode()
891 if (samp->Attrib.sRGBDecode == param) in set_sampler_srgb_decode()
909 samp->Attrib.sRGBDecode = param; in set_sampler_srgb_decode()
921 if (samp->Attrib.ReductionMode == param) in set_sampler_reduction_mode()
928 samp->Attrib.ReductionMode = param; in set_sampler_reduction_mode()
929 samp->Attrib.state.reduction_mode = reduction_to_gallium(param); in set_sampler_reduction_mode()
1503 *params = sampObj->Attrib.WrapS; in _mesa_GetSamplerParameteriv()
1506 *params = sampObj->Attrib.WrapT; in _mesa_GetSamplerParameteriv()
1509 *params = sampObj->Attrib.WrapR; in _mesa_GetSamplerParameteriv()
1512 *params = sampObj->Attrib.MinFilter; in _mesa_GetSamplerParameteriv()
1515 *params = sampObj->Attrib.MagFilter; in _mesa_GetSamplerParameteriv()
1521 *params = lroundf(sampObj->Attrib.MinLod); in _mesa_GetSamplerParameteriv()
1527 *params = lroundf(sampObj->Attrib.MaxLod); in _mesa_GetSamplerParameteriv()
1533 *params = lroundf(sampObj->Attrib.LodBias); in _mesa_GetSamplerParameteriv()
1538 *params = sampObj->Attrib.CompareMode; in _mesa_GetSamplerParameteriv()
1543 *params = sampObj->Attrib.CompareFunc; in _mesa_GetSamplerParameteriv()
1551 *params = lroundf(sampObj->Attrib.MaxAnisotropy); in _mesa_GetSamplerParameteriv()
1556 params[0] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[0]); in _mesa_GetSamplerParameteriv()
1557 params[1] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[1]); in _mesa_GetSamplerParameteriv()
1558 params[2] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[2]); in _mesa_GetSamplerParameteriv()
1559 params[3] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[3]); in _mesa_GetSamplerParameteriv()
1564 *params = sampObj->Attrib.CubeMapSeamless; in _mesa_GetSamplerParameteriv()
1569 *params = (GLenum) sampObj->Attrib.sRGBDecode; in _mesa_GetSamplerParameteriv()
1575 *params = (GLenum) sampObj->Attrib.ReductionMode; in _mesa_GetSamplerParameteriv()
1601 *params = (GLfloat) sampObj->Attrib.WrapS; in _mesa_GetSamplerParameterfv()
1604 *params = (GLfloat) sampObj->Attrib.WrapT; in _mesa_GetSamplerParameterfv()
1607 *params = (GLfloat) sampObj->Attrib.WrapR; in _mesa_GetSamplerParameterfv()
1610 *params = (GLfloat) sampObj->Attrib.MinFilter; in _mesa_GetSamplerParameterfv()
1613 *params = (GLfloat) sampObj->Attrib.MagFilter; in _mesa_GetSamplerParameterfv()
1616 *params = sampObj->Attrib.MinLod; in _mesa_GetSamplerParameterfv()
1619 *params = sampObj->Attrib.MaxLod; in _mesa_GetSamplerParameterfv()
1622 *params = sampObj->Attrib.LodBias; in _mesa_GetSamplerParameterfv()
1625 *params = (GLfloat) sampObj->Attrib.CompareMode; in _mesa_GetSamplerParameterfv()
1628 *params = (GLfloat) sampObj->Attrib.CompareFunc; in _mesa_GetSamplerParameterfv()
1631 *params = sampObj->Attrib.MaxAnisotropy; in _mesa_GetSamplerParameterfv()
1634 params[0] = sampObj->Attrib.state.border_color.f[0]; in _mesa_GetSamplerParameterfv()
1635 params[1] = sampObj->Attrib.state.border_color.f[1]; in _mesa_GetSamplerParameterfv()
1636 params[2] = sampObj->Attrib.state.border_color.f[2]; in _mesa_GetSamplerParameterfv()
1637 params[3] = sampObj->Attrib.state.border_color.f[3]; in _mesa_GetSamplerParameterfv()
1642 *params = (GLfloat) sampObj->Attrib.CubeMapSeamless; in _mesa_GetSamplerParameterfv()
1647 *params = (GLfloat) sampObj->Attrib.sRGBDecode; in _mesa_GetSamplerParameterfv()
1653 *params = (GLfloat) sampObj->Attrib.ReductionMode; in _mesa_GetSamplerParameterfv()
1679 *params = sampObj->Attrib.WrapS; in _mesa_GetSamplerParameterIiv()
1682 *params = sampObj->Attrib.WrapT; in _mesa_GetSamplerParameterIiv()
1685 *params = sampObj->Attrib.WrapR; in _mesa_GetSamplerParameterIiv()
1688 *params = sampObj->Attrib.MinFilter; in _mesa_GetSamplerParameterIiv()
1691 *params = sampObj->Attrib.MagFilter; in _mesa_GetSamplerParameterIiv()
1694 *params = (GLint) sampObj->Attrib.MinLod; in _mesa_GetSamplerParameterIiv()
1697 *params = (GLint) sampObj->Attrib.MaxLod; in _mesa_GetSamplerParameterIiv()
1700 *params = (GLint) sampObj->Attrib.LodBias; in _mesa_GetSamplerParameterIiv()
1703 *params = sampObj->Attrib.CompareMode; in _mesa_GetSamplerParameterIiv()
1706 *params = sampObj->Attrib.CompareFunc; in _mesa_GetSamplerParameterIiv()
1709 *params = (GLint) sampObj->Attrib.MaxAnisotropy; in _mesa_GetSamplerParameterIiv()
1712 params[0] = sampObj->Attrib.state.border_color.i[0]; in _mesa_GetSamplerParameterIiv()
1713 params[1] = sampObj->Attrib.state.border_color.i[1]; in _mesa_GetSamplerParameterIiv()
1714 params[2] = sampObj->Attrib.state.border_color.i[2]; in _mesa_GetSamplerParameterIiv()
1715 params[3] = sampObj->Attrib.state.border_color.i[3]; in _mesa_GetSamplerParameterIiv()
1720 *params = sampObj->Attrib.CubeMapSeamless; in _mesa_GetSamplerParameterIiv()
1725 *params = (GLenum) sampObj->Attrib.sRGBDecode; in _mesa_GetSamplerParameterIiv()
1731 *params = (GLenum) sampObj->Attrib.ReductionMode; in _mesa_GetSamplerParameterIiv()
1757 *params = sampObj->Attrib.WrapS; in _mesa_GetSamplerParameterIuiv()
1760 *params = sampObj->Attrib.WrapT; in _mesa_GetSamplerParameterIuiv()
1763 *params = sampObj->Attrib.WrapR; in _mesa_GetSamplerParameterIuiv()
1766 *params = sampObj->Attrib.MinFilter; in _mesa_GetSamplerParameterIuiv()
1769 *params = sampObj->Attrib.MagFilter; in _mesa_GetSamplerParameterIuiv()
1772 *params = (GLuint) sampObj->Attrib.MinLod; in _mesa_GetSamplerParameterIuiv()
1775 *params = (GLuint) sampObj->Attrib.MaxLod; in _mesa_GetSamplerParameterIuiv()
1778 *params = (GLuint) sampObj->Attrib.LodBias; in _mesa_GetSamplerParameterIuiv()
1781 *params = sampObj->Attrib.CompareMode; in _mesa_GetSamplerParameterIuiv()
1784 *params = sampObj->Attrib.CompareFunc; in _mesa_GetSamplerParameterIuiv()
1787 *params = (GLuint) sampObj->Attrib.MaxAnisotropy; in _mesa_GetSamplerParameterIuiv()
1790 params[0] = sampObj->Attrib.state.border_color.ui[0]; in _mesa_GetSamplerParameterIuiv()
1791 params[1] = sampObj->Attrib.state.border_color.ui[1]; in _mesa_GetSamplerParameterIuiv()
1792 params[2] = sampObj->Attrib.state.border_color.ui[2]; in _mesa_GetSamplerParameterIuiv()
1793 params[3] = sampObj->Attrib.state.border_color.ui[3]; in _mesa_GetSamplerParameterIuiv()
1798 *params = sampObj->Attrib.CubeMapSeamless; in _mesa_GetSamplerParameterIuiv()
1803 *params = (GLenum) sampObj->Attrib.sRGBDecode; in _mesa_GetSamplerParameterIuiv()
1809 *params = (GLenum) sampObj->Attrib.ReductionMode; in _mesa_GetSamplerParameterIuiv()