[Mesa-dev] [PATCH 1/2] mesa: allow GL_STENCIL_INDEX8 in glTexImageMultisample

Dave Airlie airlied at gmail.com
Mon Aug 24 18:07:46 PDT 2015


I sent this a while ago,

mesa: enable texture stencil8 for multisample

and I forgot to push it, pushed now with stable tags.

Dave.

On 25 August 2015 at 09:59, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> Cc: 10.6 11.0 <mesa-stable at lists.freedesktop.org>
> ---
>  src/mesa/main/teximage.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 253e881..fa37a61 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -5572,7 +5572,9 @@ is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat)
>      * except for a base format of GL_STENCIL_INDEX.
>      */
>     GLenum baseFormat = _mesa_base_fbo_format(ctx, internalformat);
> -   return baseFormat != 0 && baseFormat != GL_STENCIL_INDEX;
> +   return baseFormat != 0 &&
> +          (ctx->Extensions.ARB_texture_stencil8 ||
> +           baseFormat != GL_STENCIL_INDEX);
>  }
>
>
> --
> 2.1.4
>
> _______________________________________________
> 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