• Home
  • Raw
  • Download

Lines Matching refs:internalFormat

828                         GLint border, GLenum internalFormat,  in _mesa_init_teximage_fields_ms()  argument
832 const GLint base_format =_mesa_base_tex_format(ctx, internalFormat); in _mesa_init_teximage_fields_ms()
842 img->InternalFormat = internalFormat; in _mesa_init_teximage_fields_ms()
935 GLint border, GLenum internalFormat, in _mesa_init_teximage_fields() argument
939 internalFormat, format, 0, GL_TRUE); in _mesa_init_teximage_fields()
1682 GLenum target, GLenum internalFormat) in _mesa_legal_texture_base_format_for_target() argument
1684 if (_mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_COMPONENT in _mesa_legal_texture_base_format_for_target()
1685 || _mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_STENCIL in _mesa_legal_texture_base_format_for_target()
1686 || _mesa_base_tex_format(ctx, internalFormat) == GL_STENCIL_INDEX) { in _mesa_legal_texture_base_format_for_target()
1729 texture_formats_agree(GLenum internalFormat, in texture_formats_agree() argument
1743 _mesa_is_depth_format(internalFormat) || in texture_formats_agree()
1744 _mesa_is_depthstencil_format(internalFormat); in texture_formats_agree()
1752 if (_mesa_is_color_format(internalFormat) && !colorFormat && !indexFormat) in texture_formats_agree()
1759 if (_mesa_is_ycbcr_format(internalFormat) != _mesa_is_ycbcr_format(format)) in texture_formats_agree()
1781 GLenum type, GLenum internalFormat, const char *callerName) in texture_format_error_check_gles() argument
1784 internalFormat); in texture_format_error_check_gles()
1790 _mesa_enum_to_string(internalFormat)); in texture_format_error_check_gles()
1826 GLint level, GLint internalFormat, in texture_error_check() argument
1884 if (_mesa_base_tex_format(ctx, internalFormat) < 0) { in texture_error_check()
1887 dimensions, _mesa_enum_to_string(internalFormat)); in texture_error_check()
1900 internalFormat, bufCallerName)) { in texture_error_check()
1912 if (!texture_formats_agree(internalFormat, format)) { in texture_error_check()
1915 dimensions, _mesa_enum_to_string(internalFormat), in texture_error_check()
1921 if (internalFormat == GL_YCBCR_MESA) { in texture_error_check()
1952 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalFormat)) { in texture_error_check()
1959 if (_mesa_is_compressed_format(ctx, internalFormat)) { in texture_error_check()
1961 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &err)) { in texture_error_check()
1966 if (_mesa_format_no_online_compression(internalFormat)) { in texture_error_check()
1981 _mesa_is_enum_format_integer(internalFormat))) { in texture_error_check()
2008 GLint level, GLenum internalFormat, GLsizei width, in compressed_texture_error_check() argument
2017 if (!_mesa_target_can_be_compressed(ctx, target, internalFormat, &error)) { in compressed_texture_error_check()
2023 if (!_mesa_is_compressed_format(ctx, internalFormat)) { in compressed_texture_error_check()
2026 dimensions, _mesa_enum_to_string(internalFormat)); in compressed_texture_error_check()
2037 switch (internalFormat) { in compressed_texture_error_check()
2064 expectedSize = _mesa_cpal_compressed_size(level, internalFormat, in compressed_texture_error_check()
2088 expectedSize = compressed_tex_size(width, height, depth, internalFormat); in compressed_texture_error_check()
2093 if (_mesa_base_tex_format(ctx, internalFormat) < 0) { in compressed_texture_error_check()
2219 GLenum internalFormat = _mesa_is_gles(ctx) ? in texsubimage_error_check() local
2230 internalFormat, callerName)) { in texsubimage_error_check()
2290 GLint level, GLint internalFormat, GLint border ) in copytexture_error_check() argument
2336 switch (internalFormat) { in copytexture_error_check()
2364 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2377 if (internalFormat >= 1 && internalFormat <= 4) { in copytexture_error_check()
2380 internalFormat); in copytexture_error_check()
2385 baseFormat = _mesa_base_tex_format(ctx, internalFormat); in copytexture_error_check()
2389 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2393 rb = _mesa_get_read_renderbuffer_for_format(ctx, internalFormat); in copytexture_error_check()
2402 if (_mesa_is_color_format(internalFormat)) { in copytexture_error_check()
2406 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2426 internalFormat == GL_RGB9_E5) { in copytexture_error_check()
2429 if (internalFormat == GL_RGB9_E5) { in copytexture_error_check()
2435 _mesa_enum_to_string(internalFormat)); in copytexture_error_check()
2445 if (_mesa_get_linear_internalformat(internalFormat) != internalFormat) { in copytexture_error_check()
2471 _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(internalFormat)) { in copytexture_error_check()
2770 override_internal_format(GLenum internalFormat, UNUSED GLint width, in override_internal_format() argument
2774 if (internalFormat == GL_RGBA16F_ARB || in override_internal_format()
2775 internalFormat == GL_RGBA32F_ARB) { in override_internal_format()
2779 else if (internalFormat == GL_RGB16F_ARB || in override_internal_format()
2780 internalFormat == GL_RGB32F_ARB) { in override_internal_format()
2784 else if (internalFormat == GL_LUMINANCE_ALPHA16F_ARB || in override_internal_format()
2785 internalFormat == GL_LUMINANCE_ALPHA32F_ARB) { in override_internal_format()
2789 else if (internalFormat == GL_LUMINANCE16F_ARB || in override_internal_format()
2790 internalFormat == GL_LUMINANCE32F_ARB) { in override_internal_format()
2794 else if (internalFormat == GL_ALPHA16F_ARB || in override_internal_format()
2795 internalFormat == GL_ALPHA32F_ARB) { in override_internal_format()
2805 return internalFormat; in override_internal_format()
2808 return internalFormat; in override_internal_format()
2825 GLenum internalFormat, GLenum format, GLenum type) in _mesa_choose_texture_format() argument
2838 prevImage->InternalFormat == internalFormat) { in _mesa_choose_texture_format()
2845 f = st_ChooseTextureFormat(ctx, target, internalFormat, in _mesa_choose_texture_format()
2971 GLenum target, GLint level, GLint internalFormat, in teximage() argument
2990 _mesa_enum_to_string(internalFormat), in teximage()
2997 _mesa_enum_to_string(internalFormat), in teximage()
3003 internalFormat = override_internal_format(internalFormat, width, height); in teximage()
3020 level, internalFormat, in teximage()
3025 if (texture_error_check(ctx, dims, target, texObj, level, internalFormat, in teximage()
3038 switch (internalFormat) { in teximage()
3049 _mesa_cpal_compressed_teximage2d(target, level, internalFormat, in teximage()
3060 texFormat = _mesa_glenum_to_compressed_format(internalFormat); in teximage()
3066 if (_mesa_is_gles(ctx) && format == internalFormat) { in teximage()
3073 internalFormat = adjust_for_oes_float_texture(ctx, format, type); in teximage()
3077 internalFormat, format, type); in teximage()
3103 border, internalFormat, texFormat); in teximage()
3125 _mesa_enum_to_string(internalFormat)); in teximage()
3156 border, internalFormat, texFormat); in teximage()
3187 GLenum target, GLint level, GLint internalFormat, in teximage_err() argument
3192 teximage(ctx, compressed, dims, NULL, target, level, internalFormat, width, height, in teximage_err()
3199 GLenum target, GLint level, GLint internalFormat, in teximage_no_error() argument
3204 teximage(ctx, compressed, dims, NULL, target, level, internalFormat, width, height, in teximage_no_error()
3213 _mesa_TexImage1D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage1D() argument
3218 teximage_err(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1, 1, in _mesa_TexImage1D()
3224 GLint internalFormat, GLsizei width, GLint border, in _mesa_TextureImage1DEXT() argument
3234 teximage(ctx, GL_FALSE, 1, texObj, target, level, internalFormat, in _mesa_TextureImage1DEXT()
3240 GLint internalFormat, GLsizei width, GLint border, in _mesa_MultiTexImage1DEXT() argument
3252 teximage(ctx, GL_FALSE, 1, texObj, target, level, internalFormat, width, 1, 1, in _mesa_MultiTexImage1DEXT()
3257 _mesa_TexImage2D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage2D() argument
3263 teximage_err(ctx, GL_FALSE, 2, target, level, internalFormat, width, height, 1, in _mesa_TexImage2D()
3269 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_TextureImage2DEXT() argument
3280 teximage(ctx, GL_FALSE, 2, texObj, target, level, internalFormat, in _mesa_TextureImage2DEXT()
3286 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_MultiTexImage2DEXT() argument
3299 teximage(ctx, GL_FALSE, 2, texObj, target, level, internalFormat, width, height, 1, in _mesa_MultiTexImage2DEXT()
3308 _mesa_TexImage3D( GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage3D() argument
3314 teximage_err(ctx, GL_FALSE, 3, target, level, internalFormat, in _mesa_TexImage3D()
3320 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_TextureImage3DEXT() argument
3331 teximage(ctx, GL_FALSE, 3, texObj, target, level, internalFormat, in _mesa_TextureImage3DEXT()
3338 GLint internalFormat, GLsizei width, GLsizei height, in _mesa_MultiTexImage3DEXT() argument
3351 teximage(ctx, GL_FALSE, 3, texObj, target, level, internalFormat, in _mesa_MultiTexImage3DEXT()
3357 _mesa_TexImage1D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage1D_no_error() argument
3362 teximage_no_error(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1, in _mesa_TexImage1D_no_error()
3368 _mesa_TexImage2D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage2D_no_error() argument
3373 teximage_no_error(ctx, GL_FALSE, 2, target, level, internalFormat, width, in _mesa_TexImage2D_no_error()
3379 _mesa_TexImage3D_no_error(GLenum target, GLint level, GLint internalFormat, in _mesa_TexImage3D_no_error() argument
3385 teximage_no_error(ctx, GL_FALSE, 3, target, level, internalFormat, in _mesa_TexImage3D_no_error()
4145 GLenum internalFormat, in can_avoid_reallocation() argument
4149 if (texImage->InternalFormat != internalFormat) in can_avoid_reallocation()
4268 GLenum target, GLint level, GLenum internalFormat, in copyteximage() argument
4281 _mesa_enum_to_string(internalFormat), in copyteximage()
4301 internalFormat, border)) in copyteximage()
4316 internalFormat, GL_NONE, GL_NONE); in copyteximage()
4324 if (texImage && can_avoid_reallocation(texImage, internalFormat, texFormat, in copyteximage()
4343 _mesa_get_read_renderbuffer_for_format(ctx, internalFormat); in copyteximage()
4345 if (_mesa_is_enum_format_unsized(internalFormat)) { in copyteximage()
4411 border, internalFormat, texFormat); in copyteximage()
4443 GLint level, GLenum internalFormat, GLint x, GLint y, in copyteximage_err() argument
4446 copyteximage(ctx, dims, NULL, target, level, internalFormat, x, y, width, height, in copyteximage_err()
4453 GLint level, GLenum internalFormat, GLint x, GLint y, in copyteximage_no_error() argument
4456 copyteximage(ctx, dims, NULL, target, level, internalFormat, x, y, width, height, in copyteximage_no_error()
4463 GLenum internalFormat, in _mesa_CopyTexImage1D() argument
4468 copyteximage_err(ctx, 1, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTexImage1D()
4475 GLenum internalFormat, in _mesa_CopyTextureImage1DEXT() argument
4485 copyteximage(ctx, 1, texObj, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTextureImage1DEXT()
4492 GLenum internalFormat, in _mesa_CopyMultiTexImage1DEXT() argument
4504 copyteximage(ctx, 1, texObj, target, level, internalFormat, x, y, width, 1, in _mesa_CopyMultiTexImage1DEXT()
4510 _mesa_CopyTexImage2D( GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage2D() argument
4515 copyteximage_err(ctx, 2, target, level, internalFormat, in _mesa_CopyTexImage2D()
4522 GLenum internalFormat, in _mesa_CopyTextureImage2DEXT() argument
4533 copyteximage(ctx, 2, texObj, target, level, internalFormat, x, y, width, height, in _mesa_CopyTextureImage2DEXT()
4540 GLenum internalFormat, in _mesa_CopyMultiTexImage2DEXT() argument
4552 copyteximage(ctx, 2, texObj, target, level, internalFormat, x, y, width, height, in _mesa_CopyMultiTexImage2DEXT()
4558 _mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage1D_no_error() argument
4562 copyteximage_no_error(ctx, 1, target, level, internalFormat, x, y, width, 1, in _mesa_CopyTexImage1D_no_error()
4568 _mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalFormat, in _mesa_CopyTexImage2D_no_error() argument
4573 copyteximage_no_error(ctx, 2, target, level, internalFormat, in _mesa_CopyTexImage2D_no_error()
4984 GLenum internalFormat = texImage->InternalFormat; in check_clear_tex_image() local
4993 if (_mesa_is_compressed_format(ctx, internalFormat)) { in check_clear_tex_image()
5010 if (!texture_formats_agree(internalFormat, format)) { in check_clear_tex_image()
5014 _mesa_enum_to_string(internalFormat), in check_clear_tex_image()
5474 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage1D() argument
5479 teximage_err(ctx, GL_TRUE, 1, target, level, internalFormat, in _mesa_CompressedTexImage1D()
5486 GLenum internalFormat, GLsizei width, in _mesa_CompressedTextureImage1DEXT() argument
5497 teximage(ctx, GL_TRUE, 1, texObj, target, level, internalFormat, in _mesa_CompressedTextureImage1DEXT()
5504 GLenum internalFormat, GLsizei width, in _mesa_CompressedMultiTexImage1DEXT() argument
5517 teximage(ctx, GL_TRUE, 1, texObj, target, level, internalFormat, in _mesa_CompressedMultiTexImage1DEXT()
5524 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage2D() argument
5529 teximage_err(ctx, GL_TRUE, 2, target, level, internalFormat, in _mesa_CompressedTexImage2D()
5536 GLenum internalFormat, GLsizei width, in _mesa_CompressedTextureImage2DEXT() argument
5547 teximage(ctx, GL_TRUE, 2, texObj, target, level, internalFormat, in _mesa_CompressedTextureImage2DEXT()
5554 GLenum internalFormat, GLsizei width, in _mesa_CompressedMultiTexImage2DEXT() argument
5567 teximage(ctx, GL_TRUE, 2, texObj, target, level, internalFormat, in _mesa_CompressedMultiTexImage2DEXT()
5574 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage3D() argument
5579 teximage_err(ctx, GL_TRUE, 3, target, level, internalFormat, width, height, in _mesa_CompressedTexImage3D()
5586 GLenum internalFormat, GLsizei width, in _mesa_CompressedTextureImage3DEXT() argument
5597 teximage(ctx, GL_TRUE, 3, texObj, target, level, internalFormat, in _mesa_CompressedTextureImage3DEXT()
5604 GLenum internalFormat, GLsizei width, in _mesa_CompressedMultiTexImage3DEXT() argument
5617 teximage(ctx, GL_TRUE, 3, texObj, target, level, internalFormat, in _mesa_CompressedMultiTexImage3DEXT()
5624 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage1D_no_error() argument
5629 teximage_no_error(ctx, GL_TRUE, 1, target, level, internalFormat, width, 1, in _mesa_CompressedTexImage1D_no_error()
5636 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage2D_no_error() argument
5641 teximage_no_error(ctx, GL_TRUE, 2, target, level, internalFormat, width, in _mesa_CompressedTexImage2D_no_error()
5648 GLenum internalFormat, GLsizei width, in _mesa_CompressedTexImage3D_no_error() argument
5653 teximage_no_error(ctx, GL_TRUE, 3, target, level, internalFormat, width, in _mesa_CompressedTexImage3D_no_error()
6078 _mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat) in _mesa_get_texbuffer_format() argument
6081 switch (internalFormat) { in _mesa_get_texbuffer_format()
6169 switch (internalFormat) { in _mesa_get_texbuffer_format()
6181 switch (internalFormat) { in _mesa_get_texbuffer_format()
6259 GLenum internalFormat) in _mesa_validate_texbuffer_format() argument
6261 mesa_format format = _mesa_get_texbuffer_format(ctx, internalFormat); in _mesa_validate_texbuffer_format()
6304 GLenum internalFormat, in texture_buffer_range() argument
6337 format = _mesa_validate_texbuffer_format(ctx, internalFormat); in texture_buffer_range()
6340 caller, _mesa_enum_to_string(internalFormat)); in texture_buffer_range()
6349 texObj->BufferObjectFormat = internalFormat; in texture_buffer_range()
6447 _mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer) in _mesa_TexBuffer() argument
6471 texture_buffer_range(ctx, texObj, internalFormat, bufObj, 0, in _mesa_TexBuffer()
6478 _mesa_TexBufferRange(GLenum target, GLenum internalFormat, GLuint buffer, in _mesa_TexBufferRange() argument
6518 texture_buffer_range(ctx, texObj, internalFormat, bufObj, in _mesa_TexBufferRange()
6525 _mesa_TextureBufferRangeEXT(GLuint texture, GLenum target, GLenum internalFormat, in _mesa_TextureBufferRangeEXT() argument
6563 texture_buffer_range(ctx, texObj, internalFormat, bufObj, in _mesa_TextureBufferRangeEXT()
6569 _mesa_TextureBuffer(GLuint texture, GLenum internalFormat, GLuint buffer) in _mesa_TextureBuffer() argument
6591 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBuffer()
6597 GLenum internalFormat, GLuint buffer) in _mesa_TextureBufferEXT() argument
6620 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBufferEXT()
6626 GLenum internalFormat, GLuint buffer) in _mesa_MultiTexBufferEXT() argument
6650 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_MultiTexBufferEXT()
6655 _mesa_TextureBufferRange(GLuint texture, GLenum internalFormat, GLuint buffer, in _mesa_TextureBufferRange() argument
6695 texture_buffer_range(ctx, texObj, internalFormat, in _mesa_TextureBufferRange()
7094 GLenum internalFormat, GLsizei width, in _mesa_texture_storage_ms_memory() argument
7102 internalFormat, width, height, depth, in _mesa_texture_storage_ms_memory()