Lines Matching refs:internalFormat

844                         GLint border, GLenum internalFormat,  in _mesa_init_teximage_fields_ms()  argument
855 img->_BaseFormat = _mesa_base_tex_format( ctx, internalFormat ); in _mesa_init_teximage_fields_ms()
857 img->InternalFormat = internalFormat; in _mesa_init_teximage_fields_ms()
950 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields() argument
954 internalFormat, format, 0, GL_TRUE); in _mesa_init_teximage_fields()
1699 GLenum target, GLenum internalFormat) in _mesa_legal_texture_base_format_for_target() argument
1701 if (_mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_COMPONENT in _mesa_legal_texture_base_format_for_target()
1702 || _mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_STENCIL in _mesa_legal_texture_base_format_for_target()
1703 || _mesa_base_tex_format(ctx, internalFormat) == GL_STENCIL_INDEX) { in _mesa_legal_texture_base_format_for_target()
1746 texture_formats_agree(GLenum internalFormat, in texture_formats_agree() argument
1760 _mesa_is_depth_format(internalFormat) || in texture_formats_agree()
1761 _mesa_is_depthstencil_format(internalFormat); in texture_formats_agree()
1769 if (_mesa_is_color_format(internalFormat) && !colorFormat && !indexFormat) in texture_formats_agree()
1776 if (_mesa_is_ycbcr_format(internalFormat) != _mesa_is_ycbcr_format(format)) in texture_formats_agree()
1799 GLenum type, GLenum internalFormat, in texture_format_error_check_gles() argument
1803 internalFormat); in texture_format_error_check_gles()
1809 _mesa_enum_to_string(internalFormat)); in texture_format_error_check_gles()
1844 GLint level, GLint internalFormat, in texture_error_check() argument
1902 if (_mesa_base_tex_format(ctx, internalFormat) < 0) { in texture_error_check()
1905 dimensions, _mesa_enum_to_string(internalFormat)); in texture_error_check()
1915 texture_format_error_check_gles(ctx, format, type, internalFormat, in texture_error_check()
1928 if (!texture_formats_agree(internalFormat, format)) { in texture_error_check()
1931 dimensions, _mesa_enum_to_string(internalFormat), in texture_error_check()
1937 if (internalFormat == GL_YCBCR_MESA) { in texture_error_check()
1968 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalFormat)) { in texture_error_check()
1975 if (_mesa_is_compressed_format(ctx, internalFormat)) { in texture_error_check()
1977 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &err)) { in texture_error_check()
1982 if (_mesa_format_no_online_compression(ctx, internalFormat)) { in texture_error_check()
1997 _mesa_is_enum_format_integer(internalFormat))) { in texture_error_check()
2024 GLenum internalFormat, GLsizei width, in compressed_texture_error_check() argument
2033 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &error)) { in compressed_texture_error_check()
2039 if (!_mesa_is_compressed_format(ctx, internalFormat)) { in compressed_texture_error_check()
2042 dimensions, _mesa_enum_to_string(internalFormat)); in compressed_texture_error_check()
2053 switch (internalFormat) { in compressed_texture_error_check()
2080 expectedSize = _mesa_cpal_compressed_size(level, internalFormat, in compressed_texture_error_check()
2104 expectedSize = compressed_tex_size(width, height, depth, internalFormat); in compressed_texture_error_check()
2109 if (_mesa_base_tex_format(ctx, internalFormat) < 0) { in compressed_texture_error_check()
2226 GLenum internalFormat = _mesa_is_gles(ctx) ? in texsubimage_error_check() local
2237 internalFormat, in texsubimage_error_check()
2297 GLenum target, GLint level, GLint internalFormat, in copytexture_error_check() argument
2351 switch (internalFormat) { in copytexture_error_check()
2361 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2374 if (internalFormat >= 1 && internalFormat <= 4) { in copytexture_error_check()
2377 internalFormat); in copytexture_error_check()
2382 baseFormat = _mesa_base_tex_format(ctx, internalFormat); in copytexture_error_check()
2386 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2390 rb = _mesa_get_read_renderbuffer_for_format(ctx, internalFormat); in copytexture_error_check()
2399 if (_mesa_is_color_format(internalFormat)) { in copytexture_error_check()
2403 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2423 internalFormat == GL_RGB9_E5) { in copytexture_error_check()
2426 if (internalFormat == GL_RGB9_E5) { in copytexture_error_check()
2432 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2446 if (_mesa_get_linear_internalformat(internalFormat) != internalFormat) { in copytexture_error_check()
2471 if (_mesa_is_enum_format_snorm(internalFormat)) { in copytexture_error_check()
2474 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2492 if (_mesa_is_color_format(internalFormat)) { in copytexture_error_check()
2493 bool is_int = _mesa_is_enum_format_integer(internalFormat); in copytexture_error_check()
2495 bool is_unorm = _mesa_is_enum_format_unorm(internalFormat); in copytexture_error_check()
2503 _mesa_is_enum_format_unsigned_int(internalFormat) != in copytexture_error_check()
2526 if (_mesa_is_compressed_format(ctx, internalFormat)) { in copytexture_error_check()
2528 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &err)) { in copytexture_error_check()
2533 if (_mesa_format_no_online_compression(ctx, internalFormat)) { in copytexture_error_check()
2757 override_internal_format(GLenum internalFormat, GLint width, GLint height) in override_internal_format() argument
2760 if (internalFormat == GL_RGBA16F_ARB || in override_internal_format()
2761 internalFormat == GL_RGBA32F_ARB) { in override_internal_format()
2765 else if (internalFormat == GL_RGB16F_ARB || in override_internal_format()
2766 internalFormat == GL_RGB32F_ARB) { in override_internal_format()
2770 else if (internalFormat == GL_LUMINANCE_ALPHA16F_ARB || in override_internal_format()
2771 internalFormat == GL_LUMINANCE_ALPHA32F_ARB) { in override_internal_format()
2775 else if (internalFormat == GL_LUMINANCE16F_ARB || in override_internal_format()
2776 internalFormat == GL_LUMINANCE32F_ARB) { in override_internal_format()
2780 else if (internalFormat == GL_ALPHA16F_ARB || in override_internal_format()
2781 internalFormat == GL_ALPHA32F_ARB) { in override_internal_format()
2791 return internalFormat; in override_internal_format()
2794 return internalFormat; in override_internal_format()
2811 GLenum internalFormat, GLenum format, GLenum type) in _mesa_choose_texture_format() argument
2824 prevImage->InternalFormat == internalFormat) { in _mesa_choose_texture_format()
2831 f = ctx->Driver.ChooseTextureFormat(ctx, target, internalFormat, in _mesa_choose_texture_format()
2894 GLenum target, GLint level, GLint internalFormat, in teximage() argument
2914 _mesa_enum_to_string(internalFormat), in teximage()
2921 _mesa_enum_to_string(internalFormat), in teximage()
2927 internalFormat = override_internal_format(internalFormat, width, height); in teximage()
2940 internalFormat, in teximage()
2945 if (texture_error_check(ctx, dims, target, level, internalFormat, in teximage()
2957 switch (internalFormat) { in teximage()
2968 _mesa_cpal_compressed_teximage2d(target, level, internalFormat, in teximage()
2982 texFormat = _mesa_glenum_to_compressed_format(internalFormat); in teximage()
2988 if (_mesa_is_gles(ctx) && format == internalFormat) { in teximage()
2995 internalFormat = adjust_for_oes_float_texture(ctx, format, type); in teximage()
2999 internalFormat, format, type); in teximage()
3025 border, internalFormat, texFormat); in teximage()
3047 _mesa_enum_to_string(internalFormat)); in teximage()
3077 border, internalFormat, texFormat); in teximage()
3108 GLenum target, GLint level, GLint internalFormat, in teximage_err() argument
3113 teximage(ctx, compressed, dims, target, level, internalFormat, width, height, in teximage_err()
3120 GLenum target, GLint level, GLint internalFormat, in teximage_no_error() argument
3125 teximage(ctx, compressed, dims, target, level, internalFormat, width, height, in teximage_no_error()
3134 _mesa_TexImage1D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage1D() argument
3139 teximage_err(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1, 1, in _mesa_TexImage1D()
3145 _mesa_TexImage2D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage2D() argument
3151 teximage_err(ctx, GL_FALSE, 2, target, level, internalFormat, width, height, 1, in _mesa_TexImage2D()
3161 _mesa_TexImage3D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage3D() argument
3167 teximage_err(ctx, GL_FALSE, 3, target, level, internalFormat, in _mesa_TexImage3D()
3173 _mesa_TexImage3DEXT( GLenum target, GLint level, GLenum internalFormat, in _mesa_TexImage3DEXT() argument
3178 _mesa_TexImage3D(target, level, (GLint) internalFormat, width, height, in _mesa_TexImage3DEXT()
3184 _mesa_TexImage1D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage1D_no_error() argument
3189 teximage_no_error(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1, in _mesa_TexImage1D_no_error()
3195 _mesa_TexImage2D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage2D_no_error() argument
3200 teximage_no_error(ctx, GL_FALSE, 2, target, level, internalFormat, width, in _mesa_TexImage2D_no_error()
3206 _mesa_TexImage3D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage3D_no_error() argument
3212 teximage_no_error(ctx, GL_FALSE, 3, target, level, internalFormat, in _mesa_TexImage3D_no_error()
3788 GLenum internalFormat, in can_avoid_reallocation() argument
3792 if (texImage->InternalFormat != internalFormat) in can_avoid_reallocation()
3906 GLenum target, GLint level, GLenum internalFormat, in copyteximage() argument
3920 _mesa_enum_to_string(internalFormat), in copyteximage()
3927 if (copytexture_error_check(ctx, dims, target, level, internalFormat, in copyteximage()
3944 internalFormat, GL_NONE, GL_NONE); in copyteximage()
3952 if (texImage && can_avoid_reallocation(texImage, internalFormat, texFormat, in copyteximage()
3971 _mesa_get_read_renderbuffer_for_format(ctx, internalFormat); in copyteximage()
3973 if (_mesa_is_enum_format_unsized(internalFormat)) { in copyteximage()
4038 border, internalFormat, texFormat); in copyteximage()
4068 GLint level, GLenum internalFormat, GLint x, GLint y, in copyteximage_err() argument
4071 copyteximage(ctx, dims, target, level, internalFormat, x, y, width, height, in copyteximage_err()
4078 GLint level, GLenum internalFormat, GLint x, GLint y, in copyteximage_no_error() argument
4081 copyteximage(ctx, dims, target, level, internalFormat, x, y, width, height, in copyteximage_no_error()
4088 GLenum internalFormat, in _mesa_CopyTexImage1D() argument
4093 copyteximage_err(ctx, 1, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTexImage1D()
4099 _mesa_CopyTexImage2D( GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage2D() argument
4104 copyteximage_err(ctx, 2, target, level, internalFormat, in _mesa_CopyTexImage2D()
4110 _mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage1D_no_error() argument
4114 copyteximage_no_error(ctx, 1, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTexImage1D_no_error()
4120 _mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage2D_no_error() argument
4125 copyteximage_no_error(ctx, 2, target, level, internalFormat, in _mesa_CopyTexImage2D_no_error()
4387 GLenum internalFormat = texImage->InternalFormat; in check_clear_tex_image() local
4396 if (_mesa_is_compressed_format(ctx, internalFormat)) { in check_clear_tex_image()
4413 if (!texture_formats_agree(internalFormat, format)) { in check_clear_tex_image()
4417 _mesa_enum_to_string(internalFormat), in check_clear_tex_image()
4835 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage1D() argument
4840 teximage_err(ctx, GL_TRUE, 1, target, level, internalFormat, in _mesa_CompressedTexImage1D()
4847 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage2D() argument
4852 teximage_err(ctx, GL_TRUE, 2, target, level, internalFormat, in _mesa_CompressedTexImage2D()
4859 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage3D() argument
4864 teximage_err(ctx, GL_TRUE, 3, target, level, internalFormat, width, height, in _mesa_CompressedTexImage3D()
4871 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage1D_no_error() argument
4876 teximage_no_error(ctx, GL_TRUE, 1, target, level, internalFormat, width, 1, in _mesa_CompressedTexImage1D_no_error()
4883 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage2D_no_error() argument
4888 teximage_no_error(ctx, GL_TRUE, 2, target, level, internalFormat, width, in _mesa_CompressedTexImage2D_no_error()
4895 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage3D_no_error() argument
4900 teximage_no_error(ctx, GL_TRUE, 3, target, level, internalFormat, width, in _mesa_CompressedTexImage3D_no_error()
5202 _mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat) in _mesa_get_texbuffer_format() argument
5205 switch (internalFormat) { in _mesa_get_texbuffer_format()
5293 switch (internalFormat) { in _mesa_get_texbuffer_format()
5305 switch (internalFormat) { in _mesa_get_texbuffer_format()
5383 GLenum internalFormat) in _mesa_validate_texbuffer_format() argument
5385 mesa_format format = _mesa_get_texbuffer_format(ctx, internalFormat); in _mesa_validate_texbuffer_format()
5428 GLenum internalFormat, in texture_buffer_range() argument
5460 format = _mesa_validate_texbuffer_format(ctx, internalFormat); in texture_buffer_range()
5463 caller, _mesa_enum_to_string(internalFormat)); in texture_buffer_range()
5472 texObj->BufferObjectFormat = internalFormat; in texture_buffer_range()
5567 _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer) in _mesa_TexBuffer() argument
5591 texture_buffer_range(ctx, texObj, internalFormat, bufObj, 0, in _mesa_TexBuffer()
5598 _mesa_TexBufferRange(GLenum target, GLenum internalFormat, GLuint buffer, in _mesa_TexBufferRange() argument
5638 texture_buffer_range(ctx, texObj, internalFormat, bufObj, in _mesa_TexBufferRange()
5643 _mesa_TextureBuffer(GLuint texture, GLenum internalFormat, GLuint buffer) in _mesa_TextureBuffer() argument
5665 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBuffer()
5670 _mesa_TextureBufferRange(GLuint texture, GLenum internalFormat, GLuint buffer, in _mesa_TextureBufferRange() argument
5710 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBufferRange()
6071 GLenum internalFormat, GLsizei width, in _mesa_texture_storage_ms_memory() argument
6079 internalFormat, width, height, depth, in _mesa_texture_storage_ms_memory()