[Mesa-dev] [PATCH v2 05/23] mesa: Fix get_texbuffer_format().

Ian Romanick idr at freedesktop.org
Wed Dec 3 14:25:24 PST 2014


This patch is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

Should it also be tagged for 10.4?

On 12/01/2014 03:04 AM, Iago Toral Quiroga wrote:
> From: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
> 
> We were returning incorrect mesa formats for GL_LUMINANCE_ALPHA16I_EXT
> and GL_LUMINANCE_ALPHA32I_EXT.
> 
> Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
> ---
>  src/mesa/main/teximage.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 4f4bb11..e238863 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -4461,9 +4461,9 @@ get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat)
>        case GL_LUMINANCE_ALPHA8I_EXT:
>           return MESA_FORMAT_LA_SINT8;
>        case GL_LUMINANCE_ALPHA16I_EXT:
> -         return MESA_FORMAT_LA_SINT8;
> -      case GL_LUMINANCE_ALPHA32I_EXT:
>           return MESA_FORMAT_LA_SINT16;
> +      case GL_LUMINANCE_ALPHA32I_EXT:
> +         return MESA_FORMAT_LA_SINT32;
>        case GL_LUMINANCE_ALPHA8UI_EXT:
>           return MESA_FORMAT_LA_UINT8;
>        case GL_LUMINANCE_ALPHA16UI_EXT:
> 



More information about the mesa-dev mailing list