Lines Matching refs:internalFormat
826 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields_ms() argument
830 const GLint base_format =_mesa_base_tex_format(ctx, internalFormat); in _mesa_init_teximage_fields_ms()
840 img->InternalFormat = internalFormat; in _mesa_init_teximage_fields_ms()
933 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields() argument
937 internalFormat, format, 0, GL_TRUE); in _mesa_init_teximage_fields()
1680 GLenum target, GLenum internalFormat) in _mesa_legal_texture_base_format_for_target() argument
1682 if (_mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_COMPONENT in _mesa_legal_texture_base_format_for_target()
1683 || _mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_STENCIL in _mesa_legal_texture_base_format_for_target()
1684 || _mesa_base_tex_format(ctx, internalFormat) == GL_STENCIL_INDEX) { in _mesa_legal_texture_base_format_for_target()
1727 texture_formats_agree(GLenum internalFormat, in texture_formats_agree() argument
1741 _mesa_is_depth_format(internalFormat) || in texture_formats_agree()
1742 _mesa_is_depthstencil_format(internalFormat); in texture_formats_agree()
1750 if (_mesa_is_color_format(internalFormat) && !colorFormat && !indexFormat) in texture_formats_agree()
1757 if (_mesa_is_ycbcr_format(internalFormat) != _mesa_is_ycbcr_format(format)) in texture_formats_agree()
1779 GLenum type, GLenum internalFormat, const char *callerName) in texture_format_error_check_gles() argument
1782 internalFormat); in texture_format_error_check_gles()
1788 _mesa_enum_to_string(internalFormat)); in texture_format_error_check_gles()
1824 GLint level, GLint internalFormat, in texture_error_check() argument
1882 if (_mesa_base_tex_format(ctx, internalFormat) < 0) { in texture_error_check()
1885 dimensions, _mesa_enum_to_string(internalFormat)); in texture_error_check()
1898 internalFormat, bufCallerName)) { in texture_error_check()
1910 if (!texture_formats_agree(internalFormat, format)) { in texture_error_check()
1913 dimensions, _mesa_enum_to_string(internalFormat), in texture_error_check()
1919 if (internalFormat == GL_YCBCR_MESA) { in texture_error_check()
1950 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalFormat)) { in texture_error_check()
1957 if (_mesa_is_compressed_format(ctx, internalFormat)) { in texture_error_check()
1959 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &err)) { in texture_error_check()
1964 if (_mesa_format_no_online_compression(internalFormat)) { in texture_error_check()
1979 _mesa_is_enum_format_integer(internalFormat))) { in texture_error_check()
2006 GLint level, GLenum internalFormat, GLsizei width, in compressed_texture_error_check() argument
2015 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &error)) { in compressed_texture_error_check()
2021 if (!_mesa_is_compressed_format(ctx, internalFormat)) { in compressed_texture_error_check()
2024 dimensions, _mesa_enum_to_string(internalFormat)); in compressed_texture_error_check()
2035 switch (internalFormat) { in compressed_texture_error_check()
2062 expectedSize = _mesa_cpal_compressed_size(level, internalFormat, in compressed_texture_error_check()
2086 expectedSize = compressed_tex_size(width, height, depth, internalFormat); in compressed_texture_error_check()
2091 if (_mesa_base_tex_format(ctx, internalFormat) < 0) { in compressed_texture_error_check()
2217 GLenum internalFormat = _mesa_is_gles(ctx) ? in texsubimage_error_check() local
2228 internalFormat, callerName)) { in texsubimage_error_check()
2288 GLint level, GLint internalFormat, GLint border ) in copytexture_error_check() argument
2341 switch (internalFormat) { in copytexture_error_check()
2351 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2364 if (internalFormat >= 1 && internalFormat <= 4) { in copytexture_error_check()
2367 internalFormat); in copytexture_error_check()
2372 baseFormat = _mesa_base_tex_format(ctx, internalFormat); in copytexture_error_check()
2376 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2380 rb = _mesa_get_read_renderbuffer_for_format(ctx, internalFormat); in copytexture_error_check()
2389 if (_mesa_is_color_format(internalFormat)) { in copytexture_error_check()
2393 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2413 internalFormat == GL_RGB9_E5) { in copytexture_error_check()
2416 if (internalFormat == GL_RGB9_E5) { in copytexture_error_check()
2422 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2432 if (_mesa_get_linear_internalformat(internalFormat) != internalFormat) { in copytexture_error_check()
2458 _mesa_is_enum_format_snorm(internalFormat)) { in copytexture_error_check()
2461 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2479 if (_mesa_is_color_format(internalFormat)) { in copytexture_error_check()
2480 bool is_int = _mesa_is_enum_format_integer(internalFormat); in copytexture_error_check()
2482 bool is_unorm = _mesa_is_enum_format_unorm(internalFormat); in copytexture_error_check()
2490 _mesa_is_enum_format_unsigned_int(internalFormat) != in copytexture_error_check()
2513 if (_mesa_is_compressed_format(ctx, internalFormat)) { in copytexture_error_check()
2515 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &err)) { in copytexture_error_check()
2520 if (_mesa_format_no_online_compression(internalFormat)) { in copytexture_error_check()
2758 override_internal_format(GLenum internalFormat, UNUSED GLint width, in override_internal_format() argument
2762 if (internalFormat == GL_RGBA16F_ARB || in override_internal_format()
2763 internalFormat == GL_RGBA32F_ARB) { in override_internal_format()
2767 else if (internalFormat == GL_RGB16F_ARB || in override_internal_format()
2768 internalFormat == GL_RGB32F_ARB) { in override_internal_format()
2772 else if (internalFormat == GL_LUMINANCE_ALPHA16F_ARB || in override_internal_format()
2773 internalFormat == GL_LUMINANCE_ALPHA32F_ARB) { in override_internal_format()
2777 else if (internalFormat == GL_LUMINANCE16F_ARB || in override_internal_format()
2778 internalFormat == GL_LUMINANCE32F_ARB) { in override_internal_format()
2782 else if (internalFormat == GL_ALPHA16F_ARB || in override_internal_format()
2783 internalFormat == GL_ALPHA32F_ARB) { in override_internal_format()
2793 return internalFormat; in override_internal_format()
2796 return internalFormat; in override_internal_format()
2813 GLenum internalFormat, GLenum format, GLenum type) in _mesa_choose_texture_format() argument
2826 prevImage->InternalFormat == internalFormat) { in _mesa_choose_texture_format()
2833 f = ctx->Driver.ChooseTextureFormat(ctx, target, internalFormat, in _mesa_choose_texture_format()
2959 GLenum target, GLint level, GLint internalFormat, in teximage() argument
2978 _mesa_enum_to_string(internalFormat), in teximage()
2985 _mesa_enum_to_string(internalFormat), in teximage()
2991 internalFormat = override_internal_format(internalFormat, width, height); in teximage()
3008 level, internalFormat, in teximage()
3013 if (texture_error_check(ctx, dims, target, texObj, level, internalFormat, in teximage()
3026 switch (internalFormat) { in teximage()
3037 _mesa_cpal_compressed_teximage2d(target, level, internalFormat, in teximage()
3048 texFormat = _mesa_glenum_to_compressed_format(internalFormat); in teximage()
3054 if (_mesa_is_gles(ctx) && format == internalFormat) { in teximage()
3061 internalFormat = adjust_for_oes_float_texture(ctx, format, type); in teximage()
3065 internalFormat, format, type); in teximage()
3091 border, internalFormat, texFormat); in teximage()
3113 _mesa_enum_to_string(internalFormat)); in teximage()
3143 border, internalFormat, texFormat); in teximage()
3174 GLenum target, GLint level, GLint internalFormat, in teximage_err() argument
3179 teximage(ctx, compressed, dims, NULL, target, level, internalFormat, width, height, in teximage_err()
3186 GLenum target, GLint level, GLint internalFormat, in teximage_no_error() argument
3191 teximage(ctx, compressed, dims, NULL, target, level, internalFormat, width, height, in teximage_no_error()
3200 _mesa_TexImage1D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage1D() argument
3205 teximage_err(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1, 1, in _mesa_TexImage1D()
3211 GLint internalFormat, GLsizei width, GLint border, in _mesa_TextureImage1DEXT() argument
3221 teximage(ctx, GL_FALSE, 1, texObj, target, level, internalFormat, in _mesa_TextureImage1DEXT()
3227 GLint internalFormat, GLsizei width, GLint border, in _mesa_MultiTexImage1DEXT() argument
3239 teximage(ctx, GL_FALSE, 1, texObj, target, level, internalFormat, width, 1, 1, in _mesa_MultiTexImage1DEXT()
3244 _mesa_TexImage2D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage2D() argument
3250 teximage_err(ctx, GL_FALSE, 2, target, level, internalFormat, width, height, 1, in _mesa_TexImage2D()
3256 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_TextureImage2DEXT() argument
3267 teximage(ctx, GL_FALSE, 2, texObj, target, level, internalFormat, in _mesa_TextureImage2DEXT()
3273 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_MultiTexImage2DEXT() argument
3286 teximage(ctx, GL_FALSE, 2, texObj, target, level, internalFormat, width, height, 1, in _mesa_MultiTexImage2DEXT()
3295 _mesa_TexImage3D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage3D() argument
3301 teximage_err(ctx, GL_FALSE, 3, target, level, internalFormat, in _mesa_TexImage3D()
3307 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_TextureImage3DEXT() argument
3318 teximage(ctx, GL_FALSE, 3, texObj, target, level, internalFormat, in _mesa_TextureImage3DEXT()
3325 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_MultiTexImage3DEXT() argument
3338 teximage(ctx, GL_FALSE, 3, texObj, target, level, internalFormat, in _mesa_MultiTexImage3DEXT()
3344 _mesa_TexImage3DEXT( GLenum target, GLint level, GLenum internalFormat, in _mesa_TexImage3DEXT() argument
3349 _mesa_TexImage3D(target, level, (GLint) internalFormat, width, height, in _mesa_TexImage3DEXT()
3355 _mesa_TexImage1D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage1D_no_error() argument
3360 teximage_no_error(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1, in _mesa_TexImage1D_no_error()
3366 _mesa_TexImage2D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage2D_no_error() argument
3371 teximage_no_error(ctx, GL_FALSE, 2, target, level, internalFormat, width, in _mesa_TexImage2D_no_error()
3377 _mesa_TexImage3D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage3D_no_error() argument
3383 teximage_no_error(ctx, GL_FALSE, 3, target, level, internalFormat, in _mesa_TexImage3D_no_error()
4167 GLenum internalFormat, in can_avoid_reallocation() argument
4171 if (texImage->InternalFormat != internalFormat) in can_avoid_reallocation()
4286 GLenum target, GLint level, GLenum internalFormat, in copyteximage() argument
4299 _mesa_enum_to_string(internalFormat), in copyteximage()
4307 internalFormat, border)) in copyteximage()
4322 internalFormat, GL_NONE, GL_NONE); in copyteximage()
4330 if (texImage && can_avoid_reallocation(texImage, internalFormat, texFormat, in copyteximage()
4349 _mesa_get_read_renderbuffer_for_format(ctx, internalFormat); in copyteximage()
4351 if (_mesa_is_enum_format_unsized(internalFormat)) { in copyteximage()
4416 border, internalFormat, texFormat); in copyteximage()
4448 GLint level, GLenum internalFormat, GLint x, GLint y, in copyteximage_err() argument
4452 copyteximage(ctx, dims, texObj, target, level, internalFormat, x, y, width, height, in copyteximage_err()
4459 GLint level, GLenum internalFormat, GLint x, GLint y, in copyteximage_no_error() argument
4463 copyteximage(ctx, dims, texObj, target, level, internalFormat, x, y, width, height, in copyteximage_no_error()
4470 GLenum internalFormat, in _mesa_CopyTexImage1D() argument
4475 copyteximage_err(ctx, 1, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTexImage1D()
4482 GLenum internalFormat, in _mesa_CopyTextureImage1DEXT() argument
4492 copyteximage(ctx, 1, texObj, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTextureImage1DEXT()
4499 GLenum internalFormat, in _mesa_CopyMultiTexImage1DEXT() argument
4511 copyteximage(ctx, 1, texObj, target, level, internalFormat, x, y, width, 1, in _mesa_CopyMultiTexImage1DEXT()
4517 _mesa_CopyTexImage2D( GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage2D() argument
4522 copyteximage_err(ctx, 2, target, level, internalFormat, in _mesa_CopyTexImage2D()
4529 GLenum internalFormat, in _mesa_CopyTextureImage2DEXT() argument
4540 copyteximage(ctx, 2, texObj, target, level, internalFormat, x, y, width, height, in _mesa_CopyTextureImage2DEXT()
4547 GLenum internalFormat, in _mesa_CopyMultiTexImage2DEXT() argument
4559 copyteximage(ctx, 2, texObj, target, level, internalFormat, x, y, width, height, in _mesa_CopyMultiTexImage2DEXT()
4565 _mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage1D_no_error() argument
4569 copyteximage_no_error(ctx, 1, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTexImage1D_no_error()
4575 _mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage2D_no_error() argument
4580 copyteximage_no_error(ctx, 2, target, level, internalFormat, in _mesa_CopyTexImage2D_no_error()
4991 GLenum internalFormat = texImage->InternalFormat; in check_clear_tex_image() local
5000 if (_mesa_is_compressed_format(ctx, internalFormat)) { in check_clear_tex_image()
5017 if (!texture_formats_agree(internalFormat, format)) { in check_clear_tex_image()
5021 _mesa_enum_to_string(internalFormat), in check_clear_tex_image()
5464 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage1D() argument
5469 teximage_err(ctx, GL_TRUE, 1, target, level, internalFormat, in _mesa_CompressedTexImage1D()
5476 GLenum internalFormat, GLsizei width, in _mesa_CompressedTextureImage1DEXT() argument
5487 teximage(ctx, GL_TRUE, 1, texObj, target, level, internalFormat, in _mesa_CompressedTextureImage1DEXT()
5494 GLenum internalFormat, GLsizei width, in _mesa_CompressedMultiTexImage1DEXT() argument
5507 teximage(ctx, GL_TRUE, 1, texObj, target, level, internalFormat, in _mesa_CompressedMultiTexImage1DEXT()
5514 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage2D() argument
5519 teximage_err(ctx, GL_TRUE, 2, target, level, internalFormat, in _mesa_CompressedTexImage2D()
5526 GLenum internalFormat, GLsizei width, in _mesa_CompressedTextureImage2DEXT() argument
5537 teximage(ctx, GL_TRUE, 2, texObj, target, level, internalFormat, in _mesa_CompressedTextureImage2DEXT()
5544 GLenum internalFormat, GLsizei width, in _mesa_CompressedMultiTexImage2DEXT() argument
5557 teximage(ctx, GL_TRUE, 2, texObj, target, level, internalFormat, in _mesa_CompressedMultiTexImage2DEXT()
5564 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage3D() argument
5569 teximage_err(ctx, GL_TRUE, 3, target, level, internalFormat, width, height, in _mesa_CompressedTexImage3D()
5576 GLenum internalFormat, GLsizei width, in _mesa_CompressedTextureImage3DEXT() argument
5587 teximage(ctx, GL_TRUE, 3, texObj, target, level, internalFormat, in _mesa_CompressedTextureImage3DEXT()
5594 GLenum internalFormat, GLsizei width, in _mesa_CompressedMultiTexImage3DEXT() argument
5607 teximage(ctx, GL_TRUE, 3, texObj, target, level, internalFormat, in _mesa_CompressedMultiTexImage3DEXT()
5614 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage1D_no_error() argument
5619 teximage_no_error(ctx, GL_TRUE, 1, target, level, internalFormat, width, 1, in _mesa_CompressedTexImage1D_no_error()
5626 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage2D_no_error() argument
5631 teximage_no_error(ctx, GL_TRUE, 2, target, level, internalFormat, width, in _mesa_CompressedTexImage2D_no_error()
5638 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage3D_no_error() argument
5643 teximage_no_error(ctx, GL_TRUE, 3, target, level, internalFormat, width, in _mesa_CompressedTexImage3D_no_error()
6068 _mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat) in _mesa_get_texbuffer_format() argument
6071 switch (internalFormat) { in _mesa_get_texbuffer_format()
6159 switch (internalFormat) { in _mesa_get_texbuffer_format()
6171 switch (internalFormat) { in _mesa_get_texbuffer_format()
6249 GLenum internalFormat) in _mesa_validate_texbuffer_format() argument
6251 mesa_format format = _mesa_get_texbuffer_format(ctx, internalFormat); in _mesa_validate_texbuffer_format()
6294 GLenum internalFormat, in texture_buffer_range() argument
6326 format = _mesa_validate_texbuffer_format(ctx, internalFormat); in texture_buffer_range()
6329 caller, _mesa_enum_to_string(internalFormat)); in texture_buffer_range()
6338 texObj->BufferObjectFormat = internalFormat; in texture_buffer_range()
6433 _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer) in _mesa_TexBuffer() argument
6457 texture_buffer_range(ctx, texObj, internalFormat, bufObj, 0, in _mesa_TexBuffer()
6464 _mesa_TexBufferRange(GLenum target, GLenum internalFormat, GLuint buffer, in _mesa_TexBufferRange() argument
6504 texture_buffer_range(ctx, texObj, internalFormat, bufObj, in _mesa_TexBufferRange()
6511 _mesa_TextureBufferRangeEXT(GLuint texture, GLenum target, GLenum internalFormat, in _mesa_TextureBufferRangeEXT() argument
6549 texture_buffer_range(ctx, texObj, internalFormat, bufObj, in _mesa_TextureBufferRangeEXT()
6555 _mesa_TextureBuffer(GLuint texture, GLenum internalFormat, GLuint buffer) in _mesa_TextureBuffer() argument
6577 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBuffer()
6583 GLenum internalFormat, GLuint buffer) in _mesa_TextureBufferEXT() argument
6606 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBufferEXT()
6612 GLenum internalFormat, GLuint buffer) in _mesa_MultiTexBufferEXT() argument
6636 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_MultiTexBufferEXT()
6641 _mesa_TextureBufferRange(GLuint texture, GLenum internalFormat, GLuint buffer, in _mesa_TextureBufferRange() argument
6681 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBufferRange()
7088 GLenum internalFormat, GLsizei width, in _mesa_texture_storage_ms_memory() argument
7096 internalFormat, width, height, depth, in _mesa_texture_storage_ms_memory()