• Home
  • Raw
  • Download

Lines Matching refs:internalFormat

832 is_astc_2d_format(GLenum internalFormat)  in is_astc_2d_format()  argument
834 switch (internalFormat) { in is_astc_2d_format()
873 is_astc_3d_format(GLenum internalFormat) in is_astc_3d_format() argument
875 switch (internalFormat) { in is_astc_3d_format()
906 _mesa_is_astc_format(GLenum internalFormat) in _mesa_is_astc_format() argument
908 return is_astc_2d_format(internalFormat) || in _mesa_is_astc_format()
909 is_astc_3d_format(internalFormat); in _mesa_is_astc_format()
916 _mesa_is_etc2_format(GLenum internalFormat) in _mesa_is_etc2_format() argument
918 switch (internalFormat) { in _mesa_is_etc2_format()
1342 _mesa_has_depth_float_channel(GLenum internalFormat) in _mesa_has_depth_float_channel() argument
1344 return internalFormat == GL_DEPTH32F_STENCIL8 || in _mesa_has_depth_float_channel()
1345 internalFormat == GL_DEPTH_COMPONENT32F; in _mesa_has_depth_float_channel()
2265 _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat) in _mesa_base_tex_format() argument
2267 switch (internalFormat) { in _mesa_base_tex_format()
2325 switch (internalFormat) { in _mesa_base_tex_format()
2336 switch (internalFormat) { in _mesa_base_tex_format()
2346 switch (internalFormat) { in _mesa_base_tex_format()
2362 switch (internalFormat) { in _mesa_base_tex_format()
2374 switch (internalFormat) { in _mesa_base_tex_format()
2391 if (_mesa_is_compressed_format(ctx, internalFormat)) { in _mesa_base_tex_format()
2393 _mesa_gl_compressed_format_base_format(internalFormat); in _mesa_base_tex_format()
2399 is_astc_2d_format(internalFormat)) || in _mesa_base_tex_format()
2401 is_astc_3d_format(internalFormat))) in _mesa_base_tex_format()
2405 if (internalFormat == GL_YCBCR_MESA) in _mesa_base_tex_format()
2410 switch (internalFormat) { in _mesa_base_tex_format()
2427 switch (internalFormat) { in _mesa_base_tex_format()
2444 switch (internalFormat) { in _mesa_base_tex_format()
2483 switch (internalFormat) { in _mesa_base_tex_format()
2506 switch (internalFormat) { in _mesa_base_tex_format()
2515 switch (internalFormat) { in _mesa_base_tex_format()
2534 switch (internalFormat) { in _mesa_base_tex_format()
2541 switch (internalFormat) { in _mesa_base_tex_format()
2576 switch (internalFormat) { in _mesa_base_tex_format()
2628 switch (internalFormat) { in _mesa_base_tex_format()
2637 switch (internalFormat) { in _mesa_base_tex_format()
2646 switch (internalFormat) { in _mesa_base_tex_format()
2793 GLenum internalFormat) in _mesa_gles_error_check_format_and_type() argument
2809 if (_mesa_is_enum_format_unsized(internalFormat)) { in _mesa_gles_error_check_format_and_type()
2817 if (internalFormat == GL_BGRA_EXT) { in _mesa_gles_error_check_format_and_type()
2830 if (internalFormat != baseInternalFormat) in _mesa_gles_error_check_format_and_type()
2833 internalFormat = effectiveInternalFormat; in _mesa_gles_error_check_format_and_type()
2840 (internalFormat == GL_COMPRESSED_RGB_S3TC_DXT1_EXT || in _mesa_gles_error_check_format_and_type()
2841 internalFormat == GL_COMPRESSED_RGBA_S3TC_DXT1_EXT || in _mesa_gles_error_check_format_and_type()
2842 internalFormat == GL_COMPRESSED_RGBA_S3TC_DXT3_EXT || in _mesa_gles_error_check_format_and_type()
2843 internalFormat == GL_COMPRESSED_RGBA_S3TC_DXT5_EXT)) in _mesa_gles_error_check_format_and_type()
2849 if (type != GL_UNSIGNED_BYTE || internalFormat != GL_BGRA) in _mesa_gles_error_check_format_and_type()
2856 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
2877 if (ctx->Version <= 20 || internalFormat != GL_RGBA8_SNORM) in _mesa_gles_error_check_format_and_type()
2882 if (!_mesa_has_EXT_texture_norm16(ctx) || internalFormat != GL_RGBA16) in _mesa_gles_error_check_format_and_type()
2888 internalFormat != GL_RGBA16_SNORM) in _mesa_gles_error_check_format_and_type()
2893 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
2903 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
2913 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
2926 if (ctx->Version <= 20 || internalFormat != GL_RGBA16F) in _mesa_gles_error_check_format_and_type()
2931 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
2938 if (!_mesa_has_OES_texture_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
2947 if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
2960 if (internalFormat != GL_RGBA8UI) in _mesa_gles_error_check_format_and_type()
2965 if (internalFormat != GL_RGBA8I) in _mesa_gles_error_check_format_and_type()
2970 if (internalFormat != GL_RGBA16UI) in _mesa_gles_error_check_format_and_type()
2975 if (internalFormat != GL_RGBA16I) in _mesa_gles_error_check_format_and_type()
2980 if (internalFormat != GL_RGBA32UI) in _mesa_gles_error_check_format_and_type()
2985 if (internalFormat != GL_RGBA32I) in _mesa_gles_error_check_format_and_type()
2990 if (internalFormat != GL_RGB10_A2UI) in _mesa_gles_error_check_format_and_type()
3002 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3017 if (ctx->Version <= 20 || internalFormat != GL_RGB8_SNORM) in _mesa_gles_error_check_format_and_type()
3022 if (!_mesa_has_EXT_texture_norm16(ctx) || internalFormat != GL_RGB16) in _mesa_gles_error_check_format_and_type()
3028 internalFormat != GL_RGB16_SNORM) in _mesa_gles_error_check_format_and_type()
3033 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3043 if (ctx->Version <= 20 || internalFormat != GL_R11F_G11F_B10F) in _mesa_gles_error_check_format_and_type()
3048 if (ctx->Version <= 20 || internalFormat != GL_RGB9_E5) in _mesa_gles_error_check_format_and_type()
3055 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3066 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3080 if (!_mesa_has_OES_texture_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3089 if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3094 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3121 if (internalFormat != GL_RGB8UI) in _mesa_gles_error_check_format_and_type()
3126 if (internalFormat != GL_RGB8I) in _mesa_gles_error_check_format_and_type()
3131 if (internalFormat != GL_RGB16UI) in _mesa_gles_error_check_format_and_type()
3136 if (internalFormat != GL_RGB16I) in _mesa_gles_error_check_format_and_type()
3141 if (internalFormat != GL_RGB32UI) in _mesa_gles_error_check_format_and_type()
3146 if (internalFormat != GL_RGB32I) in _mesa_gles_error_check_format_and_type()
3160 if (internalFormat != GL_RG8 && in _mesa_gles_error_check_format_and_type()
3162 internalFormat != GL_COMPRESSED_RED_GREEN_RGTC2_EXT)) in _mesa_gles_error_check_format_and_type()
3167 if (internalFormat != GL_RG8_SNORM && in _mesa_gles_error_check_format_and_type()
3169 internalFormat != GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT)) in _mesa_gles_error_check_format_and_type()
3174 if (!_mesa_has_EXT_texture_norm16(ctx) || internalFormat != GL_RG16) in _mesa_gles_error_check_format_and_type()
3180 internalFormat != GL_RG16_SNORM) in _mesa_gles_error_check_format_and_type()
3186 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3202 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3226 if (internalFormat != GL_RG8UI) in _mesa_gles_error_check_format_and_type()
3231 if (internalFormat != GL_RG8I) in _mesa_gles_error_check_format_and_type()
3236 if (internalFormat != GL_RG16UI) in _mesa_gles_error_check_format_and_type()
3241 if (internalFormat != GL_RG16I) in _mesa_gles_error_check_format_and_type()
3246 if (internalFormat != GL_RG32UI) in _mesa_gles_error_check_format_and_type()
3251 if (internalFormat != GL_RG32I) in _mesa_gles_error_check_format_and_type()
3265 if (internalFormat == GL_R8 || in _mesa_gles_error_check_format_and_type()
3266 ((internalFormat == GL_SR8_EXT) && in _mesa_gles_error_check_format_and_type()
3268 (internalFormat == GL_COMPRESSED_RED_RGTC1_EXT && in _mesa_gles_error_check_format_and_type()
3274 if (internalFormat != GL_R8_SNORM && in _mesa_gles_error_check_format_and_type()
3276 internalFormat != GL_COMPRESSED_SIGNED_RED_RGTC1_EXT)) in _mesa_gles_error_check_format_and_type()
3281 if (!_mesa_has_EXT_texture_norm16(ctx) || internalFormat != GL_R16) in _mesa_gles_error_check_format_and_type()
3287 internalFormat != GL_R16_SNORM) in _mesa_gles_error_check_format_and_type()
3293 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3310 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3334 if (internalFormat != GL_R8UI) in _mesa_gles_error_check_format_and_type()
3339 if (internalFormat != GL_R8I) in _mesa_gles_error_check_format_and_type()
3344 if (internalFormat != GL_R16UI) in _mesa_gles_error_check_format_and_type()
3349 if (internalFormat != GL_R16I) in _mesa_gles_error_check_format_and_type()
3354 if (internalFormat != GL_R32UI) in _mesa_gles_error_check_format_and_type()
3359 if (internalFormat != GL_R32I) in _mesa_gles_error_check_format_and_type()
3371 if (internalFormat != GL_DEPTH_COMPONENT in _mesa_gles_error_check_format_and_type()
3372 && internalFormat != GL_DEPTH_COMPONENT16) in _mesa_gles_error_check_format_and_type()
3377 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3388 if (ctx->Version <= 20 || internalFormat != GL_DEPTH_COMPONENT32F) in _mesa_gles_error_check_format_and_type()
3400 if (internalFormat != GL_DEPTH_STENCIL in _mesa_gles_error_check_format_and_type()
3401 && internalFormat != GL_DEPTH24_STENCIL8) in _mesa_gles_error_check_format_and_type()
3406 if (ctx->Version <= 20 || internalFormat != GL_DEPTH32F_STENCIL8) in _mesa_gles_error_check_format_and_type()
3418 internalFormat != GL_STENCIL_INDEX8) { in _mesa_gles_error_check_format_and_type()
3428 if (!_mesa_has_OES_texture_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3432 if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3436 if (!(format == internalFormat || in _mesa_gles_error_check_format_and_type()
3437 (format == GL_ALPHA && internalFormat == GL_ALPHA8) || in _mesa_gles_error_check_format_and_type()
3438 (format == GL_LUMINANCE && internalFormat == GL_LUMINANCE8) || in _mesa_gles_error_check_format_and_type()
3440 ((internalFormat == GL_LUMINANCE8_ALPHA8) || in _mesa_gles_error_check_format_and_type()
3441 (internalFormat == GL_LUMINANCE4_ALPHA4))))) { in _mesa_gles_error_check_format_and_type()