Lines Matching refs:internalFormat

830 is_astc_2d_format(GLenum internalFormat)  in is_astc_2d_format()  argument
832 switch (internalFormat) { in is_astc_2d_format()
871 is_astc_3d_format(GLenum internalFormat) in is_astc_3d_format() argument
873 switch (internalFormat) { in is_astc_3d_format()
904 _mesa_is_astc_format(GLenum internalFormat) in _mesa_is_astc_format() argument
906 return is_astc_2d_format(internalFormat) || in _mesa_is_astc_format()
907 is_astc_3d_format(internalFormat); in _mesa_is_astc_format()
914 _mesa_is_etc2_format(GLenum internalFormat) in _mesa_is_etc2_format() argument
916 switch (internalFormat) { in _mesa_is_etc2_format()
2287 _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat) in _mesa_base_tex_format() argument
2289 switch (internalFormat) { in _mesa_base_tex_format()
2347 switch (internalFormat) { in _mesa_base_tex_format()
2356 switch (internalFormat) { in _mesa_base_tex_format()
2365 switch (internalFormat) { in _mesa_base_tex_format()
2380 switch (internalFormat) { in _mesa_base_tex_format()
2392 switch (internalFormat) { in _mesa_base_tex_format()
2409 if (_mesa_is_compressed_format(ctx, internalFormat)) { in _mesa_base_tex_format()
2411 _mesa_gl_compressed_format_base_format(internalFormat); in _mesa_base_tex_format()
2417 is_astc_2d_format(internalFormat)) || in _mesa_base_tex_format()
2419 is_astc_3d_format(internalFormat))) in _mesa_base_tex_format()
2423 if (internalFormat == GL_YCBCR_MESA) in _mesa_base_tex_format()
2428 switch (internalFormat) { in _mesa_base_tex_format()
2453 switch (internalFormat) { in _mesa_base_tex_format()
2492 switch (internalFormat) { in _mesa_base_tex_format()
2516 switch (internalFormat) { in _mesa_base_tex_format()
2535 switch (internalFormat) { in _mesa_base_tex_format()
2542 switch (internalFormat) { in _mesa_base_tex_format()
2577 switch (internalFormat) { in _mesa_base_tex_format()
2623 switch (internalFormat) { in _mesa_base_tex_format()
2632 switch (internalFormat) { in _mesa_base_tex_format()
2641 switch (internalFormat) { in _mesa_base_tex_format()
2788 GLenum internalFormat) in _mesa_es3_error_check_format_and_type() argument
2804 if (_mesa_is_enum_format_unsized(internalFormat)) { in _mesa_es3_error_check_format_and_type()
2812 if (internalFormat == GL_BGRA_EXT) { in _mesa_es3_error_check_format_and_type()
2825 if (internalFormat != baseInternalFormat) in _mesa_es3_error_check_format_and_type()
2828 internalFormat = effectiveInternalFormat; in _mesa_es3_error_check_format_and_type()
2833 if (type != GL_UNSIGNED_BYTE || internalFormat != GL_BGRA) in _mesa_es3_error_check_format_and_type()
2840 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
2856 if (ctx->Version <= 20 || internalFormat != GL_RGBA8_SNORM) in _mesa_es3_error_check_format_and_type()
2861 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
2871 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
2881 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
2894 if (ctx->Version <= 20 || internalFormat != GL_RGBA16F) in _mesa_es3_error_check_format_and_type()
2899 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
2906 if (ctx->Extensions.OES_texture_float && internalFormat == format) in _mesa_es3_error_check_format_and_type()
2914 if (ctx->Extensions.OES_texture_half_float && internalFormat == format) in _mesa_es3_error_check_format_and_type()
2926 if (internalFormat != GL_RGBA8UI) in _mesa_es3_error_check_format_and_type()
2931 if (internalFormat != GL_RGBA8I) in _mesa_es3_error_check_format_and_type()
2936 if (internalFormat != GL_RGBA16UI) in _mesa_es3_error_check_format_and_type()
2941 if (internalFormat != GL_RGBA16I) in _mesa_es3_error_check_format_and_type()
2946 if (internalFormat != GL_RGBA32UI) in _mesa_es3_error_check_format_and_type()
2951 if (internalFormat != GL_RGBA32I) in _mesa_es3_error_check_format_and_type()
2956 if (internalFormat != GL_RGB10_A2UI) in _mesa_es3_error_check_format_and_type()
2968 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
2983 if (ctx->Version <= 20 || internalFormat != GL_RGB8_SNORM) in _mesa_es3_error_check_format_and_type()
2988 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
2998 if (ctx->Version <= 20 || internalFormat != GL_R11F_G11F_B10F) in _mesa_es3_error_check_format_and_type()
3003 if (ctx->Version <= 20 || internalFormat != GL_RGB9_E5) in _mesa_es3_error_check_format_and_type()
3010 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3021 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3030 if (ctx->Extensions.OES_texture_float && internalFormat == format) in _mesa_es3_error_check_format_and_type()
3038 if (!ctx->Extensions.OES_texture_half_float || internalFormat != format) in _mesa_es3_error_check_format_and_type()
3043 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3070 if (internalFormat != GL_RGB8UI) in _mesa_es3_error_check_format_and_type()
3075 if (internalFormat != GL_RGB8I) in _mesa_es3_error_check_format_and_type()
3080 if (internalFormat != GL_RGB16UI) in _mesa_es3_error_check_format_and_type()
3085 if (internalFormat != GL_RGB16I) in _mesa_es3_error_check_format_and_type()
3090 if (internalFormat != GL_RGB32UI) in _mesa_es3_error_check_format_and_type()
3095 if (internalFormat != GL_RGB32I) in _mesa_es3_error_check_format_and_type()
3109 if (internalFormat != GL_RG8) in _mesa_es3_error_check_format_and_type()
3114 if (internalFormat != GL_RG8_SNORM) in _mesa_es3_error_check_format_and_type()
3120 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3136 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3160 if (internalFormat != GL_RG8UI) in _mesa_es3_error_check_format_and_type()
3165 if (internalFormat != GL_RG8I) in _mesa_es3_error_check_format_and_type()
3170 if (internalFormat != GL_RG16UI) in _mesa_es3_error_check_format_and_type()
3175 if (internalFormat != GL_RG16I) in _mesa_es3_error_check_format_and_type()
3180 if (internalFormat != GL_RG32UI) in _mesa_es3_error_check_format_and_type()
3185 if (internalFormat != GL_RG32I) in _mesa_es3_error_check_format_and_type()
3199 if (internalFormat != GL_R8) in _mesa_es3_error_check_format_and_type()
3204 if (internalFormat != GL_R8_SNORM) in _mesa_es3_error_check_format_and_type()
3210 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3227 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3251 if (internalFormat != GL_R8UI) in _mesa_es3_error_check_format_and_type()
3256 if (internalFormat != GL_R8I) in _mesa_es3_error_check_format_and_type()
3261 if (internalFormat != GL_R16UI) in _mesa_es3_error_check_format_and_type()
3266 if (internalFormat != GL_R16I) in _mesa_es3_error_check_format_and_type()
3271 if (internalFormat != GL_R32UI) in _mesa_es3_error_check_format_and_type()
3276 if (internalFormat != GL_R32I) in _mesa_es3_error_check_format_and_type()
3288 if (internalFormat != GL_DEPTH_COMPONENT in _mesa_es3_error_check_format_and_type()
3289 && internalFormat != GL_DEPTH_COMPONENT16) in _mesa_es3_error_check_format_and_type()
3294 switch (internalFormat) { in _mesa_es3_error_check_format_and_type()
3305 if (ctx->Version <= 20 || internalFormat != GL_DEPTH_COMPONENT32F) in _mesa_es3_error_check_format_and_type()
3317 if (internalFormat != GL_DEPTH_STENCIL in _mesa_es3_error_check_format_and_type()
3318 && internalFormat != GL_DEPTH24_STENCIL8) in _mesa_es3_error_check_format_and_type()
3323 if (ctx->Version <= 20 || internalFormat != GL_DEPTH32F_STENCIL8) in _mesa_es3_error_check_format_and_type()
3335 internalFormat != GL_STENCIL_INDEX8) { in _mesa_es3_error_check_format_and_type()
3345 if (!ctx->Extensions.OES_texture_float || internalFormat != format) in _mesa_es3_error_check_format_and_type()
3349 if (!ctx->Extensions.OES_texture_half_float || internalFormat != format) in _mesa_es3_error_check_format_and_type()
3353 if (!(format == internalFormat || in _mesa_es3_error_check_format_and_type()
3354 (format == GL_ALPHA && internalFormat == GL_ALPHA8) || in _mesa_es3_error_check_format_and_type()
3355 (format == GL_LUMINANCE && internalFormat == GL_LUMINANCE8) || in _mesa_es3_error_check_format_and_type()
3357 ((internalFormat == GL_LUMINANCE8_ALPHA8) || in _mesa_es3_error_check_format_and_type()
3358 (internalFormat == GL_LUMINANCE4_ALPHA4))))) { in _mesa_es3_error_check_format_and_type()