[Mesa-dev] [PATCH] mesa: enable texture stencil8 for multisample

Ilia Mirkin imirkin at alum.mit.edu
Wed Jul 29 01:15:05 PDT 2015


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Wed, Jul 29, 2015 at 4:10 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This fixes GL45-CTS.gtf44.GL31Tests.texture_stencil8.texture_stencil8_gl44
> from the ogl conform suite.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/main/teximage.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 949eef0..7551a63 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;
>  }
>
>
> --
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list