Lines Matching refs:pname
255 GLenum pname, const GLint *params)
257 switch (pname) {
449 const GLuint comp = pname - GL_TEXTURE_SWIZZLE_R_EXT;
520 _mesa_error(ctx, GL_INVALID_ENUM, "glTexParameter(pname=%s)",
521 _mesa_lookup_enum_by_nr(pname));
538 GLenum pname, const GLfloat *params)
540 switch (pname) {
630 _mesa_error(ctx, GL_INVALID_ENUM, "glTexParameter(pname=%s)",
631 _mesa_lookup_enum_by_nr(pname));
637 _mesa_TexParameterf(GLenum target, GLenum pname, GLfloat param)
648 switch (pname) {
667 need_update = set_tex_parameteri(ctx, texObj, pname, p);
678 need_update = set_tex_parameteri(ctx, texObj, pname, p);
683 /* this will generate an error if pname is illegal */
687 need_update = set_tex_parameterf(ctx, texObj, pname, p);
692 ctx->Driver.TexParameter(ctx, target, texObj, pname, ¶m);
698 _mesa_TexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
709 switch (pname) {
728 need_update = set_tex_parameteri(ctx, texObj, pname, p);
741 need_update = set_tex_parameteri(ctx, texObj, pname, iparams);
754 if (pname == GL_TEXTURE_SWIZZLE_RGBA_EXT) {
759 need_update = set_tex_parameteri(ctx, texObj, pname, p);
763 /* this will generate an error if pname is illegal */
764 need_update = set_tex_parameterf(ctx, texObj, pname, params);
768 ctx->Driver.TexParameter(ctx, target, texObj, pname, params);
774 _mesa_TexParameteri(GLenum target, GLenum pname, GLint param)
785 switch (pname) {
797 need_update = set_tex_parameterf(ctx, texObj, pname, fparam);
801 /* this will generate an error if pname is illegal */
806 need_update = set_tex_parameteri(ctx, texObj, pname, iparam);
812 ctx->Driver.TexParameter(ctx, target, texObj, pname, &fparam);
818 _mesa_TexParameteriv(GLenum target, GLenum pname, const GLint *params)
829 switch (pname) {
838 need_update = set_tex_parameterf(ctx, texObj, pname, fparams);
852 need_update = set_tex_parameterf(ctx, texObj, pname, fparams);
856 /* this will generate an error if pname is illegal */
857 need_update = set_tex_parameteri(ctx, texObj, pname, params);
863 if (pname == GL_TEXTURE_BORDER_COLOR ||
864 pname == GL_TEXTURE_CROP_RECT_OES) {
869 ctx->Driver.TexParameter(ctx, target, texObj, pname, fparams);
880 _mesa_TexParameterIiv(GLenum target, GLenum pname, const GLint *params)
890 switch (pname) {
897 _mesa_TexParameteriv(target, pname, params);
910 _mesa_TexParameterIuiv(GLenum target, GLenum pname, const GLuint *params)
920 switch (pname) {
927 _mesa_TexParameteriv(target, pname, (const GLint *) params);
991 GLenum pname, GLint *params)
999 if (pname == GL_TEXTURE_COMPONENTS)
1008 switch (pname) {
1049 if (_mesa_base_format_has_channel(img->_BaseFormat, pname))
1050 *params = _mesa_get_format_bits(texFormat, pname);
1056 if (_mesa_base_format_has_channel(img->_BaseFormat, pname)) {
1057 *params = _mesa_get_format_bits(texFormat, pname);
1073 *params = _mesa_get_format_bits(texFormat, pname);
1079 pname);
1097 "glGetTexLevelParameter[if]v(pname)");
1114 if (_mesa_base_format_has_channel(img->_BaseFormat, pname))
1129 "glGetTexLevelParameter[if]v(pname=%s)",
1130 _mesa_lookup_enum_by_nr(pname));
1137 GLenum pname, GLint *params)
1146 *params = pname == GL_TEXTURE_COMPONENTS ? 1 : 0;
1150 switch (pname) {
1171 if (_mesa_base_format_has_channel(baseFormat, pname))
1172 *params = _mesa_get_format_bits(texFormat, pname);
1178 if (_mesa_base_format_has_channel(baseFormat, pname)) {
1179 *params = _mesa_get_format_bits(texFormat, pname);
1193 *params = _mesa_get_format_bits(texFormat, pname);
1200 "glGetTexLevelParameter[if]v(pname)");
1213 if (_mesa_base_format_has_channel(baseFormat, pname))
1228 "glGetTexLevelParameter[if]v(pname=%s)",
1229 _mesa_lookup_enum_by_nr(pname));
1235 GLenum pname, GLfloat *params )
1238 _mesa_GetTexLevelParameteriv( target, level, pname, &iparam );
1245 GLenum pname, GLint *params )
1278 get_tex_level_parameter_buffer(ctx, texObj, pname, params);
1280 get_tex_level_parameter_image(ctx, texObj, target, level, pname, params);
1285 _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params )
1296 switch (pname) {
1421 *params = (GLfloat) obj->Swizzle[pname - GL_TEXTURE_SWIZZLE_R_EXT];
1467 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexParameterfv(pname=0x%x)", pname);
1472 _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params )
1483 switch (pname) {
1601 *params = obj->Swizzle[pname - GL_TEXTURE_SWIZZLE_R_EXT];
1647 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexParameteriv(pname=0x%x)", pname);
1653 _mesa_GetTexParameterIiv(GLenum target, GLenum pname, GLint *params)
1663 switch (pname) {
1668 _mesa_GetTexParameteriv(target, pname, params);
1675 _mesa_GetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params)
1685 switch (pname) {
1692 _mesa_GetTexParameteriv(target, pname, ip);
1694 if (pname == GL_TEXTURE_SWIZZLE_RGBA_EXT ||
1695 pname == GL_TEXTURE_CROP_RECT_OES) {