Lines Matching refs:dims

1139                                            GLuint dims,
1151 if (dims > 1 && subHeight < 0) {
1156 if (dims > 2 && subDepth < 0) {
1171 error_check_subtexture_dimensions(struct gl_context *ctx, GLuint dims,
1193 if (dims > 1) {
1207 if (dims > 2) {
1530 legal_teximage_target(struct gl_context *ctx, GLuint dims, GLenum target)
1532 switch (dims) {
1585 _mesa_problem(ctx, "invalid dims=%u in legal_teximage_target()", dims);
1598 legal_texsubimage_target(struct gl_context *ctx, GLuint dims, GLenum target,
1601 switch (dims) {
1644 _mesa_problem(ctx, "invalid dims=%u in legal_texsubimage_target()",
1645 dims);
1840 * by several other GL entrypoints. Plus, texture dims have a special
2912 teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims,
2931 dims,
2938 dims,
2950 if (!legal_teximage_target(ctx, dims, target)) {
2952 func, dims, _mesa_enum_to_string(target));
2958 if (compressed_texture_error_check(ctx, dims, target, level,
2964 if (texture_error_check(ctx, dims, target, level, internalFormat,
2975 if (ctx->API == API_OPENGLES && compressed && dims == 2) {
3058 func, dims, width, height, depth);
3065 func, dims, width, height, depth,
3089 _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s%uD", func, dims);
3101 ctx->Driver.CompressedTexImage(ctx, dims, texImage,
3105 ctx->Driver.TexImage(ctx, dims, texImage, format,
3126 teximage_err(struct gl_context *ctx, GLboolean compressed, GLuint dims,
3132 teximage(ctx, compressed, dims, target, level, internalFormat, width, height,
3138 teximage_no_error(struct gl_context *ctx, GLboolean compressed, GLuint dims,
3144 teximage(ctx, compressed, dims, target, level, internalFormat, width, height,
3306 texture_sub_image(struct gl_context *ctx, GLuint dims,
3323 switch (dims) {
3336 ctx->Driver.TexSubImage(ctx, dims, texImage,
3356 texsubimage_err(struct gl_context *ctx, GLuint dims, GLenum target, GLint level,
3366 if (!legal_texsubimage_target(ctx, dims, target, false)) {
3368 dims, _mesa_enum_to_string(target));
3376 if (texsubimage_error_check(ctx, dims, texObj, target, level,
3388 dims,
3394 texture_sub_image(ctx, dims, texObj, texImage, target, level,
3401 texsubimage(struct gl_context *ctx, GLuint dims, GLenum target, GLint level,
3412 texture_sub_image(ctx, dims, texObj, texImage, target, level,
3423 texturesubimage(struct gl_context *ctx, GLuint dims,
3437 dims, texture, level,
3453 if (!legal_texsubimage_target(ctx, dims, texObj->Target, true)) {
3459 if (texsubimage_error_check(ctx, dims, texObj, texObj->Target, level,
3503 dims);
3525 texture_sub_image(ctx, dims, texObj, texImage, texObj->Target,
3534 texturesubimage_error(struct gl_context *ctx, GLuint dims,
3541 texturesubimage(ctx, dims, texture, level, xoffset, yoffset, zoffset,
3548 texturesubimage_no_error(struct gl_context *ctx, GLuint dims,
3555 texturesubimage(ctx, dims, texture, level, xoffset, yoffset, zoffset,
3748 GLuint dims,
3769 ctx->Driver.CopyTexSubImage(ctx, dims, texImage,
3828 copy_texture_sub_image(struct gl_context *ctx, GLuint dims,
3841 switch (dims) {
3859 copytexsubimage_by_slice(ctx, texImage, dims, xoffset, yoffset, zoffset,
3874 copy_texture_sub_image_err(struct gl_context *ctx, GLuint dims,
3891 if (copytexsubimage_error_check(ctx, dims, texObj, target, level,
3897 copy_texture_sub_image(ctx, dims, texObj, target, level, xoffset, yoffset,
3903 copy_texture_sub_image_no_error(struct gl_context *ctx, GLuint dims,
3914 copy_texture_sub_image(ctx, dims, texObj, target, level, xoffset, yoffset,
3923 copyteximage(struct gl_context *ctx, GLuint dims,
3936 dims,
3945 if (copytexture_error_check(ctx, dims, target, level, internalFormat,
3953 dims, width, height);
3974 copy_texture_sub_image_no_error(ctx, dims, texObj, target, level, 0,
3977 copy_texture_sub_image_err(ctx, dims, texObj, target, level, 0, 0,
3998 " and writing to unsized internal format)", dims);
4016 " internal format)", dims);
4027 "glCopyTexImage%uD(image too large)", dims);
4034 if (dims == 2) {
4046 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glCopyTexImage%uD", dims);
4067 copytexsubimage_by_slice(ctx, texImage, dims,
4085 copyteximage_err(struct gl_context *ctx, GLuint dims, GLenum target,
4089 copyteximage(ctx, dims, target, level, internalFormat, x, y, width, height,
4095 copyteximage_no_error(struct gl_context *ctx, GLuint dims, GLenum target,
4099 copyteximage(ctx, dims, target, level, internalFormat, x, y, width, height,
4452 1, /* dims */
4669 GLint dims, GLenum intFormat, bool dsa,
4682 switch (dims) {
4782 assert(dims == 1);
4802 compressed_subtexture_error_check(struct gl_context *ctx, GLint dims,
4825 if (!_mesa_validate_pbo_source_compressed(ctx, dims, &ctx->Unpack,
4831 if (!_mesa_compressed_pixel_storage_error_check(ctx, dims,
4861 if (error_check_subtexture_negative_dimensions(ctx, dims, width, height,
4866 if (error_check_subtexture_dimensions(ctx, dims, texImage, xoffset, yoffset,
4953 compressed_texture_sub_image(struct gl_context *ctx, GLuint dims,
4966 ctx->Driver.CompressedTexSubImage(ctx, dims, texImage,
5774 check_multisample_target(GLuint dims, GLenum target, bool dsa)
5778 return dims == 2;
5780 return dims == 2 && !dsa;
5782 return dims == 3;
5784 return dims == 3 && !dsa;
5792 texture_image_multisample(struct gl_context *ctx, GLuint dims,
5824 if (!check_multisample_target(dims, target, dsa)) {
6006 unsigned dims)
6013 dims, width, height, depth);
6110 _mesa_texture_storage_ms_memory(struct gl_context *ctx, GLuint dims,
6121 texture_image_multisample(ctx, dims, texObj, memObj, target, samples,