[Mesa-dev] [PATCH] mesa: add MESA_FORMAT_RGB565[_REV] as candidates for GL_R3_G3_B2
Eric Anholt
eric at anholt.net
Thu Dec 15 07:59:05 PST 2011
On Thu, 15 Dec 2011 07:43:20 -0700, Brian Paul <brianp at vmware.com> wrote:
> ---
> src/mesa/main/texformat.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
> index c776b41..7e60541 100644
> --- a/src/mesa/main/texformat.c
> +++ b/src/mesa/main/texformat.c
> @@ -118,6 +118,8 @@ _mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat,
> break;
> case GL_R3_G3_B2:
> RETURN_IF_SUPPORTED(MESA_FORMAT_RGB332);
> + RETURN_IF_SUPPORTED(MESA_FORMAT_RGB565);
> + RETURN_IF_SUPPORTED(MESA_FORMAT_RGB565_REV);
> RETURN_IF_SUPPORTED(MESA_FORMAT_RGB888);
> RETURN_IF_SUPPORTED(MESA_FORMAT_XRGB8888);
> RETURN_IF_SUPPORTED(MESA_FORMAT_ARGB8888);
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111215/48dfd022/attachment.pgp>
More information about the mesa-dev
mailing list