[Mesa-dev] [PATCH 10/14] mesa: Add support for the GL 3.1 R/RG formats in texture buffer objects.

Dave Airlie airlied at gmail.com
Wed Mar 28 11:45:39 PDT 2012


>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 60b2528..2348646 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -3850,6 +3850,49 @@ get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat)
>       return MESA_FORMAT_RGBA_UINT16;
>    case GL_RGBA32UI_EXT:
>       return MESA_FORMAT_RGBA_UINT32;
> +
> +   case GL_RG8:
> +      return MESA_FORMAT_GR88;

Not sure if its worth a comment on why this one is GR vs the rest.

Otherwise

Reviewed-by: Dave Airlie <airlied at redhat.com>


More information about the mesa-dev mailing list