Lines Matching refs:internalFormat
830 is_astc_2d_format(GLenum internalFormat)
832 switch (internalFormat) {
871 is_astc_3d_format(GLenum internalFormat)
873 switch (internalFormat) {
904 _mesa_is_astc_format(GLenum internalFormat)
906 return is_astc_2d_format(internalFormat) ||
907 is_astc_3d_format(internalFormat);
914 _mesa_is_etc2_format(GLenum internalFormat)
916 switch (internalFormat) {
2277 * \param internalFormat the internal texture format token or 1, 2, 3, or 4.
2286 _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat)
2288 switch (internalFormat) {
2346 switch (internalFormat) {
2355 switch (internalFormat) {
2364 switch (internalFormat) {
2379 switch (internalFormat) {
2391 switch (internalFormat) {
2408 if (_mesa_is_compressed_format(ctx, internalFormat)) {
2410 _mesa_gl_compressed_format_base_format(internalFormat);
2416 is_astc_2d_format(internalFormat)) ||
2418 is_astc_3d_format(internalFormat)))
2422 if (internalFormat == GL_YCBCR_MESA)
2427 switch (internalFormat) {
2452 switch (internalFormat) {
2491 switch (internalFormat) {
2515 switch (internalFormat) {
2534 switch (internalFormat) {
2541 switch (internalFormat) {
2576 switch (internalFormat) {
2622 switch (internalFormat) {
2631 switch (internalFormat) {
2640 switch (internalFormat) {
2787 GLenum internalFormat)
2789 /* If internalFormat is an unsized format, then the effective internal
2793 * "if internalformat is a base internal format, the effective
2800 * as if the effective internal format was used as the internalformat
2803 if (_mesa_is_enum_format_unsized(internalFormat)) {
2811 if (internalFormat == GL_BGRA_EXT) {
2824 if (internalFormat != baseInternalFormat)
2827 internalFormat = effectiveInternalFormat;
2832 if (type != GL_UNSIGNED_BYTE || internalFormat != GL_BGRA)
2839 switch (internalFormat) {
2852 if (internalFormat != GL_RGBA8_SNORM)
2857 switch (internalFormat) {
2867 switch (internalFormat) {
2877 switch (internalFormat) {
2888 if (internalFormat != GL_RGBA16F)
2893 switch (internalFormat) {
2898 if (ctx->Extensions.OES_texture_float && internalFormat == format)
2906 if (ctx->Extensions.OES_texture_half_float && internalFormat == format)
2916 if (internalFormat != GL_RGBA8UI)
2921 if (internalFormat != GL_RGBA8I)
2926 if (internalFormat != GL_RGBA16UI)
2931 if (internalFormat != GL_RGBA16I)
2936 if (internalFormat != GL_RGBA32UI)
2941 if (internalFormat != GL_RGBA32I)
2946 if (internalFormat != GL_RGB10_A2UI)
2958 switch (internalFormat) {
2970 if (internalFormat != GL_RGB8_SNORM)
2975 switch (internalFormat) {
2985 if (internalFormat != GL_R11F_G11F_B10F)
2990 if (internalFormat != GL_RGB9_E5)
2995 switch (internalFormat) {
3006 switch (internalFormat) {
3013 if (ctx->Extensions.OES_texture_float && internalFormat == format)
3021 if (!ctx->Extensions.OES_texture_half_float || internalFormat != format)
3026 switch (internalFormat) {
3042 internalFormat != GL_RGB8UI)
3047 if (internalFormat != GL_RGB8I)
3052 if (internalFormat != GL_RGB16UI)
3057 if (internalFormat != GL_RGB16I)
3062 if (internalFormat != GL_RGB32UI)
3067 if (internalFormat != GL_RGB32I)
3079 if (internalFormat != GL_RG8)
3084 if (internalFormat != GL_RG8_SNORM)
3090 switch (internalFormat) {
3104 switch (internalFormat) {
3126 if (internalFormat != GL_RG8UI)
3131 if (internalFormat != GL_RG8I)
3136 if (internalFormat != GL_RG16UI)
3141 if (internalFormat != GL_RG16I)
3146 if (internalFormat != GL_RG32UI)
3151 if (internalFormat != GL_RG32I)
3163 if (internalFormat != GL_R8)
3168 if (internalFormat != GL_R8_SNORM)
3174 switch (internalFormat) {
3189 switch (internalFormat) {
3211 if (internalFormat != GL_R8UI)
3216 if (internalFormat != GL_R8I)
3221 if (internalFormat != GL_R16UI)
3226 if (internalFormat != GL_R16I)
3231 if (internalFormat != GL_R32UI)
3236 if (internalFormat != GL_R32I)
3248 if (internalFormat != GL_DEPTH_COMPONENT
3249 && internalFormat != GL_DEPTH_COMPONENT16)
3254 switch (internalFormat) {
3265 if (internalFormat != GL_DEPTH_COMPONENT32F)
3277 if (internalFormat != GL_DEPTH_STENCIL
3278 && internalFormat != GL_DEPTH24_STENCIL8)
3283 if (internalFormat != GL_DEPTH32F_STENCIL8)
3295 internalFormat != GL_STENCIL_INDEX8) {
3305 if (ctx->Extensions.OES_texture_float && internalFormat == format)
3308 if (ctx->Extensions.OES_texture_half_float && internalFormat == format)
3311 if (type != GL_UNSIGNED_BYTE || format != internalFormat)