main: GL_RGB10_A2UI does not come with GL 3.0/EXT_texture_integer
Add a separate extension check for that format. Prevents glTexImage from trying to find a matching format, which fails on drivers without support for this format. Fixes: sized-texture-format-channels (on a3xx) Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
2b18a3f5d3
commit
36347c8d6f
|
@ -2518,7 +2518,6 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat)
|
||||||
case GL_RGBA8I_EXT:
|
case GL_RGBA8I_EXT:
|
||||||
case GL_RGBA16I_EXT:
|
case GL_RGBA16I_EXT:
|
||||||
case GL_RGBA32I_EXT:
|
case GL_RGBA32I_EXT:
|
||||||
case GL_RGB10_A2UI:
|
|
||||||
return GL_RGBA;
|
return GL_RGBA;
|
||||||
case GL_RGB8UI_EXT:
|
case GL_RGB8UI_EXT:
|
||||||
case GL_RGB16UI_EXT:
|
case GL_RGB16UI_EXT:
|
||||||
|
@ -2530,6 +2529,13 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ctx->Extensions.ARB_texture_rgb10_a2ui) {
|
||||||
|
switch (internalFormat) {
|
||||||
|
case GL_RGB10_A2UI:
|
||||||
|
return GL_RGBA;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->Extensions.EXT_texture_integer) {
|
if (ctx->Extensions.EXT_texture_integer) {
|
||||||
switch (internalFormat) {
|
switch (internalFormat) {
|
||||||
case GL_ALPHA8UI_EXT:
|
case GL_ALPHA8UI_EXT:
|
||||||
|
|
Loading…
Reference in New Issue