Lines Matching refs:dims

1486 legal_teximage_target(struct gl_context *ctx, GLuint dims, GLenum target)  in legal_teximage_target()  argument
1488 switch (dims) { in legal_teximage_target()
1544 _mesa_problem(ctx, "invalid dims=%u in legal_teximage_target()", dims); in legal_teximage_target()
1557 legal_texsubimage_target(struct gl_context *ctx, GLuint dims, GLenum target) in legal_texsubimage_target() argument
1559 switch (dims) { in legal_texsubimage_target()
1597 dims); in legal_texsubimage_target()
2917 teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims, in teximage() argument
2934 dims, in teximage()
2941 dims, in teximage()
2952 if (!legal_teximage_target(ctx, dims, target)) { in teximage()
2954 func, dims, _mesa_lookup_enum_by_nr(target)); in teximage()
2960 error = compressed_texture_error_check(ctx, dims, target, level, in teximage()
2966 error = texture_error_check(ctx, dims, target, level, internalFormat, in teximage()
2975 if (compressed && !error && dims == 2) { in teximage()
3059 _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s%uD", func, dims); in teximage()
3078 ctx->Driver.CompressedTexImage(ctx, dims, texImage, in teximage()
3082 ctx->Driver.TexImage(ctx, dims, texImage, format, in teximage()
3094 _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s%uD", func, dims); in teximage()
3220 texsubimage(struct gl_context *ctx, GLuint dims, GLenum target, GLint level, in texsubimage() argument
3232 dims, in texsubimage()
3239 if (!legal_texsubimage_target(ctx, dims, target)) { in texsubimage()
3241 dims, _mesa_lookup_enum_by_nr(target)); in texsubimage()
3248 if (subtexture_error_check(ctx, dims, target, level, xoffset, yoffset, zoffset, in texsubimage()
3259 if (subtexture_error_check2(ctx, dims, target, level, in texsubimage()
3267 switch (dims) { in texsubimage()
3280 ctx->Driver.TexSubImage(ctx, dims, texImage, in texsubimage()
3363 copyteximage(struct gl_context *ctx, GLuint dims, in copyteximage() argument
3375 dims, in copyteximage()
3383 if (copytexture_error_check(ctx, dims, target, level, internalFormat, in copyteximage()
3392 if (dims == 2) { in copyteximage()
3404 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glCopyTexImage%uD", dims); in copyteximage()
3423 ctx->Driver.TexImage(ctx, dims, texImage, in copyteximage()
3432 ctx->Driver.CopyTexSubImage(ctx, dims, texImage, dstX, dstY, dstZ, in copyteximage()
3444 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glCopyTexImage%uD", dims); in copyteximage()
3481 copytexsubimage(struct gl_context *ctx, GLuint dims, GLenum target, GLint level, in copytexsubimage() argument
3492 dims, in copytexsubimage()
3499 if (copytexsubimage_error_check1(ctx, dims, target, level)) in copytexsubimage()
3508 if (copytexsubimage_error_check2(ctx, dims, target, level, xoffset, yoffset, in copytexsubimage()
3514 switch (dims) { in copytexsubimage()
3532 ctx->Driver.CopyTexSubImage(ctx, dims, texImage, in copytexsubimage()
3677 compressed_subtexture_error_check2(struct gl_context *ctx, GLuint dims, in compressed_subtexture_error_check2() argument
3684 "glCompressedTexSubImage%uD(undefined image level)", dims); in compressed_subtexture_error_check2()
3690 "glCompressedTexSubImage%uD(format=0x%x)", dims, format); in compressed_subtexture_error_check2()
3697 , dims, format); in compressed_subtexture_error_check2()
3705 "glCompressedTexSubImage%uD(width=%d)", dims, width); in compressed_subtexture_error_check2()
3709 if (dims >= 2) { in compressed_subtexture_error_check2()
3714 "glCompressedTexSubImage%uD(height=%d)", dims, height); in compressed_subtexture_error_check2()
3719 if (dims >= 3) { in compressed_subtexture_error_check2()
3724 "glCompressedTexSubImage%uD(depth=%d)", dims, depth); in compressed_subtexture_error_check2()
3773 compressed_tex_sub_image(GLuint dims, GLenum target, GLint level, in compressed_tex_sub_image() argument
3784 error = compressed_subtexture_error_check(ctx, dims, target, level, in compressed_tex_sub_image()
3789 _mesa_error(ctx, error, "glCompressedTexSubImage%uD", dims); in compressed_tex_sub_image()
3799 if (compressed_subtexture_error_check2(ctx, dims, width, height, depth, in compressed_tex_sub_image()
3804 ctx->Driver.CompressedTexSubImage(ctx, dims, texImage, in compressed_tex_sub_image()