mesa: rgb10_a2 is never color-renderable in gles2

Fixes
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.rgb10_a2 on
GLES2 drivers which support RGB10_A2 textures.
GL_OES_required_internalformat does not make it a color-renderable
format.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4972
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12464>
This commit is contained in:
Ilia Mirkin 2021-08-18 23:14:12 -04:00
parent e6776148c1
commit 7fbb773c0d
2 changed files with 2 additions and 4 deletions

View File

@ -26,10 +26,6 @@ dEQP-GLES2.functional.clipping.point.wide_point_clip_viewport_corner,Fail
dEQP-GLES2.functional.clipping.triangle_vertex.clip_two.clip_neg_y_neg_z_and_neg_x_neg_y_pos_z,Fail
dEQP-GLES2.functional.clipping.triangle_vertex.clip_two.clip_pos_y_pos_z_and_neg_x_neg_y_neg_z,Fail
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/4972
# Looks like a testcase bug
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.rgb10_a2,Fail
# " // GL_INVALID_OPERATION returned
# // ERROR: expected GL_INVALID_VALUE"
# Mesa: User error: GL_INVALID_OPERATION in glUniformMatrix(non-matrix uniform)

View File

@ -802,6 +802,8 @@ is_format_color_renderable(const struct gl_context *ctx, mesa_format format,
return _mesa_has_EXT_color_buffer_float(ctx);
case GL_RGB16F:
return _mesa_has_EXT_color_buffer_half_float(ctx);
case GL_RGB10_A2:
return _mesa_is_gles3(ctx);
case GL_RGB32F:
case GL_RGB32I:
case GL_RGB32UI: