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()
1344 _mesa_has_depth_float_channel(GLenum internalFormat) in _mesa_has_depth_float_channel() argument
1346 return internalFormat == GL_DEPTH32F_STENCIL8 || in _mesa_has_depth_float_channel()
1347 internalFormat == GL_DEPTH_COMPONENT32F; in _mesa_has_depth_float_channel()
2269 _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat) in _mesa_base_tex_format() argument
2271 switch (internalFormat) { in _mesa_base_tex_format()
2329 switch (internalFormat) { in _mesa_base_tex_format()
2340 switch (internalFormat) { in _mesa_base_tex_format()
2349 switch (internalFormat) { in _mesa_base_tex_format()
2365 switch (internalFormat) { in _mesa_base_tex_format()
2377 switch (internalFormat) { in _mesa_base_tex_format()
2394 if (_mesa_is_compressed_format(ctx, internalFormat)) { in _mesa_base_tex_format()
2396 _mesa_gl_compressed_format_base_format(internalFormat); in _mesa_base_tex_format()
2402 is_astc_2d_format(internalFormat)) || in _mesa_base_tex_format()
2404 is_astc_3d_format(internalFormat))) in _mesa_base_tex_format()
2408 if (internalFormat == GL_YCBCR_MESA) in _mesa_base_tex_format()
2413 switch (internalFormat) { in _mesa_base_tex_format()
2430 switch (internalFormat) { in _mesa_base_tex_format()
2447 switch (internalFormat) { in _mesa_base_tex_format()
2486 switch (internalFormat) { in _mesa_base_tex_format()
2509 switch (internalFormat) { in _mesa_base_tex_format()
2518 switch (internalFormat) { in _mesa_base_tex_format()
2527 switch (internalFormat) { in _mesa_base_tex_format()
2546 switch (internalFormat) { in _mesa_base_tex_format()
2553 switch (internalFormat) { in _mesa_base_tex_format()
2588 switch (internalFormat) { in _mesa_base_tex_format()
2640 switch (internalFormat) { in _mesa_base_tex_format()
2649 switch (internalFormat) { in _mesa_base_tex_format()
2658 switch (internalFormat) { in _mesa_base_tex_format()
2806 GLenum internalFormat) in _mesa_gles_check_internalformat() argument
2808 switch (internalFormat) { in _mesa_gles_check_internalformat()
2973 GLenum internalFormat) in _mesa_gles_error_check_format_and_type() argument
2989 if (_mesa_is_enum_format_unsized(internalFormat)) { in _mesa_gles_error_check_format_and_type()
2997 if (internalFormat == GL_BGRA_EXT) { in _mesa_gles_error_check_format_and_type()
3010 if (internalFormat != baseInternalFormat) in _mesa_gles_error_check_format_and_type()
3013 internalFormat = effectiveInternalFormat; in _mesa_gles_error_check_format_and_type()
3019 if (internalFormat == GL_COMPRESSED_RGB_S3TC_DXT1_EXT || in _mesa_gles_error_check_format_and_type()
3020 internalFormat == GL_COMPRESSED_RGBA_S3TC_DXT1_EXT || in _mesa_gles_error_check_format_and_type()
3021 internalFormat == GL_COMPRESSED_RGBA_S3TC_DXT3_EXT || in _mesa_gles_error_check_format_and_type()
3022 internalFormat == GL_COMPRESSED_RGBA_S3TC_DXT5_EXT) in _mesa_gles_error_check_format_and_type()
3030 _mesa_gles_check_internalformat(ctx, internalFormat); in _mesa_gles_error_check_format_and_type()
3038 (internalFormat != GL_BGRA && in _mesa_gles_error_check_format_and_type()
3039 internalFormat != GL_RGBA8 && in _mesa_gles_error_check_format_and_type()
3040 internalFormat != GL_SRGB8_ALPHA8)) in _mesa_gles_error_check_format_and_type()
3046 (internalFormat != GL_RGB8 && in _mesa_gles_error_check_format_and_type()
3047 internalFormat != GL_SRGB8)) in _mesa_gles_error_check_format_and_type()
3054 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3073 if (ctx->Version <= 20 || internalFormat != GL_RGBA8_SNORM) in _mesa_gles_error_check_format_and_type()
3078 if (internalFormat != GL_RGBA16) in _mesa_gles_error_check_format_and_type()
3083 if (internalFormat != GL_RGBA16_SNORM) in _mesa_gles_error_check_format_and_type()
3088 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3098 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3108 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3121 if (ctx->Version <= 20 || internalFormat != GL_RGBA16F) in _mesa_gles_error_check_format_and_type()
3126 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3133 if (!_mesa_has_OES_texture_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3142 if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3155 if (internalFormat != GL_RGBA8UI) in _mesa_gles_error_check_format_and_type()
3160 if (internalFormat != GL_RGBA8I) in _mesa_gles_error_check_format_and_type()
3165 if (internalFormat != GL_RGBA16UI) in _mesa_gles_error_check_format_and_type()
3170 if (internalFormat != GL_RGBA16I) in _mesa_gles_error_check_format_and_type()
3175 if (internalFormat != GL_RGBA32UI) in _mesa_gles_error_check_format_and_type()
3180 if (internalFormat != GL_RGBA32I) in _mesa_gles_error_check_format_and_type()
3185 if (internalFormat != GL_RGB10_A2UI) in _mesa_gles_error_check_format_and_type()
3197 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3212 if (ctx->Version <= 20 || internalFormat != GL_RGB8_SNORM) in _mesa_gles_error_check_format_and_type()
3217 if (internalFormat != GL_RGB16) in _mesa_gles_error_check_format_and_type()
3222 if (internalFormat != GL_RGB16_SNORM) in _mesa_gles_error_check_format_and_type()
3227 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3237 if (ctx->Version <= 20 || internalFormat != GL_R11F_G11F_B10F) in _mesa_gles_error_check_format_and_type()
3242 if (ctx->Version <= 20 || internalFormat != GL_RGB9_E5) in _mesa_gles_error_check_format_and_type()
3249 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3260 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3272 if (!_mesa_has_OES_texture_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3281 if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3286 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3313 if (internalFormat != GL_RGB8UI) in _mesa_gles_error_check_format_and_type()
3318 if (internalFormat != GL_RGB8I) in _mesa_gles_error_check_format_and_type()
3323 if (internalFormat != GL_RGB16UI) in _mesa_gles_error_check_format_and_type()
3328 if (internalFormat != GL_RGB16I) in _mesa_gles_error_check_format_and_type()
3333 if (internalFormat != GL_RGB32UI) in _mesa_gles_error_check_format_and_type()
3338 if (internalFormat != GL_RGB32I) in _mesa_gles_error_check_format_and_type()
3352 if (internalFormat != GL_RG8 && in _mesa_gles_error_check_format_and_type()
3353 internalFormat != GL_COMPRESSED_RED_GREEN_RGTC2_EXT && in _mesa_gles_error_check_format_and_type()
3354 internalFormat != GL_SRG8_EXT) in _mesa_gles_error_check_format_and_type()
3359 if (internalFormat != GL_RG8_SNORM && in _mesa_gles_error_check_format_and_type()
3360 internalFormat != GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT) in _mesa_gles_error_check_format_and_type()
3365 if (internalFormat != GL_RG16) in _mesa_gles_error_check_format_and_type()
3370 if (internalFormat != GL_RG16_SNORM) in _mesa_gles_error_check_format_and_type()
3376 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3391 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3414 if (internalFormat != GL_RG8UI) in _mesa_gles_error_check_format_and_type()
3419 if (internalFormat != GL_RG8I) in _mesa_gles_error_check_format_and_type()
3424 if (internalFormat != GL_RG16UI) in _mesa_gles_error_check_format_and_type()
3429 if (internalFormat != GL_RG16I) in _mesa_gles_error_check_format_and_type()
3434 if (internalFormat != GL_RG32UI) in _mesa_gles_error_check_format_and_type()
3439 if (internalFormat != GL_RG32I) in _mesa_gles_error_check_format_and_type()
3453 if (internalFormat != GL_R8 && in _mesa_gles_error_check_format_and_type()
3454 internalFormat != GL_SR8_EXT && in _mesa_gles_error_check_format_and_type()
3455 internalFormat != GL_COMPRESSED_RED_RGTC1_EXT) { in _mesa_gles_error_check_format_and_type()
3461 if (internalFormat != GL_R8_SNORM && in _mesa_gles_error_check_format_and_type()
3462 internalFormat != GL_COMPRESSED_SIGNED_RED_RGTC1_EXT) in _mesa_gles_error_check_format_and_type()
3467 if (internalFormat != GL_R16) in _mesa_gles_error_check_format_and_type()
3472 if (internalFormat != GL_R16_SNORM) in _mesa_gles_error_check_format_and_type()
3478 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3494 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3517 if (internalFormat != GL_R8UI) in _mesa_gles_error_check_format_and_type()
3522 if (internalFormat != GL_R8I) in _mesa_gles_error_check_format_and_type()
3527 if (internalFormat != GL_R16UI) in _mesa_gles_error_check_format_and_type()
3532 if (internalFormat != GL_R16I) in _mesa_gles_error_check_format_and_type()
3537 if (internalFormat != GL_R32UI) in _mesa_gles_error_check_format_and_type()
3542 if (internalFormat != GL_R32I) in _mesa_gles_error_check_format_and_type()
3554 if (internalFormat != GL_DEPTH_COMPONENT && in _mesa_gles_error_check_format_and_type()
3555 internalFormat != GL_DEPTH_COMPONENT16) in _mesa_gles_error_check_format_and_type()
3560 switch (internalFormat) { in _mesa_gles_error_check_format_and_type()
3571 if (ctx->Version <= 20 || internalFormat != GL_DEPTH_COMPONENT32F) in _mesa_gles_error_check_format_and_type()
3583 if (internalFormat != GL_DEPTH_STENCIL && in _mesa_gles_error_check_format_and_type()
3584 internalFormat != GL_DEPTH24_STENCIL8) in _mesa_gles_error_check_format_and_type()
3589 if (ctx->Version <= 20 || internalFormat != GL_DEPTH32F_STENCIL8) in _mesa_gles_error_check_format_and_type()
3600 internalFormat != GL_STENCIL_INDEX8) { in _mesa_gles_error_check_format_and_type()
3610 if (!_mesa_has_OES_texture_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3614 if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format) in _mesa_gles_error_check_format_and_type()
3618 if (!(format == internalFormat || in _mesa_gles_error_check_format_and_type()
3619 (format == GL_ALPHA && internalFormat == GL_ALPHA8) || in _mesa_gles_error_check_format_and_type()
3620 (format == GL_LUMINANCE && internalFormat == GL_LUMINANCE8) || in _mesa_gles_error_check_format_and_type()
3622 ((internalFormat == GL_LUMINANCE8_ALPHA8) || in _mesa_gles_error_check_format_and_type()
3623 (internalFormat == GL_LUMINANCE4_ALPHA4))))) { in _mesa_gles_error_check_format_and_type()