summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-07-29 18:09:44 +1000
committerDave Airlie <airlied@redhat.com>2015-07-29 18:09:44 +1000
commit824253126de5e69034c844b9738236d625ed7d44 (patch)
tree1cd31a0e8bab00cfdf0d666dae0d523edb509d78
parent4d59bb2a5c7a0e648bc3468164cccb5674fdb34a (diff)
mesa: enable texture stencil8 for multisampler600-gs-streams-sb
This fixes GL45-CTS.gtf44.GL31Tests.texture_stencil8.texture_stencil8_gl44 from the ogl conform suite. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/mesa/main/teximage.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 949eef0e285..7551a63ade9 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -5548,10 +5548,13 @@ static GLboolean
is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat)
{
/* Everything that is allowed for renderbuffers,
- * except for a base format of GL_STENCIL_INDEX.
+ * except for a base format of GL_STENCIL_INDEX, unless supported.
*/
GLenum baseFormat = _mesa_base_fbo_format(ctx, internalformat);
- return baseFormat != 0 && baseFormat != GL_STENCIL_INDEX;
+ if (ctx->Extensions.ARB_texture_stencil8)
+ return baseFormat != 0;
+ else
+ return baseFormat != 0 && baseFormat != GL_STENCIL_INDEX;
}